Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
Solved

# Sequence on Excel Formula

Posted on 2014-04-28
Medium Priority
171 Views
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
Question by:Matt Pinkston
[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

LVL 85

Accepted Solution

Rory Archibald earned 1000 total points
ID: 40027131
Whichever one is last in the search array.
0

LVL 14

Assisted Solution

Faustulus earned 1000 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"}))
``````
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

ID: 40048167
Thanks Guys
0

## Featured Post

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
###### Suggested Courses
Course of the Month12 days, 3 hours left to enroll

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

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