![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Apr 2002
Location: Australia
Posts: 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. |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=ISNUMBER(MATCH(E1,G1:G10,0)) |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Apr 2002
Location: Australia
Posts: 52
|
hrm.........could you please elaborate on the MATCH statement, and ISNUMBER statement. I do not understand. Sorry
|
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=ISNUMBER(7) returns TRUE =ISNUMBER(#N/A) returns FALSE. |
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Apr 2002
Location: Australia
Posts: 52
|
thanks a lot, that really helped. Cheers
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|