Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default working with columns with custome formatting ?

I have a couple columns of numbers that needed zeros added to them as
follows:

A B C
145 29 812
125 8 4

need to be formatted as

145 29 812
125 08 004

Using format each column using Custom. Format the 2 digit column as 00, and
the 3
digit column as 000 the columns work fine.

But...I then need to use the columns in a combinations formula =A2&B2&C2 to
have a resulting 8 digit number...but the 'custom' 0's do not convert...I
get a number like 12584 instead of the needed 12508004 ?

Anyway around this issue ?

Thanks, Tim


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default working with columns with custome formatting ?

One way:

=TEXT(A1,"000") & TEXT(B1,"00") & TEXT(C1,"000")

another:

=TEXT(A1*100000 + B1*1000 + C1, "00000000")

In article ,
"Tim" wrote:

I have a couple columns of numbers that needed zeros added to them as
follows:

A B C
145 29 812
125 8 4

need to be formatted as

145 29 812
125 08 004

Using format each column using Custom. Format the 2 digit column as 00, and
the 3
digit column as 000 the columns work fine.

But...I then need to use the columns in a combinations formula =A2&B2&C2 to
have a resulting 8 digit number...but the 'custom' 0's do not convert...I
get a number like 12584 instead of the needed 12508004 ?

Anyway around this issue ?

Thanks, Tim

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default working with columns with custome formatting ?

As you have found, formatting for display does not change the underlying value
of the data.

In D2 enter =TEXT(A2,"000") & TEXT(B2,"00") & TEXT(C2,"000")

Copy D2 and paste specialvalues.

The data will be in text format and calculations can't take place.

To overcome that..................

Select D2 and DataText to ColumnsNextNextColumn Data FormatGeneral and
Finish.


Gord Dibben MS Excel MVP


On Sun, 21 Oct 2007 06:45:50 -0700, "Tim" wrote:

I have a couple columns of numbers that needed zeros added to them as
follows:

A B C
145 29 812
125 8 4

need to be formatted as

145 29 812
125 08 004

Using format each column using Custom. Format the 2 digit column as 00, and
the 3
digit column as 000 the columns work fine.

But...I then need to use the columns in a combinations formula =A2&B2&C2 to
have a resulting 8 digit number...but the 'custom' 0's do not convert...I
get a number like 12584 instead of the needed 12508004 ?

Anyway around this issue ?

Thanks, Tim


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
How 2 Fix/Jam a custome ToolBar? FARAZ QURESHI Excel Discussion (Misc queries) 2 August 30th 07 01:44 PM
Match Columns Not Working - Formatting? Shazam Excel Discussion (Misc queries) 0 March 28th 07 01:19 AM
Match Columns Not Working - Formatting? Toppers Excel Discussion (Misc queries) 0 March 28th 07 12:13 AM
multilanguage custome menu Tony Excel Discussion (Misc queries) 0 May 2nd 05 12:11 AM
Custome Colors? Mark Charts and Charting in Excel 1 January 22nd 05 02:45 AM


All times are GMT +1. The time now is 03:44 AM.

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"