Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Custom Cell Format Question

Hullo Everyone,

A quick question. I am trying to make all negative numbers come up as
zero with a dollar sign. I tried the ´general;"0" ' one but that
doesnt include the dollar sign. Any ideas or tips?

Thanks again,
MP
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 411
Default Custom Cell Format Question

Did you already disqualify from the Worksheet menu bar:

Format, Cells, Number Tab, Currency?

Dan
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Custom Cell Format Question

Right, that throws up the $ sign, but I still need all negative
numbers to become 0´s. That's why I was thinking I need a type of
custom format.

On Jan 16, 5:10 pm, dan dungan wrote:
Did you already disqualify from the Worksheet menu bar:

Format, Cells, Number Tab, Currency?

Dan




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Custom Cell Format Question

General;$"0"

Positive;negative;0;text
is the order of those pieces.

This doesn't change the value--it just changes the display.

" wrote:

Hullo Everyone,

A quick question. I am trying to make all negative numbers come up as
zero with a dollar sign. I tried the ´general;"0" ' one but that
doesnt include the dollar sign. Any ideas or tips?

Thanks again,
MP


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 411
Default Custom Cell Format Question

Hi MP and Dave,

When I enter General;$"0", the positive numbers are not formatted with
a dollar sign. Is that what you wanted?

Dan


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Custom Cell Format Question

The OP wasn't specific:

I am trying to make all negative numbers come up as
zero with a dollar sign. I tried the ´general;"0"

dan dungan wrote:

Hi MP and Dave,

When I enter General;$"0", the positive numbers are not formatted with
a dollar sign. Is that what you wanted?

Dan


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,202
Default Custom Cell Format Question

Assuming your positive values are currency too... $0.00;$\0

Rick

wrote in message
...
Hullo Everyone,

A quick question. I am trying to make all negative numbers come up as
zero with a dollar sign. I tried the ´general;"0" ' one but that
doesnt include the dollar sign. Any ideas or tips?

Thanks again,
MP

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,202
Default Custom Cell Format Question

I forgot about zero.... $0.00;$\0;$0

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
Assuming your positive values are currency too... $0.00;$\0

Rick

wrote in message
...
Hullo Everyone,

A quick question. I am trying to make all negative numbers come up as
zero with a dollar sign. I tried the ´general;"0" ' one but that
doesnt include the dollar sign. Any ideas or tips?

Thanks again,
MP


  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 411
Default Custom Cell Format Question

Well, I certainly learned something today.

Thanks Rick and Dave. . .and Michael for asking the original question.

Dan
  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,202
Default Custom Cell Format Question

Well, I certainly learned something today.

Thanks Rick and Dave. . .and Michael for asking the original question.


http://msdn2.microsoft.com/en-us/lib...09(VS.60).aspx

Rick


  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Custom Cell Format Question

Sorry for any miscommunication, I´ve come across that the original
value is still used in my total. Is there a way to change both the
value and the display. I was under the impression changing the display
would change the total if a negative number was present.

Thanks for the help-

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 Cell as custom type but data doesn't display like I custom. ToMMie Excel Discussion (Misc queries) 6 September 11th 08 08:31 AM
fill series, custom format question hamiltoncruiser Excel Discussion (Misc queries) 2 November 24th 07 10:15 PM
Custom Format Question Telobamipada Excel Discussion (Misc queries) 11 October 18th 07 04:13 PM
Custom Cell format to mimic time format [email protected] Excel Discussion (Misc queries) 6 November 7th 06 09:17 PM
Custom Number format question Joh Excel Discussion (Misc queries) 5 October 25th 05 02:31 PM


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