IF & Vlookup Formula

mwhit

Board Regular
Joined
Feb 20, 2006
Messages
163
Hello- Need help to determine what formula(s) i should use:

Current formula: =if F22=1,F11,(vlookup) This formula works just fine!

My issue is that I need to add another criteria: F23="a"

Basically, I will like to keep the current formula BUT add another if statement for F23="a" and if F23 is true I will like to pull another cell (D12) and if its not true I would just use my current vlookup formula.

need help on writing the correct formula in one cell. Any thoughts??
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Not all that clear but maybe this?

=IF(F23="a",D12,IF(F22=1,F11,VLOOKUP(...)))
 
Upvote 0
Try using the AND function


=IF(AND(F22=1,F23="a")F11,VLOOKUP(.....

AND is if EVERY condition is true

also OR

OR is if ONE condition is true

=IF(OR(F22=1,F23="a")F11,VLOOKUP(.....
would be IF F22-1 or F23 -"a"

You can nest them

This should be enough to work out what you need
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,728
Members
452,939
Latest member
WCrawford

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