Help with IF AND/IF OR and a VLOOKUP

thewiseguy

Well-known Member
Joined
May 23, 2005
Messages
1,023
Office Version
  1. 365
Platform
  1. Windows
Hi all. I've looked all over for a similar problem and solution but could not find one. Any help is greatly appreciated!

Trying to create a formula that says:

IF (A1="TEST" AND B1 IS BETWEEN 20-149, THEN 10. IF (A1="TEST" AND B1 IS >149, THEN 50. OTHERWISE, VLOOKUP (A1, TBL_GOOD),5,0)

thanks in advance!!!
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
It should simply be a matter of nesting IF statements and adding in your VLOOKUP (assuming that is a valid VLOOKUP formula), i.e.
Excel Formula:
=IF(AND(A1="TEST",B1>=20,B1<=149),10,IF(AND(A1="TEST",B1>149),50,VLOOKUP(A1,TBL_GOOD,5,0)))
 
Upvote 0
Solution
It should simply be a matter of nesting IF statements and adding in your VLOOKUP (assuming that is a valid VLOOKUP formula), i.e.
Excel Formula:
=IF(AND(A1="TEST",B1>=20,B1<=149),10,IF(AND(A1="TEST",B1>149),50,VLOOKUP(A1,TBL_GOOD,5,0)))

Thank you Joe, that worked perfectly.
 
Upvote 0
You are welcome.
Glad I was able to help!
:)
 
Upvote 0

Forum statistics

Threads
1,225,750
Messages
6,186,805
Members
453,373
Latest member
Ereha

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