VLOOKUP returning a BOOL

KnAsTa

Board Regular
Joined
Apr 11, 2002
Messages
52
is it possible for VLOOKUP to return a boolean value, say:
IF the value exists in the column you are "VLlooking up" then it will return true. This would then aid in using it within an IF statement. So Iff value exists, then do this, if it doesnt, then do something else....

this is my code so far
=VLOOKUP(A5,week1.xls!$A$1:$A$10,1,0)

any help would be much appreciated. Thanx a lot. :)
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
On 2002-04-12 03:32, KnAsTa wrote:
is it possible for VLOOKUP to return a boolean value, say:
IF the value exists in the column you are "VLlooking up" then it will return true. This would then aid in using it within an IF statement. So Iff value exists, then do this, if it doesnt, then do something else....

this is my code so far
=VLOOKUP(A5,week1.xls!$A$1:$A$10,1,0)

any help would be much appreciated. Thanx a lot. /board/images/smiles/icon_smile.gif

Better use MATCH for that option like in:

=ISNUMBER(MATCH(E1,G1:G10,0))
 
Upvote 0
hrm.........could you please elaborate on the MATCH statement, and ISNUMBER statement. I do not understand. Sorry
 
Upvote 0
On 2002-04-12 03:53, KnAsTa wrote:
hrm.........could you please elaborate on the MATCH statement, and ISNUMBER statement. I do not understand. Sorry

MATCH returns a row or column number if it succeeds to find a value that matches its lookup value, otherwise #N/A.

=ISNUMBER(7) returns TRUE

=ISNUMBER(#N/A) returns FALSE.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,692
Members
448,979
Latest member
DET4492

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