Solved

Search Criteria

Posted on 2014-03-30
2
165 Views
Last Modified: 2014-03-30
I have a spreadsheet that in column A, will have a number of things listed in it. I want to have column D show up as either a laptop or a desktop, based on the values in column A. The equation for column D at the moment, reads:

=IFERROR(IF(SEARCH("blah",A2),"Laptop",""),"Desktop")

The logic says that if it isn't a match, say it is a Desktop. This is fine, but I need to be able to search for any of a number of terms, and if there is no match, then say it is a desktop. So for instance, how does one change the above query to match for any of the following (but not all):

blah
blah2
blah3

is there a way to do a search for any one of the following?
0
Comment
Question by:stakor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 

Author Comment

by:stakor
ID: 39965695
I see this might be a possible solution, but am uncertain how to join the two.

=OR(first condition, second condition, …, etc.)
0
 

Accepted Solution

by:
stakor earned 0 total points
ID: 39965845
=IF(SUM(COUNTIF(A2,"*" &{"blah1";"blah2";"blah3"}& "*"))>0,"laptop","desktop")
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question