Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default LEADING ZEROS IN FORMULA RESULT

I have looked all over to determine how to maintain leading zeros in a
formula result. I have tried formating cells as custom '0000' and as text to
no avail. I have two cell that I would like to combine into one cell.
Example, b1=60; c1=07 when I combine these two cells I get a1=607... This is
killing me. Any quick help would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 125
Default LEADING ZEROS IN FORMULA RESULT

You can use =text(location,"00000") this will always put zeroes in front if
needed to make number 5 digits, increase zeroes for more.

-John

"Advent" wrote:

I have looked all over to determine how to maintain leading zeros in a
formula result. I have tried formating cells as custom '0000' and as text to
no avail. I have two cell that I would like to combine into one cell.
Example, b1=60; c1=07 when I combine these two cells I get a1=607... This is
killing me. Any quick help would be greatly appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default LEADING ZEROS IN FORMULA RESULT

Thanks John but I am looking to combine these two numbers. I would like to
end up with 6007.

"John Bundy" wrote:

You can use =text(location,"00000") this will always put zeroes in front if
needed to make number 5 digits, increase zeroes for more.

-John

"Advent" wrote:

I have looked all over to determine how to maintain leading zeros in a
formula result. I have tried formating cells as custom '0000' and as text to
no avail. I have two cell that I would like to combine into one cell.
Example, b1=60; c1=07 when I combine these two cells I get a1=607... This is
killing me. Any quick help would be greatly appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 125
Default LEADING ZEROS IN FORMULA RESULT

This will work if you know how many leading zeroe's you want
=TEXT(A1,"00")&TEXT(B1,"00")

-John

"Advent" wrote:

Thanks John but I am looking to combine these two numbers. I would like to
end up with 6007.

"John Bundy" wrote:

You can use =text(location,"00000") this will always put zeroes in front if
needed to make number 5 digits, increase zeroes for more.

-John

"Advent" wrote:

I have looked all over to determine how to maintain leading zeros in a
formula result. I have tried formating cells as custom '0000' and as text to
no avail. I have two cell that I would like to combine into one cell.
Example, b1=60; c1=07 when I combine these two cells I get a1=607... This is
killing me. Any quick help would be greatly appreciated.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default LEADING ZEROS IN FORMULA RESULT

John,
You are the man! Thanks so much this really worked.

"John Bundy" wrote:

This will work if you know how many leading zeroe's you want
=TEXT(A1,"00")&TEXT(B1,"00")

-John

"Advent" wrote:

Thanks John but I am looking to combine these two numbers. I would like to
end up with 6007.

"John Bundy" wrote:

You can use =text(location,"00000") this will always put zeroes in front if
needed to make number 5 digits, increase zeroes for more.

-John

"Advent" wrote:

I have looked all over to determine how to maintain leading zeros in a
formula result. I have tried formating cells as custom '0000' and as text to
no avail. I have two cell that I would like to combine into one cell.
Example, b1=60; c1=07 when I combine these two cells I get a1=607... This is
killing me. Any quick help would be greatly appreciated.



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
The Formula is displaying, not the result tcarp Excel Discussion (Misc queries) 6 January 30th 07 06:51 AM
How do I make a formula read a result rather than a formula Chris Excel Discussion (Misc queries) 7 June 20th 06 10:56 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Median result used in formula gives incorrect result vlatham Excel Worksheet Functions 4 September 21st 05 04:26 PM
Is there a formula to spell out a number in excel? Sha-nay-nay Excel Worksheet Functions 2 December 18th 04 09:25 PM


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