Value VLOOKUP is searching for is negative - returns #N/A

ibleafnmajic

New Member
Joined
Oct 1, 2019
Messages
1
Team,

Trying to keep this example simple.

I have a pivot table:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Aisle[/TD]
[TD]# Locations[/TD]
[TD]Units[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]001[/TD]
[TD]229[/TD]
[TD]1569[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]002[/TD]
[TD]1[/TD]
[TD]-12[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]003[/TD]
[TD]12[/TD]
[TD]214[/TD]
[/TR]
</tbody>[/TABLE]
I am trying to combine information in a spreadsheet from three pivot tables using the VLOOKUP.
However, when I try to display the # of units from Aisle 002 I receive the error message #N/A. But the formula works for all positive numbers.

This is the formula I am using in the other spreadsheet:

=VLOOKUP([@Aisle],A:C,3,0)


[TABLE="width: 500"]
<tbody>[TR]
[TD]Aisle[/TD]
[TD]# Locations[/TD]
[TD]Empty Locations[/TD]
[TD]Utilized Locations[/TD]
[TD]Units[/TD]
[/TR]
[TR]
[TD]001[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]=VLOOKUP([@Aisle],A:C,3,0)[/TD]
[/TR]
[TR]
[TD]002[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]#N/A
[/TD]
[/TR]
[TR]
[TD]003[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]=VLOOKUP([@Aisle],A:C,3,0)[/TD]
[/TR]
</tbody>[/TABLE]


Thank you for your time!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
=VLOOKUP([@Aisle],Sheet1!A:C,3,0) is working for me with Aisle as text or numbers, on the same sheet or different sheets.

Is there possibly any accidental spaces in the Aisle data? maybe check the formula evaluation steps to see if the lookup value is matching...
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,195
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top