Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Hari Prasadh
 
Posts: n/a
Default Custom Formatting a number

Hi,

I can do the following using a helper cell in conjunction with IF formula
but I dont/cannot do it that way for the present purpose.

In B4 if a cell displays zero it should display as - NULL - but if it is
some number like - 32,567 - then it should display 32,567 as it is.

Can this be achieved through custom formatting. Please suggest.

Please note B4 contains dollar amounts.
--
Thanks a lot,
Hari
India


  #2   Report Post  
 
Posts: n/a
Default

Hi Hari
i hope the cell you want "Null" or other value to come is a result of
sum formula.

if it is so then you can use the following formula instead of
yourformula

=if( yourformula=0,"NULL",yourformula)

i m not very clear why you cant use it for the required purpose.if
above formula cant be used please elaborate the question. Well as per
my knowledge it is not possible to do with custom formatting or
conditional formatting.

Regards
NC

  #3   Report Post  
Hari Prasadh
 
Posts: n/a
Default

Hi NC,

Its like somebody would be typing a number in to cell B4 and if that number
is zero then it should get displayed in the cell as NULL ( though in the
formula bar I believe it would be 0 only). if the person types a non-zero
number in to B4 like 58 then it should be displayed in the cell as 58.

I think I have read some similar "manipulations" in Newsgroups using
formatting feature.

Another way would be to use a helper cell like A4 where the person enters
the number and in B4 I might have a formula like = if(A4 = 0,"Null",A4). But
I dont want to do this through this method.
--
Thanks a lot,
Hari
India

wrote in message
oups.com...
Hi Hari
i hope the cell you want "Null" or other value to come is a result of
sum formula.

if it is so then you can use the following formula instead of
yourformula

=if( yourformula=0,"NULL",yourformula)

i m not very clear why you cant use it for the required purpose.if
above formula cant be used please elaborate the question. Well as per
my knowledge it is not possible to do with custom formatting or
conditional formatting.

Regards
NC



  #4   Report Post  
Jason Morin
 
Posts: n/a
Default

Try a custom format of:

$#,##0.00_);[Red]($#,##0.00);"NULL";@

HTH
Jason
Atlanta, GA


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

I can do the following using a helper cell in conjunction

with IF formula
but I dont/cannot do it that way for the present purpose.

In B4 if a cell displays zero it should display as -

NULL - but if it is
some number like - 32,567 - then it should display

32,567 as it is.

Can this be achieved through custom formatting. Please

suggest.

Please note B4 contains dollar amounts.
--
Thanks a lot,
Hari
India


.

  #5   Report Post  
Hari Prasadh
 
Posts: n/a
Default

Hi Jason,

You saved the day for one of my friends!!!

Thnx a ton.
--
Regards,
Hari
India

"Jason Morin" wrote in message
...
Try a custom format of:

$#,##0.00_);[Red]($#,##0.00);"NULL";@

HTH
Jason
Atlanta, GA


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

I can do the following using a helper cell in conjunction

with IF formula
but I dont/cannot do it that way for the present purpose.

In B4 if a cell displays zero it should display as -

NULL - but if it is
some number like - 32,567 - then it should display

32,567 as it is.

Can this be achieved through custom formatting. Please

suggest.

Please note B4 contains dollar amounts.
--
Thanks a lot,
Hari
India


.





  #6   Report Post  
Hari Prasadh
 
Posts: n/a
Default

Hi Jason,

I was in a hurry, so didnt ask in my previous post.

How should I interpret or evaluate an expression like
$#,##0.00_);[Red]($#,##0.00);"NULL";@
I can understand formuals written (and if not able to, I use the evaluate
formula feature) but the above is greek to me. Whats the logic for these?

Is there some website/link explaining about manipulating custom formats.

--
Thanks a lot,
Hari
India

"Jason Morin" wrote in message
...
Try a custom format of:

$#,##0.00_);[Red]($#,##0.00);"NULL";@

HTH
Jason
Atlanta, GA


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

I can do the following using a helper cell in conjunction

with IF formula
but I dont/cannot do it that way for the present purpose.

In B4 if a cell displays zero it should display as -

NULL - but if it is
some number like - 32,567 - then it should display

32,567 as it is.

Can this be achieved through custom formatting. Please

suggest.

Please note B4 contains dollar amounts.
--
Thanks a lot,
Hari
India


.



  #7   Report Post  
Jason Morin
 
Posts: n/a
Default

The XL help file actually does a decent job of explaining
formats. Here are some other links to help you:

http://j-walk.com/ss/excel/tips/tip19.htm
(download the file)

http://office.microsoft.com/en-
us/assistance/HP051986791033.aspx

http://office.microsoft.com/en-
us/assistance/HP052075951033.aspx

HTH
Jason
Atlanta, GA

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

I was in a hurry, so didnt ask in my previous post.

How should I interpret or evaluate an expression like
$#,##0.00_);[Red]($#,##0.00);"NULL";@
I can understand formuals written (and if not able to, I

use the evaluate
formula feature) but the above is greek to me. Whats the

logic for these?

