Could you please post your vlookup formula?
This is a discussion on vlookup - null values within the Excel Questions forums, part of the Question Forums category; I am performing a VLOOKUP from one excel worksheet to another. One has 0 as responses and I need to ...
I am performing a VLOOKUP from one excel worksheet to another. One has 0 as responses and I need to bring those into my other worksheet. I am using a unique ID and keep having the null values come back as 0s as well as the actual O answers. Is there a formula to report my null values as such? Thanks.
floored,
Can you distinguish this a little please -
I'm getting confused between Zeros and the letter "O". Are you saying that your column contains
a) zeros,
b) blanks &
c) letter Os,
and that you want Excel to distinguish between them in what it returns?
Vanilladan
No, I believe the OP has valid returns of numeric 0, and has probably structured the VLOOKUP in somewhat the following manner -
=IF(ISNUMBER(VLOOKUP_here),VLOOKUP_Here,0)
In which case, a "no match" will also return a numeric 0; the question {if that is indeed the case} is how to determine a legit 0 return from a found match from a 0 return due to a failed match. The solution would be:
=IF(MATCH(VALUE,ARRAY,0),VLOOKUP_Here,"No Match")
Given the nasty problem that you want to solve, that is, distinguishing between retrieved real 0's and empty cells read as 0's, I expect that you would want to download and install the morefunc.xll add-in...On 2003-02-13 09:52, floored wrote:
I am performing a VLOOKUP from one excel worksheet to another. One has 0 as responses and I need to bring those into my other worksheet. I am using a unique ID and keep having the null values come back as 0s as well as the actual O answers. Is there a formula to report my null values as such? Thanks.
******** ******************** ************************************************************************>
Microsoft Excel - Book2 ___Running: xl2000 : OS = Windows Windows 2000
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout
A B C D E F G 1 Product Price * * * * * 2 a * * * * * * 3 b 2.5 * * * * * 4 c 0 * * * * * 5 d 3.99 * * * * * 6 * * * * * * * 7 * * * * * * * 8 a *
* * * * * 9 b 2.5 * * * * * 10 c 0 * * * * * 11 * * * * * * *
Sheet1 *
[HtmlMaker 2.32] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.
The formula used is...
=IF(ISNA(SETV(VLOOKUP(A8,$A$2:$B$5,2,0))),"",IF(INDEX($A$2:$A$5,MATCH(GETV(),$B$2:$B$5,0))=A8,GETV(),""))
In case you can't install morefunc, search this site for V, a UDF by Dunn, which can be substituted for both SETV and GETV.
Assuming too much and qualifying too much are two faces of the same problem.
Hi floored:
One of the ways would be to use the following formulation ...
=IF(VLOOKUP($F17,$A$8:$B$12,2)="","",VLOOKUP($F17,$A$8:$B$12,2))
in this formulation lookup value is in cell F17, and the lookup table is in cells A8:B12
Hard (expensive) to combine with also controlling for #N/A. If the latter is not needed, it's certainly the way to take.On 2003-02-13 17:05, Yogi Anand wrote:
Hi floored:
One of the ways would be to use the following formulation ...
=IF(VLOOKUP($F17,$A$8:$B$12,2)="","",VLOOKUP($F17,$A$8:$B$12,2))
in this formulation lookup value is in cell F17, and the lookup table is in cells A8:B12
Hi Aladin:
I had at also looked at the following formulation ...
=IF(MATCH(VLOOKUP($F17,$A$8:$B$12,2),B8:B12,0)<>MATCH($F$17,A8:A12,0),"",VLOOKUP($F17,$A$8:$B$12,2))
but this some severe constraints of its own
******** LANGUAGE="JavaScript" ************************************************************************>
Microsoft Excel - Book2 ___Running: xl97 : OS = Windows 98
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout
A B C D E F G H I 7 * * * * * * * * * 8 a * * * * * * * * 9 b * * * * * * * * 10 c 0 * * * * * * * 11 d 0 * * * * * * * 12 e * * * * * * * * 13 * * * * * * * * * 14 * * * * * * * * * 15 * * * * * * * * * 16 * * * * * * * * * 17 * * * * * b * *
* 18 * * * * * * * * *
Sheet3 (2) *
[HtmlMaker 2.20] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.
Although, in the last formulation, I could avoid some recalculation by use of setv and getv ...
=IF(MATCH(SETV(VLOOKUP($F17,$A$8:$B$12,2)),B8:B12,0)<>MATCH($F$17,A8:A12,0),"",GETV())
Bookmarks