Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default number formatting/separators

I would like to have 2 decimal separator formats within a worksheet. For
example,
for $1,234.56 the format would be $1,234-56
for 7.89% the format would be 7.89%

How can I do that?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 72
Default number formatting/separators

Hi Serene,

The following just displays the value from A1 with a hyphen in place of the
decimal.

="$"&TEXT(A1,"0")&"-"&TEXT(A1-INT(A1),"00")

Let me know if this helps.

Thanks,
Peggy

"Serene" wrote:

I would like to have 2 decimal separator formats within a worksheet. For
example,
for $1,234.56 the format would be $1,234-56
for 7.89% the format would be 7.89%

How can I do that?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default number formatting/separators

Hi psherpard
Thanks. I tried your formula but did not get the result I wanted. Result
should be $1,234-56 but I got $1235-01 using your formula. Pls help.

"pshepard" wrote:

Hi Serene,

The following just displays the value from A1 with a hyphen in place of the
decimal.

="$"&TEXT(A1,"0")&"-"&TEXT(A1-INT(A1),"00")

Let me know if this helps.

Thanks,
Peggy

"Serene" wrote:

I would like to have 2 decimal separator formats within a worksheet. For
example,
for $1,234.56 the format would be $1,234-56
for 7.89% the format would be 7.89%

How can I do that?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 72
Default number formatting/separators

Hi Serene,

="$"&TEXT(A1,"0,0")&"-"&TEXT(A1-INT(A1),"00")

Thanks,
Peggy

"Serene" wrote:

Hi psherpard
Thanks. I tried your formula but did not get the result I wanted. Result
should be $1,234-56 but I got $1235-01 using your formula. Pls help.

"pshepard" wrote:

Hi Serene,

The following just displays the value from A1 with a hyphen in place of the
decimal.

="$"&TEXT(A1,"0")&"-"&TEXT(A1-INT(A1),"00")

Let me know if this helps.

Thanks,
Peggy

"Serene" wrote:

I would like to have 2 decimal separator formats within a worksheet. For
example,
for $1,234.56 the format would be $1,234-56
for 7.89% the format would be 7.89%

How can I do that?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default number formatting/separators

Hi
The result is not correct $1,235-01.

"pshepard" wrote:

Hi Serene,

="$"&TEXT(A1,"0,0")&"-"&TEXT(A1-INT(A1),"00")

Thanks,
Peggy

"Serene" wrote:

Hi psherpard
Thanks. I tried your formula but did not get the result I wanted. Result
should be $1,234-56 but I got $1235-01 using your formula. Pls help.

"pshepard" wrote:

Hi Serene,

The following just displays the value from A1 with a hyphen in place of the
decimal.

="$"&TEXT(A1,"0")&"-"&TEXT(A1-INT(A1),"00")

Let me know if this helps.

Thanks,
Peggy

"Serene" wrote:

I would like to have 2 decimal separator formats within a worksheet. For
example,
for $1,234.56 the format would be $1,234-56
for 7.89% the format would be 7.89%

How can I do that?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default number formatting/separators

Hi Dave
Wonderful. It works. However I realise that I cannot use this value to
compute. It will have a #value! error. How to convert this into a number ?
Thank you very much.

"Serene" wrote:

Hi
The result is not correct $1,235-01.

"pshepard" wrote:

Hi Serene,

="$"&TEXT(A1,"0,0")&"-"&TEXT(A1-INT(A1),"00")

Thanks,
Peggy

"Serene" wrote:

Hi psherpard
Thanks. I tried your formula but did not get the result I wanted. Result
should be $1,234-56 but I got $1235-01 using your formula. Pls help.

"pshepard" wrote:

Hi Serene,

The following just displays the value from A1 with a hyphen in place of the
decimal.

="$"&TEXT(A1,"0")&"-"&TEXT(A1-INT(A1),"00")

Let me know if this helps.

Thanks,
Peggy

"Serene" wrote:

I would like to have 2 decimal separator formats within a worksheet. For
example,
for $1,234.56 the format would be $1,234-56
for 7.89% the format would be 7.89%

How can I do that?

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 72
Default number formatting/separators

Hi Serene,

="$"&TEXT(A1,"0,0")&"-"&TEXT((A1-INT(A1))*100,"00")

Let me know if this works for you.

Thanks,
Peggy

"Serene" wrote:

I would like to have 2 decimal separator formats within a worksheet. For
example,
for $1,234.56 the format would be $1,234-56
for 7.89% the format would be 7.89%

How can I do that?

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default number formatting/separators

Hi
still not right. The result is $1,235-56

"pshepard" wrote:

Hi Serene,

="$"&TEXT(A1,"0,0")&"-"&TEXT((A1-INT(A1))*100,"00")

Let me know if this works for you.

Thanks,
Peggy

"Serene" wrote:

I would like to have 2 decimal separator formats within a worksheet. For
example,
for $1,234.56 the format would be $1,234-56
for 7.89% the format would be 7.89%

How can I do that?

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default number formatting/separators

How about:

=SUBSTITUTE(TEXT(A1,"$#,##0.00"),".","-")



Serene wrote:

I would like to have 2 decimal separator formats within a worksheet. For
example,
for $1,234.56 the format would be $1,234-56
for 7.89% the format would be 7.89%

How can I do that?


--

Dave Peterson
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
Urgent - make formula work with both decimal separators [email protected] Excel Discussion (Misc queries) 1 October 24th 06 09:52 AM
Can I insert a row that has no column separators? ecodevah Excel Discussion (Misc queries) 2 January 23rd 06 04:22 PM
I need separators on the X axis of a chart. Frank Martin Charts and Charting in Excel 2 January 4th 06 12:32 AM
Need vertical separators rising from the X axis. Peter Jason Charts and Charting in Excel 1 January 2nd 06 11:53 AM
how to remove separators from numbers lata Excel Discussion (Misc queries) 3 January 9th 05 01:53 PM


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