Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
hagen
 
Posts: n/a
Default Trailing Space / Format Question

Hey gang

I have a spreadsheet in Excel 2003 that has values imported from a Crystal
report. All the numbers have a trailing space, so I can not format them to
show dollar signs, decimals, comma seperators, etc...

I have tried to use the TRIM function, then copy/pasteValues only, but the
values only paste gives me back the trailing space.

Any ideas?
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Try this formula in a help column


=--TRIM(SUBSTITUTE(A1,CHAR(160)," "))


copy and paste special as values and then use number formatting




Regards,

Peo Sjoblom



"hagen" wrote:

Hey gang

I have a spreadsheet in Excel 2003 that has values imported from a Crystal
report. All the numbers have a trailing space, so I can not format them to
show dollar signs, decimals, comma seperators, etc...

I have tried to use the TRIM function, then copy/pasteValues only, but the
values only paste gives me back the trailing space.

Any ideas?

  #3   Report Post  
hagen
 
Posts: n/a
Default

Well, this works for the numbers. But now the cells that contain text show
up as "#Value!"

Any slick way around that? If, then statement perhaps?

Thanks Peo

~hagen

"Peo Sjoblom" wrote:

Try this formula in a help column


=--TRIM(SUBSTITUTE(A1,CHAR(160)," "))


copy and paste special as values and then use number formatting




Regards,

Peo Sjoblom



"hagen" wrote:

Hey gang

I have a spreadsheet in Excel 2003 that has values imported from a Crystal
report. All the numbers have a trailing space, so I can not format them to
show dollar signs, decimals, comma seperators, etc...

I have tried to use the TRIM function, then copy/pasteValues only, but the
values only paste gives me back the trailing space.

Any ideas?

  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

=IF(ISERROR(--TRIM(SUBSTITUTE(A1,CHAR(160),"
"))),A1,--TRIM(SUBSTITUTE(A1,CHAR(160)," ")))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"hagen" wrote in message
...
Well, this works for the numbers. But now the cells that contain text

show
up as "#Value!"

Any slick way around that? If, then statement perhaps?

Thanks Peo

~hagen

"Peo Sjoblom" wrote:

Try this formula in a help column


=--TRIM(SUBSTITUTE(A1,CHAR(160)," "))


copy and paste special as values and then use number formatting




Regards,

Peo Sjoblom



"hagen" wrote:

Hey gang

I have a spreadsheet in Excel 2003 that has values imported from a

Crystal
report. All the numbers have a trailing space, so I can not format

them to
show dollar signs, decimals, comma seperators, etc...

I have tried to use the TRIM function, then copy/pasteValues only,

but the
values only paste gives me back the trailing space.

Any ideas?



  #5   Report Post  
hagen
 
Posts: n/a
Default

That did it.

You guys are amazing. Thank you.

"Bob Phillips" wrote:

=IF(ISERROR(--TRIM(SUBSTITUTE(A1,CHAR(160),"
"))),A1,--TRIM(SUBSTITUTE(A1,CHAR(160)," ")))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"hagen" wrote in message
...
Well, this works for the numbers. But now the cells that contain text

show
up as "#Value!"

Any slick way around that? If, then statement perhaps?

Thanks Peo

~hagen

"Peo Sjoblom" wrote:

Try this formula in a help column


=--TRIM(SUBSTITUTE(A1,CHAR(160)," "))


copy and paste special as values and then use number formatting




Regards,

Peo Sjoblom



"hagen" wrote:

Hey gang

I have a spreadsheet in Excel 2003 that has values imported from a

Crystal
report. All the numbers have a trailing space, so I can not format

them to
show dollar signs, decimals, comma seperators, etc...

I have tried to use the TRIM function, then copy/pasteValues only,

but the
values only paste gives me back the trailing space.

Any ideas?




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
Format numbers in chart datatable MB Charts and Charting in Excel 3 May 29th 05 03:37 PM
Time Format Auto Entry AM and PM BulaMan Excel Discussion (Misc queries) 1 December 15th 04 09:30 AM
copy conditional format as ACTUAL format Dana Zulager Excel Discussion (Misc queries) 7 December 7th 04 11:02 PM
make a conditional format the default Fred Evans Excel Discussion (Misc queries) 3 December 6th 04 05:01 AM
format question when open csv file Jeff Excel Discussion (Misc queries) 1 December 1st 04 06:53 PM


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