Solved

Sequence on Excel Formula

Posted on 2014-04-28
3
161 Views
Last Modified: 2014-05-07
In the following formula, what is the sequence of setting the values?  in other words if M2 has Defense & Navy keywords which would get the setting

=IF(OR(LEFT(D2,3)="CS-",LEFT(D2,4)="CS -"),"Consulting & Intelligence",LOOKUP(9.9999E+307,SEARCH({"Civilian","CONSULT","Defense","Navy","Healthcare","Sled"},M2),{"Civilian","USPS Intel","Defense/Fedsec","Navy/USMC","Healthcare","S&L"}))
0
Comment
Question by:Matt Pinkston
3 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 250 total points
ID: 40027131
Whichever one is last in the search array.
0
 
LVL 14

Assisted Solution

by:Faustulus
Faustulus earned 250 total points
ID: 40027133
Is this the formula you are after?
=IF(OR(LEFT(D2,3)="CS-",LEFT(D2,4)="CS -"),"Consulting & Intelligence",LOOKUP(M2,{"Civilian","CONSULT","Defense","Healthcare","Navy","Sled"},{"Civilian","USPS Intel","Defense/Fedsec","Healthcare","Navy/USMC","S&L"}))

Open in new window

It would be if M2 holds one of the text items in the Lookup_Vector.
You may wish to read up on the LOOKUP function in Excel's own help.
0
 

Author Closing Comment

by:Matt Pinkston
ID: 40048167
Thanks Guys
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

789 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