Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default setting numberformat for -ve numbers

Hi,

I want to set the numberformat property such that if the value in cell in
whole sheet is a -ve number then it should be displayed in red color with
brackets around it.
What should I set the numberformat property to ??
Is there a list of values available that numberformat can be set to ?

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default setting numberformat for -ve numbers

It's a custom format,

0.00;[Red](0.00)


(it's a variation on one of the standard formats, but with the addition
of the brackets)

bsobaid wrote:
Hi,

I want to set the numberformat property such that if the value in cell in
whole sheet is a -ve number then it should be displayed in red color with
brackets around it.
What should I set the numberformat property to ??
Is there a list of values available that numberformat can be set to ?

Thanks,


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default setting numberformat for -ve numbers

Thanks, and how do I say to put comma as a thousand separator ??

" wrote:

It's a custom format,

0.00;[Red](0.00)


(it's a variation on one of the standard formats, but with the addition
of the brackets)

bsobaid wrote:
Hi,

I want to set the numberformat property such that if the value in cell in
whole sheet is a -ve number then it should be displayed in red color with
brackets around it.
What should I set the numberformat property to ??
Is there a list of values available that numberformat can be set to ?

Thanks,



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default setting numberformat for -ve numbers

You can find all that you need by just formatting a cell as a given
format, but

#,##0.00 would give the comma

bsobaid wrote:
Thanks, and how do I say to put comma as a thousand separator ??

" wrote:

It's a custom format,

0.00;[Red](0.00)


(it's a variation on one of the standard formats, but with the addition
of the brackets)

bsobaid wrote:
Hi,

I want to set the numberformat property such that if the value in cell in
whole sheet is a -ve number then it should be displayed in red color with
brackets around it.
What should I set the numberformat property to ??
Is there a list of values available that numberformat can be set to ?

Thanks,




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
Spread numbers by setting up a Min and Max Turki755 Excel Worksheet Functions 2 November 2nd 09 01:09 PM
setting up random number generator for lotto numbers Random Number Generator in Excel 2007 Setting up and Configuration of Excel 1 June 6th 09 01:02 AM
setting up excell to add and subtract numbers. Heartworks Excel Discussion (Misc queries) 1 December 27th 05 01:55 PM
Setting round numbers for the scale Mangesh Yadav Charts and Charting in Excel 2 September 10th 05 06:07 AM
Setting NumberFormat within a VBA Module Dominic Olivastro Excel Discussion (Misc queries) 3 April 20th 05 12:10 AM


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