IF formula with VLOOKUP HELP!!!!!!

mat08h

New Member
Joined
Mar 28, 2012
Messages
4
Hi,
I am new here so i hope I am in the right place..

I need some help with a bit of a complicated spreadsheet i have set up as a product selector / order form. http://www.filedropper.com/copyofvalves

I have many cells referencing data from different worksheets but in one particular cell have the following formula =IF(B2="STO Act","0",VLOOKUP(C2,Act_STC,2,TRUE)) on the selector sheet that pulls data from another sheet when i select an Act STC valve. This is working fine but i need this to read 0 when any other value (man or Act STO) is selected from the drop down menu where the Act STC option is selected (if that makes sense?).

Any help would be greatly appreciated as it is driving nuts!!!!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Try this:

=IF(OR(B2="man",B2="STO Act"),"0",VLOOKUP(C2,Act_STC,2,TRUE))
 
Last edited:
Upvote 0
You mean something like:

=IF(OR(B2="STO Act",B2="Act STO",B2="man")"0",VLOOKUP(C2,Act_STC,2,TRUE))

Or do you just mean, "If B2 is STC Act, then lookup, otherwise don't"

In which case:
=IF(B2<>"STC Act","0",VLOOKUP(C2,Act_STC,2,TRUE))
 
Upvote 0

Forum statistics

Threads
1,216,134
Messages
6,129,070
Members
449,485
Latest member
greggy

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