Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XL 2K3 formatting 2

Status
Not open for further replies.

MeGustaXL

Technical User
Aug 6, 2003
1,055
GB
Hi there

Looonnnggg.. list of prices:

554.89
18.58
14.23
69.27
57.31
57.31
48.95
48.95

etc.

I am required to present these as fixed-length text in a custom format:

000000 000

so they look like
000554 890
000018 580
etc.

How can I switch from numbers to the leading-and trailing-zeroes thing?

Chris

Someday I'll know what I'm donig...damn!

 



Hi,

This requirement in not a FORMAT. FORMAT changes nothing.

You must convert to text in an adjacnet column...
[tt]
=TEXT(A1*1000,"000000 000")
[/tt]

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Ha! Skip old bean, I KNEW you'd do it! [2thumbsup]

How can I change them back again - say I get a list like:

000048 950
000092 450
000163 950
000054 830

and want them in dollars to 2 d.p?

Chris

Someday I'll know what I'm donig...damn!

 
Like this:

=+LEFT(A1,6)+(RIGHT(A1,3)/1000)


Cheers, Glenn.

Beauty is in the eye of the beerholder.
 



Easiest would be to parse, using Data > Text to columns..., then in an adjacent column, assuming that you parsed from A to A:B...
[tt]
C1: =A1*B1/100
[/tt]


Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Thanks Glenn! STAR for you, too :-D

Chris

Someday I'll know what I'm donig...damn!

 


Oh, yes B1/1000, thanx to Glenn!

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top