setting numberformat for -ve numbers

B

bsobaid

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,
 
A

aidan.heritage

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)
 
B

bsobaid

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

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)
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,
 
A

aidan.heritage

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

#,##0.00 would give the comma
Thanks, and how do I say to put comma as a thousand separator ??

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)
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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top