• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 174
  • Last Modified:

Sequence on Excel Formula

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
Matt Pinkston
Asked:
Matt Pinkston
2 Solutions
 
Rory ArchibaldCommented:
Whichever one is last in the search array.
0
 
FaustulusCommented:
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
 
Matt PinkstonAuthor Commented:
Thanks Guys
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now