Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=VLOOKUP(B16,Quote!A:H,8,FALSE)
In this formula, what must I add to have the result return a 0 (zero) if the lookup does not find the value in the lookup range. I can't have a N/A value? I guess I need to use an =IF statement but cannot get it right. Something like =IF(VLOOKUP(B16,Quote!A:H,8,FALSE) ##is found, then## VLOOKUP(B16,Quote!A:H,8,FALSE) ##else value = 0## Thanks in advance! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=IF(VLOOKUP(B16,Quote!A:H,8,FALSE)<"",VLOOKUP(B16 ,Quote!A:H,8,FALSE),0)
"Greg H" <Greg wrote in message ... =VLOOKUP(B16,Quote!A:H,8,FALSE) In this formula, what must I add to have the result return a 0 (zero) if the lookup does not find the value in the lookup range. I can't have a N/A value? I guess I need to use an =IF statement but cannot get it right. Something like =IF(VLOOKUP(B16,Quote!A:H,8,FALSE) ##is found, then## VLOOKUP(B16,Quote!A:H,8,FALSE) ##else value = 0## Thanks in advance! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Greg
Rather than using 2 Vlookups which are expensive on processing time, use a Countif to see if the value from B16 exists in column A of the lookup table first. =IF(COUNTIF(Quote!A:A,B16),VLOOKUP(B16,Quote!A:H,8 ,FALSE),0) -- Regards Roger Govier "Greg H" <Greg wrote in message ... =VLOOKUP(B16,Quote!A:H,8,FALSE) In this formula, what must I add to have the result return a 0 (zero) if the lookup does not find the value in the lookup range. I can't have a N/A value? I guess I need to use an =IF statement but cannot get it right. Something like =IF(VLOOKUP(B16,Quote!A:H,8,FALSE) ##is found, then## VLOOKUP(B16,Quote!A:H,8,FALSE) ##else value = 0## Thanks in advance! |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
the best way to get rid of this problem is use formula as given below:
=IF(ISERROR(VLOOKUP(B16,Quote!A:H,8,FALSE),0,VLOOK UP(B16,Quote!A:H,8,FALSE)) Hope this will be useful to you. All the best. Rakesh Darji Greg H wrote: =VLOOKUP(B16,Quote!A:H,8,FALSE) In this formula, what must I add to have the result return a 0 (zero) if the lookup does not find the value in the lookup range. I can't have a N/A value? I guess I need to use an =IF statement but cannot get it right. Something like =IF(VLOOKUP(B16,Quote!A:H,8,FALSE) ##is found, then## VLOOKUP(B16,Quote!A:H,8,FALSE) ##else value = 0## Thanks in advance! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I show a validity by a prompted symbol in colour? | Excel Worksheet Functions | |||
VLookUp - Does the VLookUp return the exact information? | Excel Worksheet Functions | |||
Vlookup in vlookup - taking the result as array name | Excel Worksheet Functions | |||
Which is faster: VLOOKUP-worksheet or VB-array VLOOKUP? | Excel Programming | |||
Recordset object loses validity in call between function & subrout | Excel Programming |