Vlookup and if statement combined

UMAKEMESIK

Active Member
Joined
Oct 3, 2005
Messages
378
Hello to all,

I am new to the if statement and vlookup world and have been using
A very simple if statement with great results
Code:
=if(d22=0,(0),(c22))
Yes, simple but I like what it does and look to expand.

I have a wb with a number of sheets.
I want to place an if /vlookup statement in the
First worksheet called – worksheet in cell i17
I want to search sheet4 called Protective.
Search column B from B7:b41 for the phrase Setup-Preassembly.
If the phrase is found then return the value from sheet 4 in column c of the same row
To Worksheet cell i17 – if the phrase is not found return to i17 a value of nothing, or blank (“”)
I tried to write something that I knew would not work but I had to start somewhere.

Code:
=if(isna(vlookup(Setup-Preassembly,sheet4!b7:b41,2,)),””,(c))
Please forgive the crudeness of my first attempt.

Any help would be much appreciated.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Try this

=IFERROR(VLOOKUP("Setup-Preassembly",Sheet4!B7:C41,2,0),"")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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