Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to not display the $.

Hi,

I have the following 10 values in a column:
68.9

78.9
78.9
95.7
98
78
52.58

31.6

In formatting these currency cells, I use the Type $#,###.##
So the following values are displayed:

$68.90
$.
$78.90
$78.90
$95.70
$98.00
$78.00
$52.58
$.
$31.60

Can you please tell me how I should change the Type format
so that the $. does not display?

So if the value is blank or zero then the formatted Type
should just display a blank cell.


Thanks,
Luther



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default How to not display the $.

Can you not just use excel's currency format? It will show blank if there is
no number in a cell, the format it uses is $#,##0.00
--
Paul B
Always backup your data before trying something new
Using Excel 2000 & 97
Please post any response to the newsgroups so others can benefit from it
** remove news from my email address to reply by email **
"lothario" wrote in message
...
Hi,

I have the following 10 values in a column:
68.9

78.9
78.9
95.7
98
78
52.58

31.6

In formatting these currency cells, I use the Type $#,###.##
So the following values are displayed:

$68.90
$.
$78.90
$78.90
$95.70
$98.00
$78.00
$52.58
$.
$31.60

Can you please tell me how I should change the Type format
so that the $. does not display?

So if the value is blank or zero then the formatted Type
should just display a blank cell.


Thanks,
Luther



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
pk pk is offline
external usenet poster
 
Posts: 27
Default How to not display the $.

Lothario,

The formatting can be separated into 4 sections. The
first is for positive values; the second for negative
values; the third for zeros; the fourth for text. Each
section is divided by a semi-colon. The following format
worked for me:

#,##0.00_-;[Red](#,##0.00);;

The "_-" adds a gutter space at the end so positive and
negative values line up; "[Red]" change the font color of
negative values; The two ";;" indicate that zeros and
text should be blank.

Hope this helps...

-----Original Message-----
Hi,

I have the following 10 values in a column:
68.9

78.9
78.9
95.7
98
78
52.58

31.6

In formatting these currency cells, I use the Type

$#,###.##
So the following values are displayed:

$68.90
$.
$78.90
$78.90
$95.70
$98.00
$78.00
$52.58
$.
$31.60

Can you please tell me how I should change the Type

format
so that the $. does not display?

So if the value is blank or zero then the formatted Type
should just display a blank cell.


Thanks,
Luther



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from

http://www.ExcelForum.com/

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to not display the $.

Thanks!
This worked for the most part.

The $ sign is missing from this format.

How can the $ sign be incorporated so that it appears before the amount
but not be printed if the amount is zero or cell has no value?



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to not display the $.

No that does not work.

If the $#,###.## format Type is used then the resulting display
is:

$0.00



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



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
some cells display formulas, some display values mvivelo Excel Discussion (Misc queries) 1 March 27th 08 10:09 PM
How to display remaining txt file which overflowed MsgBox display? EagleOne Excel Discussion (Misc queries) 1 November 2nd 06 01:10 PM
Display every 3rd category name but still display latest month maryj Charts and Charting in Excel 1 September 24th 06 09:05 PM
Can I display an Excel chart as my screensaver display? Burke Charts and Charting in Excel 0 August 1st 06 07:01 PM
Numbers display as decimal, i.e. enter 123 display 1.23 IGH219 Setting up and Configuration of Excel 1 June 16th 05 09:16 PM


All times are GMT +1. The time now is 10:21 AM.

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"