Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have the following formula but it is not gving me the results I am looking
for: =IF(TYPE(VLOOKUP(V2,'thread lookup'!$R$17:$S$24,2,FALSE)=16),1,VLOOKUP(V2,'thr ead lookup'!$R$17:$S$24,2,FALSE)) The idea is to look for the value in V2 in my lookup table and if the result is #N/A then return the value 1, otherwise lookup the value in V2 in my lookup table. All this formula is returning is 1 for everything. Can anyone tell me where the formula is incorrect? Thanks |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Maybe,
=IF(ISNA(VLOOKUP(V2,'Thread lookup'!R17:S24,2,FALSE)),1,VLOOKUP(V2,'Thread lookup'!R17:S24,2,FALSE)) Mike "Iriemon" wrote: I have the following formula but it is not gving me the results I am looking for: =IF(TYPE(VLOOKUP(V2,'thread lookup'!$R$17:$S$24,2,FALSE)=16),1,VLOOKUP(V2,'thr ead lookup'!$R$17:$S$24,2,FALSE)) The idea is to look for the value in V2 in my lookup table and if the result is #N/A then return the value 1, otherwise lookup the value in V2 in my lookup table. All this formula is returning is 1 for everything. Can anyone tell me where the formula is incorrect? Thanks |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
One usual way is to use ISNA, viz:
=IF(ISNA(VLOOKUP(V2,'thread lookup'!$R$17:$S$24,2,0)),1,VLOOKUP(V2,'thread lookup'!$R$17:$S$24,2,0)) -- Max Singapore http://savefile.com/projects/236895 Downloads:17,000 Files:358 Subscribers:55 xdemechanik --- "Iriemon" wrote: I have the following formula but it is not gving me the results I am looking for: =IF(TYPE(VLOOKUP(V2,'thread lookup'!$R$17:$S$24,2,FALSE)=16),1,VLOOKUP(V2,'thr ead lookup'!$R$17:$S$24,2,FALSE)) The idea is to look for the value in V2 in my lookup table and if the result is #N/A then return the value 1, otherwise lookup the value in V2 in my lookup table. All this formula is returning is 1 for everything. Can anyone tell me where the formula is incorrect? Thanks |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
THANKS GUYS!
Perfect! "Iriemon" wrote: I have the following formula but it is not gving me the results I am looking for: =IF(TYPE(VLOOKUP(V2,'thread lookup'!$R$17:$S$24,2,FALSE)=16),1,VLOOKUP(V2,'thr ead lookup'!$R$17:$S$24,2,FALSE)) The idea is to look for the value in V2 in my lookup table and if the result is #N/A then return the value 1, otherwise lookup the value in V2 in my lookup table. All this formula is returning is 1 for everything. Can anyone tell me where the formula is incorrect? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Don't know what to call the type of function I need | Excel Worksheet Functions | |||
Product type function H.e.l.p | Excel Worksheet Functions | |||
NVL type function | Excel Worksheet Functions | |||
Help with TYPE function | Excel Discussion (Misc queries) | |||
I need a productif type function | Excel Discussion (Misc queries) |