vlookup not returning leading 0

daveyc18

Well-known Member
Joined
Feb 11, 2013
Messages
782
Office Version
  1. 365
  2. 2010
i have a vlookup against another tab and the numbers that have ONE leading 0....theyre stored as text....when i do the vlookup, tho, the leading zero isn't returned..

is there a way to pick it up without having to concatenate?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi,

If the value(s) in the Lookup Table is Truly Text with leading 0s (zero)s, VLOOKUP Will return them intact (with the leading 0s), so may be the leading 0s are Not actually there? May be the cells are custom formatted to show leading zeros?
 
Upvote 0
Hi,

If the value(s) in the Lookup Table is Truly Text with leading 0s (zero)s, VLOOKUP Will return them intact (with the leading 0s), so may be the leading 0s are Not actually there? May be the cells are custom formatted to show leading zeros?


they are text....excel says "number stored as text"
 
Upvote 0
Please post your exact VLOOKUP formula.

If you change the format of the cells of the original range you are pulling back from to "General", what do those values look like? Do they still have leading zeroes?
If not, they are actually numbers with Custom Formatting. VLOOKUP only returns the actual underlying value, not the formatting of the cell.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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