IF Statement for Range of options

BrianP1

New Member
Joined
Jun 4, 2018
Messages
12
Trying to find if this is possible. I have a list of names which I am trying to do If Statements on. I need the if statement to return a value if a specific cell equals one of the names on the list. The list contains 75 people so would need multiple if statements. Instead of doing an if statement for each name on the list, is there a way for the if statement to look at the entire list at once (using a range or something)?
 
OK, back to the VLOOKUP:

ABCDEFGHIJ
1CompanyDealRepAmountProductAcct. ExecRepAcct. Exec
2Company xDeal 1234Joe Smith$142Product XSamuel RogersRichard WatsonThomas Preston
3Company DDeal 3364Bob Hope$443Product PThomas PrestonBob HopeThomas Preston
4Company QDeal 2575Rick Burns$236Product ANoJane DoeThomas Preston
5Joe SmithSamuel Rogers
6Eric PosterSamuel Rogers
7Trish NixonWalter Lin
8Erica AndrewsWalter Lin
9

<tbody>
</tbody>
Sheet3

Worksheet Formulas
CellFormula
F2=IFERROR(VLOOKUP(C2,$H$2:$I$8,2,0),"No")

<tbody>
</tbody>

<tbody>
</tbody>

Thanks Eric! That worked perfectly. I was able to use it as a nested set of code as shown here: =IFERROR(VLOOKUP($AG5,VST!B$11:C$85,2,0),IFERROR(VLOOKUP($M5,VST!B$14:C$85,2,0),IFERROR(VLOOKUP($N5,VST!B$11:C$85,2,0),IFERROR(VLOOKUP($AC5,VST!B$11:C$85,2,0)," No"))))

Do you happen to know how to do this in Microsoft Access or know of a forum that would help like this one? Thanks again!

Brian
 
Upvote 0

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Glad you got it working! I'm a little curious why your second VLOOKUP has B$14 instead of B$11, but I guess you have a reason.

As for Access, my skills are way out of date. But there is an Access forum here, just post your question there.
 
Upvote 0
Thanks Eric. As for why I started on 14 for the 2nd set, the 1st three reps listed wouldn't be in the column it was searching in. Could have left it the same as the others.
 
Upvote 0

Forum statistics

Threads
1,216,460
Messages
6,130,765
Members
449,589
Latest member
Hana2911

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top