vlookup help

coltheplumb

Well-known Member
Joined
Nov 27, 2010
Messages
731
Hi all
ok i have this formula in EF16 =if(CS16="1",vlookup(CP16,$QE$4:$ER$29,2)) ...it is returning FALSE what i am after is for it to return 3...which is the number that is next to what is in cell CP16.
all help appreciated
Colin X
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi all
ok i have this formula in EF16 =if(CS16="1",vlookup(CP16,$QE$4:$ER$29,2)) ...it is returning FALSE what i am after is for it to return 3...which is the number that is next to what is in cell CP16.
all help appreciated
Colin X

Two observations:

a) "1" should probably be just 1 (no quotes);
b) What is the 4th argument of VLOOKUP? Omitting it means 1 (i.e., TRUE). Is that justified, i.e., the intention?
 
Upvote 0
Hi again
OK CS16 will either have a 1 in it or will be empty
CP16 will have a number in it ranging from 20 to 28
The vlookup i have has numbers 20 to 28 in column $EQ$4:$EQ$29 and various individual numbers numbers in column $ER$4:$ER$29
and so what i am after is a formula that will look at CS16 and if it has a 1 in it to then look at CP16 to see what number that is then look at the vlookup range $EQ$4:$ER$29 and return the number that is next to it, the way vlookup works... hope that makes sense??
Colin X
 
Upvote 0

Forum statistics

Threads
1,214,621
Messages
6,120,563
Members
448,972
Latest member
Shantanu2024

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