Is there some website/link explaining about manipulating

custom formats.

--
Thanks a lot,
Hari
India

"Jason Morin" wrote

in message
...
Try a custom format of:

$#,##0.00_);[Red]($#,##0.00);"NULL";@

HTH
Jason
Atlanta, GA


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

I can do the following using a helper cell in

conjunction
with IF formula
but I dont/cannot do it that way for the present

purpose.

In B4 if a cell displays zero it should display as -

NULL - but if it is
some number like - 32,567 - then it should display

32,567 as it is.

Can this be achieved through custom formatting. Please

suggest.

Please note B4 contains dollar amounts.
--
Thanks a lot,
Hari
India


.



.

  #8   Report Post  
Hari Prasadh
 
Posts: n/a
Default

Hi Jason,

Thnx a ton.

--
Regards,
Hari
India

"Jason Morin" wrote in message
...
The XL help file actually does a decent job of explaining
formats. Here are some other links to help you:

http://j-walk.com/ss/excel/tips/tip19.htm
(download the file)

http://office.microsoft.com/en-
us/assistance/HP051986791033.aspx

http://office.microsoft.com/en-
us/assistance/HP052075951033.aspx

HTH
Jason
Atlanta, GA

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

I was in a hurry, so didnt ask in my previous post.

How should I interpret or evaluate an expression like
$#,##0.00_);[Red]($#,##0.00);"NULL";@
I can understand formuals written (and if not able to, I

use the evaluate
formula feature) but the above is greek to me. Whats the

logic for these?

Is there some website/link explaining about manipulating

custom formats.

--
Thanks a lot,
Hari
India

"Jason Morin" wrote

in message
...
Try a custom format of:

$#,##0.00_);[Red]($#,##0.00);"NULL";@

HTH
Jason
Atlanta, GA


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

I can do the following using a helper cell in

conjunction
with IF formula
but I dont/cannot do it that way for the present

purpose.

In B4 if a cell displays zero it should display as -
NULL - but if it is
some number like - 32,567 - then it should display
32,567 as it is.

Can this be achieved through custom formatting. Please
suggest.

Please note B4 contains dollar amounts.
--
Thanks a lot,
Hari
India


.



.



  #9   Report Post  
Dana DeLouis
 
Posts: n/a
Default

Its like somebody would be typing a number in to cell B4 and if that
number
is zero then it should get displayed in the cell as NULL


I know it's not what you asked, but would using Data | Validation help you
by preventing zero's from being entered in the first place? One advantage
would be that if someone entered a zero, then Excel could display your
custom message explaining the error. (ie. "Please only enter non-zero
numbers"...or whatever..)

If you would like to experiment with this feature, select your range of
cells, (say A1:A100) and select Data | Validation.
Under the Settings tab, select "Custom" under the Allow: box.
For the formula, enter =A1 < 0.
It is important to note that "A1" is the first cell in your selection.
Excel will correctly adjust the address for the other cells when you hit ok.
For "Input Message" and "Error Alert", enter your information that explains
to users what you expect.

HTH
--
Dana DeLouis
Win XP & Office 2003


"Hari Prasadh" wrote in message
...
Hi Jason,

Thnx a ton.

--
Regards,
Hari
India

"Jason Morin" wrote in message
...
The XL help file actually does a decent job of explaining
formats. Here are some other links to help you:

http://j-walk.com/ss/excel/tips/tip19.htm
(download the file)

http://office.microsoft.com/en-
us/assistance/HP051986791033.aspx

http://office.microsoft.com/en-
us/assistance/HP052075951033.aspx

HTH
Jason
Atlanta, GA

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

I was in a hurry, so didnt ask in my previous post.

How should I interpret or evaluate an expression like
$#,##0.00_);[Red]($#,##0.00);"NULL";@
I can understand formuals written (and if not able to, I

use the evaluate
formula feature) but the above is greek to me. Whats the

logic for these?

Is there some website/link explaining about manipulating

custom formats.

--
Thanks a lot,
Hari
India

"Jason Morin" wrote

in message
...
Try a custom format of:

$#,##0.00_);[Red]($#,##0.00);"NULL";@

HTH
Jason
Atlanta, GA


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

I can do the following using a helper cell in

conjunction
with IF formula
but I dont/cannot do it that way for the present

purpose.

In B4 if a cell displays zero it should display as -
NULL - but if it is
some number like - 32,567 - then it should display
32,567 as it is.

Can this be achieved through custom formatting. Please
suggest.

Please note B4 contains dollar amounts.
--
Thanks a lot,
Hari
India


.



.






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
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
Pivot Table Drill Down Number Formatting Gregg Riemer Excel Discussion (Misc queries) 1 January 4th 05 10:53 PM
How to format a number in Indian style in Excel? Victor_alb Excel Discussion (Misc queries) 2 December 21st 04 04:21 AM
Conditional Formatting (Date vs Number) [email protected] Excel Discussion (Misc queries) 7 December 20th 04 10:23 PM
Custom formatting Pat Excel Discussion (Misc queries) 1 December 16th 04 12:15 PM


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