ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Stumped with VLOOKUP error (https://www.excelbanter.com/excel-worksheet-functions/128383-stumped-vlookup-error.html)

bactfarmer

Stumped with VLOOKUP error
 
Why do I get a #NA error when I do a VLOOKUP on a cell that contains a
formula? Is this because its trying do the lookup on the formula
itself and not the data displayed in the cell due to the formula?

=VLOOKUP(E2,PRODTAB,3,FALSE) Where (E2) contains a formula that
processes information from another cell.

I know every thing else is ok because when I type in the display
formula result from (E2) into a (E3) and change the VLOOKUP to
=VLOOKUP(E3,PRODTAB,3,FALSE) it works.

Thanks
Very Confused


Elkar

Stumped with VLOOKUP error
 
My guess would be that your formula in E2 is returning a text value and your
lookup table (PRODTAB) contains numbers. Or vice versa.

The number 1234 and the text string 1234 may look identical to you and me,
but Excel treats them differently.

See if this makes any difference:

=VLOOKUP(VALUE(E2),PRODTAB,3,FALSE)

If not, post back with more info on your formulas and data.

HTH,
Elkar


"bactfarmer" wrote:

Why do I get a #NA error when I do a VLOOKUP on a cell that contains a
formula? Is this because its trying do the lookup on the formula
itself and not the data displayed in the cell due to the formula?

=VLOOKUP(E2,PRODTAB,3,FALSE) Where (E2) contains a formula that
processes information from another cell.

I know every thing else is ok because when I type in the display
formula result from (E2) into a (E3) and change the VLOOKUP to
=VLOOKUP(E3,PRODTAB,3,FALSE) it works.

Thanks
Very Confused



bactfarmer

Stumped with VLOOKUP error
 

Works great! Thanks Elkar.


On Jan 30, 12:26 pm, Elkar wrote:
My guess would be that your formula in E2 is returning a text value and your
lookup table (PRODTAB) contains numbers. Or vice versa.

The number 1234 and the text string 1234 may look identical to you and me,
but Excel treats them differently.

See if this makes any difference:

=VLOOKUP(VALUE(E2),PRODTAB,3,FALSE)

If not, post back with more info on your formulas and data.

HTH,
Elkar



"bactfarmer" wrote:
Why do I get a #NA error when I do a VLOOKUP on a cell that contains a
formula? Is this because its trying do the lookup on the formula
itself and not the data displayed in the cell due to the formula?


=VLOOKUP(E2,PRODTAB,3,FALSE) Where (E2) contains a formula that
processes information from another cell.


I know every thing else is ok because when I type in the display
formula result from (E2) into a (E3) and change the VLOOKUP to
=VLOOKUP(E3,PRODTAB,3,FALSE) it works.


Thanks
Very Confused- Hide quoted text -- Show quoted text -




All times are GMT +1. The time now is 09:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com