Formula not finding answer

Art14501

New Member
Joined
Nov 5, 2016
Messages
7
Hi everyone,

I have a problem with a excel sheet, I am using both for inventory purposes. I download the new inventory and have to input the new value so that the shop will have the right inventory count. The problem is that the formula is not recognizing the value from the new sheet. Even when they are right next to each other. The formula I am using is =IFERROR(VLOOKUP(C2,A:B,2,FALSE),"No match"). I select the columns and converted the data to text to see if that was the problem but it still showing an error. I tried to recreate the table below. What do you think is the problem? Any help will be greatly appreciated!


[TABLE="class: grid, width: 600, align: center"]
<tbody>[TR]
[TD]Product #[/TD]
[TD]New Quantity[/TD]
[TD]Old Product #[/TD]
[TD]Formula[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]5[/TD]
[TD]A[/TD]
[TD]Error[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]2[/TD]
[TD]E[/TD]
[TD]Error[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]8[/TD]
[TD]G[/TD]
[TD]Error[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]6[/TD]
[TD]B[/TD]
[TD]Error[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi everyone,

I have a problem with a excel sheet, I am using both for inventory purposes. I download the new inventory and have to input the new value so that the shop will have the right inventory count. The problem is that the formula is not recognizing the value from the new sheet. Even when they are right next to each other. The formula I am using is =IFERROR(VLOOKUP(C2,A:B,2,FALSE),"No match"). I select the columns and converted the data to text to see if that was the problem but it still showing an error. I tried to recreate the table below. What do you think is the problem? Any help will be greatly appreciated!


[TABLE="class: grid, width: 600, align: center"]
<tbody>[TR]
[TD]Product #[/TD]
[TD]New Quantity[/TD]
[TD]Old Product #[/TD]
[TD]Formula[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]5[/TD]
[TD]A[/TD]
[TD]Error[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]2[/TD]
[TD]E[/TD]
[TD]Error[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]8[/TD]
[TD]G[/TD]
[TD]Error[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]6[/TD]
[TD]B[/TD]
[TD]Error[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
try this
=IF(ISERROR(VLOOKUP(C2,A:B,2,FALSE)),"No match",VLOOKUP(C2,A:B,2,FALSE))
 
Upvote 0
your formula works fine for me I copied your table to a new sheet and your formula. not sure why yours is not working
 
Upvote 0
Thank you @Drrellik and @snjpverma, I found the problem with my sheet. In Column A, the values had a trailing white space making it a different value than that of my inventory sheet. And because trailing spaces don't show up at all, I didn't figure it out till much later. Thanks again for the help!
 
Upvote 0
If you have not changed the format in your table, then it looks like the entries in New may be text and not numeric (no that this should stop the formula from working though)

Take a quick look for leading/trailing spaces in the A and C columns, especially those cells you know should match

edit: haha that will teach me to read all posts in a thread LOL
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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