LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Removing leading zeros from a group of numbers

If the values all look like numbers, you could change your =vlookup() formula to
look like:

=vlookup(--a2,sheet2!a:b,2,false)

The -- stuff will coerce the text number to a real number.

-"00047" becomes -47
--"00047" becomes the opposite of -47 or +47 (= 47).



MAC253 wrote:

I have a report that is imported from another source. A column has numbers
showing as 00047, formatted as "general". I need to use those numbers in a
vlookup formula - and the lookup table has the numbers without the leading
zeros. So right now, nothing is pulling. Is there a way to get rid of those
leading zeros - either by formatting or with a formula - so I can avoid
re-entering them all by hand (there are about 1500 of them). I use Excel 2000


--

Dave Peterson
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
retain leading zeros when importing LeePotts Excel Discussion (Misc queries) 1 December 5th 05 07:16 PM
removing leading zeros in numeric fields dingy101 Excel Discussion (Misc queries) 3 November 21st 05 03:46 AM
Social Security Numbers & Leading Zeros CSS Excel Discussion (Misc queries) 2 June 24th 05 12:23 AM
How do I stop excel removing zeros? tomcat Excel Discussion (Misc queries) 2 January 21st 05 05:40 PM
Subtotal of Subtotal displays Grand Total in wrong row Thomas Born Excel Worksheet Functions 5 January 6th 05 01:46 PM


All times are GMT +1. The time now is 05:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"