Why doesn't 4000 = 4000?

SandsB

Well-known Member
Joined
Feb 13, 2007
Messages
705
Office Version
  1. 365
Platform
  1. Windows
Two files from different sources. Each has a field for the same record identifier number. Doing a VLookup and the matches aren't seen. Columns have the same format - no luck. But - If I copy/paste some of the numbers from one sheet to the other, VLookup works. I tried putting my cursor after the value and hitting enter - no luck. What's going on and what will fix this?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Have you checked they have the same data type?

It could be that in one of the sources the column you are trying to match against has numbers stored as text, or vice versa the value you are trying to look up is a number stored as text.

To check if a value that appears to be numeric you can use the ISTEXT function.
 
Upvote 0
Just did that and one file comes back True, the other False. How do I fix this?
 
Upvote 0
I added a new column, did =Right(A@,7). The ISTEXT pointed me in the right direction - thanks.
Then copied those values over the original. That worked - I don't know why it was necessary, though, Why doesn't format paint take care of the mismatch?
 
Upvote 0
Why doesn't format paint take care of the mismatch?
Formats only affect how the cell appears, they don't change the underlying value.

What you could have tried was selecting the data, Click the Data tab on the ribbon, Text to columns, Delimited, Next, check that the Other box is clear and click Finish.
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,977
Members
449,200
Latest member
Jamil ahmed

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