Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default If result of formula is "" (Blank) why is this considered a num.

I have a cell formula that returns either a number or "" (blank). This works
fine but when I try to compare the result with another number to see which is
greater, I'm having trouble figuring out how Excel treats the result. If the
formula returned a number (say 2.0) and the other cell contained say 3.0,
then Excel can correctly recognise that 32. However, if the result was "",
then it says that ""3. I don't know why this is. You would think that ""
would be treated as zero which would be less than 3, not greater than.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default If result of formula is "" (Blank) why is this considered a num.

Try to substitute "" with 0
any text is greater than A number
example: A1 =me, B1 =3
formula A1B1 (the answere is TRUE)

"Frank Winston" wrote:

I have a cell formula that returns either a number or "" (blank). This works
fine but when I try to compare the result with another number to see which is
greater, I'm having trouble figuring out how Excel treats the result. If the
formula returned a number (say 2.0) and the other cell contained say 3.0,
then Excel can correctly recognise that 32. However, if the result was "",
then it says that ""3. I don't know why this is. You would think that ""
would be treated as zero which would be less than 3, not greater than.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default If result of formula is "" (Blank) why is this considered a

Thank you all for replies so far; all on the same track. Ok, it is true, the
"" is treated as text, which is greater than a number. The behaviour with a
genuinely blank cell is different: it is treated as zero.
I don't want to use 0 instead of blank because it will spoil the look of the
program. I only want a number to appear in the cell if certain conditions are
met. If they aren't I want the cell to be blank, not have a zero in there.
I'm sure there is a way around this and will keep looking.
Thanks again,
Frank

"Teethless mama" wrote:

Try to substitute "" with 0
any text is greater than A number
example: A1 =me, B1 =3
formula A1B1 (the answere is TRUE)

"Frank Winston" wrote:

I have a cell formula that returns either a number or "" (blank). This works
fine but when I try to compare the result with another number to see which is
greater, I'm having trouble figuring out how Excel treats the result. If the
formula returned a number (say 2.0) and the other cell contained say 3.0,
then Excel can correctly recognise that 32. However, if the result was "",
then it says that ""3. I don't know why this is. You would think that ""
would be treated as zero which would be less than 3, not greater than.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default If result of formula is "" (Blank) why is this considered a

Perhaps your formula can return a 0, but just display "" to retain the looks
of the project.

Try Format/Cells/Custom and enter
0;-0;""

positive and negative values s/b displayed as such, but 0 s/b displayed as
"". However, the cell will retain the numeric value of 0 so should not
affect your formulae.


"Frank Winston" wrote:

Thank you all for replies so far; all on the same track. Ok, it is true, the
"" is treated as text, which is greater than a number. The behaviour with a
genuinely blank cell is different: it is treated as zero.
I don't want to use 0 instead of blank because it will spoil the look of the
program. I only want a number to appear in the cell if certain conditions are
met. If they aren't I want the cell to be blank, not have a zero in there.
I'm sure there is a way around this and will keep looking.
Thanks again,
Frank

"Teethless mama" wrote:

Try to substitute "" with 0
any text is greater than A number
example: A1 =me, B1 =3
formula A1B1 (the answere is TRUE)

"Frank Winston" wrote:

I have a cell formula that returns either a number or "" (blank). This works
fine but when I try to compare the result with another number to see which is
greater, I'm having trouble figuring out how Excel treats the result. If the
formula returned a number (say 2.0) and the other cell contained say 3.0,
then Excel can correctly recognise that 32. However, if the result was "",
then it says that ""3. I don't know why this is. You would think that ""
would be treated as zero which would be less than 3, not greater than.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default If result of formula is "" (Blank) why is this considered a

Yes!!! this works. Thanks very much JMB, this works well and I have learnt
something new.
Ciao, Frank

"JMB" wrote:

Perhaps your formula can return a 0, but just display "" to retain the looks
of the project.

Try Format/Cells/Custom and enter
0;-0;""

positive and negative values s/b displayed as such, but 0 s/b displayed as
"". However, the cell will retain the numeric value of 0 so should not
affect your formulae.


"Frank Winston" wrote:

