Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Adding 0 to the front of a number

I have a data set that has a 5 digit id field with the first id being 00001.
How can I add the zeros i need to a similar data set that doesn't currently
have the zeros in front to make the 5 digit character?

Any help would be awesome!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Adding 0 to the front of a number

Hi,

Apply a custom format of 00000
That's 5 zeroes.

Mike

"Staten42" wrote:

I have a data set that has a 5 digit id field with the first id being 00001.
How can I add the zeros i need to a similar data set that doesn't currently
have the zeros in front to make the 5 digit character?

Any help would be awesome!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Adding 0 to the front of a number

Format cellsCustom Type: 00000

If you need to combine this with any formulas to reflect the text with 5
digits you can use the below formula
TEXT(A1,"00000")

If this post helps click Yes
---------------
Jacob Skaria


"Staten42" wrote:

I have a data set that has a 5 digit id field with the first id being 00001.
How can I add the zeros i need to a similar data set that doesn't currently
have the zeros in front to make the 5 digit character?

Any help would be awesome!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Adding 0 to the front of a number

Would I need to do that if using the VLOOKUP function to compare the two data
sets?

"Jacob Skaria" wrote:

Format cellsCustom Type: 00000

If you need to combine this with any formulas to reflect the text with 5
digits you can use the below formula
TEXT(A1,"00000")

If this post helps click Yes
---------------
Jacob Skaria


"Staten42" wrote:

I have a data set that has a 5 digit id field with the first id being 00001.
How can I add the zeros i need to a similar data set that doesn't currently
have the zeros in front to make the 5 digit character?

Any help would be awesome!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Adding 0 to the front of a number

If the lookup value and array value is formatted to display 00000 then you
dont need to.

If this post helps click Yes
---------------
Jacob Skaria


"Staten42" wrote:

Would I need to do that if using the VLOOKUP function to compare the two data
sets?

"Jacob Skaria" wrote:

Format cellsCustom Type: 00000

If you need to combine this with any formulas to reflect the text with 5
digits you can use the below formula
TEXT(A1,"00000")

If this post helps click Yes
---------------
Jacob Skaria


"Staten42" wrote:

I have a data set that has a 5 digit id field with the first id being 00001.
How can I add the zeros i need to a similar data set that doesn't currently
have the zeros in front to make the 5 digit character?

Any help would be awesome!



Reply
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
adding a zero in front of a colon 303mike Excel Worksheet Functions 5 June 25th 09 07:30 AM
Adding a zero to the front of numbers Connie Martin Excel Worksheet Functions 5 May 8th 09 04:37 PM
need help in adding a ' in front of a column of numbers noreaster New Users to Excel 4 September 14th 08 03:54 PM
adding a zero in front of number Pinky Excel Discussion (Misc queries) 3 April 7th 05 09:05 PM
Adding + in front of a number Ted Metro Excel Discussion (Misc queries) 3 December 29th 04 10:45 PM


All times are GMT +1. The time now is 02:55 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"