Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to keep zeros at the begining of a number

When I merge data together the zeros are removed from the begining of the data.
EX SSSD 001234 0 , when merged by =(cell "A2" & cell "B2" & cell "c2")
the zero are removed making it: "SSSD1234" when it needs to be "SSSD0012340"

How do I maintain the zeros in the data I want to merge??
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 75
Default How to keep zeros at the begining of a number

I have formatted A2, B2 and C2 as text and entered in your suggested values.
In D2 I have entered:-
=A2 & B2 & C2
Your required value is returned.

--
Alan Moseley IT Consultancy
http://www.amitc.co.uk

If I have solved your problem, please click Yes below. Thanks.


"sockst" wrote:

When I merge data together the zeros are removed from the begining of the data.
EX SSSD 001234 0 , when merged by =(cell "A2" & cell "B2" & cell "c2")
the zero are removed making it: "SSSD1234" when it needs to be "SSSD0012340"

How do I maintain the zeros in the data I want to merge??

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default How to keep zeros at the begining of a number

Try it this way:

=A2 & B2 & TEXT(C2,"0000000")

The zeros in the TEXT function determine how many characters to include and
will fill with leading zeros where necessary.

Hope this helps.

Pete

"sockst" wrote in message
...
When I merge data together the zeros are removed from the begining of the
data.
EX SSSD 001234 0 , when merged by =(cell "A2" & cell "B2" & cell "c2")
the zero are removed making it: "SSSD1234" when it needs to be
"SSSD0012340"

How do I maintain the zeros in the data I want to merge??



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
Essbase: Text zeros to number zeros santhu Excel Discussion (Misc queries) 1 March 23rd 07 01:01 PM
change negative sign from end of the number to the begining James Excel Discussion (Misc queries) 11 September 23rd 06 05:36 PM
option to keep zero at begining of number gritter Excel Discussion (Misc queries) 1 September 7th 06 07:56 PM
how to add symbol automatically at begining and end Don Excel Discussion (Misc queries) 2 October 22nd 05 01:11 AM
Preceding a number by zeros, that is still a number Michele Excel Worksheet Functions 1 September 14th 05 01:06 PM


All times are GMT +1. The time now is 06:17 PM.

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

About Us

"It's about Microsoft Excel"