Thank you all for replies so far; all on the same track. Ok, it is true, the
"" is treated as text, which is greater than a number. The behaviour with a
genuinely blank cell is different: it is treated as zero.
I don't want to use 0 instead of blank because it will spoil the look of the
program. I only want a number to appear in the cell if certain conditions are
met. If they aren't I want the cell to be blank, not have a zero in there.
I'm sure there is a way around this and will keep looking.
Thanks again,
Frank

"Teethless mama" wrote:

Try to substitute "" with 0
any text is greater than A number
example: A1 =me, B1 =3
formula A1B1 (the answere is TRUE)

"Frank Winston" wrote:

I have a cell formula that returns either a number or "" (blank). This works
fine but when I try to compare the result with another number to see which is
greater, I'm having trouble figuring out how Excel treats the result. If the
formula returned a number (say 2.0) and the other cell contained say 3.0,
then Excel can correctly recognise that 32. However, if the result was "",
then it says that ""3. I don't know why this is. You would think that ""
would be treated as zero which would be less than 3, not greater than.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default If result of formula is "" (Blank) why is this considered a

You're welcome.

"Frank Winston" wrote:

Yes!!! this works. Thanks very much JMB, this works well and I have learnt
something new.
Ciao, Frank

"JMB" wrote:

Perhaps your formula can return a 0, but just display "" to retain the looks
of the project.

Try Format/Cells/Custom and enter
0;-0;""

positive and negative values s/b displayed as such, but 0 s/b displayed as
"". However, the cell will retain the numeric value of 0 so should not
affect your formulae.


"Frank Winston" wrote:

Thank you all for replies so far; all on the same track. Ok, it is true, the
"" is treated as text, which is greater than a number. The behaviour with a
genuinely blank cell is different: it is treated as zero.
I don't want to use 0 instead of blank because it will spoil the look of the
program. I only want a number to appear in the cell if certain conditions are
met. If they aren't I want the cell to be blank, not have a zero in there.
I'm sure there is a way around this and will keep looking.
Thanks again,
Frank

"Teethless mama" wrote:

Try to substitute "" with 0
any text is greater than A number
example: A1 =me, B1 =3
formula A1B1 (the answere is TRUE)

"Frank Winston" wrote:

I have a cell formula that returns either a number or "" (blank). This works
fine but when I try to compare the result with another number to see which is
greater, I'm having trouble figuring out how Excel treats the result. If the
formula returned a number (say 2.0) and the other cell contained say 3.0,
then Excel can correctly recognise that 32. However, if the result was "",
then it says that ""3. I don't know why this is. You would think that ""
would be treated as zero which would be less than 3, not greater than.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 96
Default If result of formula is "" (Blank) why is this considered a num.

try max(a1,b1)
a1=3
b1 is blank

been dribled2

"Frank Winston" wrote:

I have a cell formula that returns either a number or "" (blank). This works
fine but when I try to compare the result with another number to see which is
greater, I'm having trouble figuring out how Excel treats the result. If the
formula returned a number (say 2.0) and the other cell contained say 3.0,
then Excel can correctly recognise that 32. However, if the result was "",
then it says that ""3. I don't know why this is. You would think that ""
would be treated as zero which would be less than 3, not greater than.

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 733
Default If result of formula is "" (Blank) why is this considered a num.

Frank Winston wrote...
I have a cell formula that returns either a number or "" (blank). This works
fine but when I try to compare the result with another number to see which is
greater, I'm having trouble figuring out how Excel treats the result. If the
formula returned a number (say 2.0) and the other cell contained say 3.0,
then Excel can correctly recognise that 32. However, if the result was "",
then it says that ""3. I don't know why this is. You would think that ""
would be treated as zero which would be less than 3, not greater than.


If you're comparing two cells and you *always* want to compare them as
numbers, then ensure you're comparing numbers by wrapping your
references inside N(..) function calls.

=N(X99)N(Z1000)

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
Conditional Formatting Against a Formula - not it's result Mike The Newb Excel Discussion (Misc queries) 3 August 10th 06 10:33 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
How to get a formula result zero as blank cell Excelerate-nl Excel Discussion (Misc queries) 4 November 22nd 05 04:32 PM
I NEED HELP with the SPELLNUMBER Function vag Excel Worksheet Functions 0 June 21st 05 08:17 AM
EXCEL:NUMBER TO GREEK WORDS vag Excel Worksheet Functions 1 June 15th 05 05:57 PM


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