Vlookup, Match functions do not work

bkish

New Member
Joined
Jul 28, 2008
Messages
20
I have a sheet which takes data from two different sheets to compare to each other. I use the trim function on one to get the data to match the other. I am left with a 6 digit number that should be the same for both sets of data. Match, Vlookup, and =A3=B3 comes back FALSE. When I evaluate formula I can see A3=123456, but B3="123456". If I copy and paste the cells as values then it works but as soon as I put the formula in it does not.

Any ideas on how to get them to be in the same format?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
you may either convert
"123456" to number by using ="123456"+0
or
123456 to text by using text(123456,"#")
 
Upvote 0
use Value(trim(A1)) in your formula to keep the numbers as values where A1 is the cell you are referencing.

~t
 
Upvote 0
On a column of numerals (text strings like "12345") use TextToColumns with a Tab delimiter. If you choose General in the last dialog page, the column will become numbers.
 
Upvote 0
I added the Value() around my trim function and that did the trick. Thanks for those who replied. As usual, outstanding job.
 
Upvote 0

Forum statistics

Threads
1,224,893
Messages
6,181,617
Members
453,057
Latest member
LE102024

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