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

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Try this

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

Forum statistics

Threads
1,223,604
Messages
6,173,315
Members
452,510
Latest member
RCan29

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