Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
SteveC
 
Posts: n/a
Default Leave Cell Blank if value is an error, below 0 or above 80

Ok, I have this formula with 3 nested if statements, referencing another part
of the worksheet so I can toggle between -1 and 85, let's say.

No need to reprint the exact formula, it's a generic nested if formula. If
the value returned by the formula is above 80 or below 0, or returns an
error, it leaves the cell blank.

It's an ugly nested if formula. Wondering if there is a better way?

Thanks...


  #2   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default Leave Cell Blank if value is an error, below 0 or above 80

Hi Steve
=IF(OR(A1<0,A185),"Error",""))

--
Regards

Roger Govier


"SteveC" wrote in message
...
Ok, I have this formula with 3 nested if statements, referencing
another part
of the worksheet so I can toggle between -1 and 85, let's say.

No need to reprint the exact formula, it's a generic nested if
formula. If
the value returned by the formula is above 80 or below 0, or returns
an
error, it leaves the cell blank.

It's an ugly nested if formula. Wondering if there is a better way?

Thanks...




  #3   Report Post  
Posted to microsoft.public.excel.misc
SteveC
 
Posts: n/a
Default Leave Cell Blank if value is an error, below 0 or above 80

Roger thanks... how do I use your formula in this context:

=IF(ISERROR(G30/H30),"",IF((G30/H30)85,"",IF((G30/H30)<0,"",G30/H30)))

where G30/H30 is the formula that should return a blank cell if an error,
above 85 or below 0? The above formula works, but curious how to use your OR
formula instead?

Thanks a lot!

SteveC

"Roger Govier" wrote:

Hi Steve
=IF(OR(A1<0,A185),"Error",""))

--
Regards

Roger Govier


"SteveC" wrote in message
...
Ok, I have this formula with 3 nested if statements, referencing
another part
of the worksheet so I can toggle between -1 and 85, let's say.

No need to reprint the exact formula, it's a generic nested if
formula. If
the value returned by the formula is above 80 or below 0, or returns
an
error, it leaves the cell blank.

It's an ugly nested if formula. Wondering if there is a better way?

Thanks...





  #4   Report Post  
Posted to microsoft.public.excel.misc
David Biddulph
 
Posts: n/a
Default Leave Cell Blank if value is an error, below 0 or above 80

"SteveC" wrote in message
...

"Roger Govier" wrote:
"SteveC" wrote in message
...
Ok, I have this formula with 3 nested if statements, referencing
another part
of the worksheet so I can toggle between -1 and 85, let's say.

No need to reprint the exact formula, it's a generic nested if
formula. If
the value returned by the formula is above 80 or below 0, or returns
an
error, it leaves the cell blank.

It's an ugly nested if formula. Wondering if there is a better way?

Thanks...


Hi Steve
=IF(OR(A1<0,A185),"Error",""))


Roger thanks... how do I use your formula in this context:

=IF(ISERROR(G30/H30),"",IF((G30/H30)85,"",IF((G30/H30)<0,"",G30/H30)))

where G30/H30 is the formula that should return a blank cell if an error,
above 85 or below 0? The above formula works, but curious how to use your
OR
formula instead?


You could try
=IF(ISERROR(G30/H30),"",IF(OR(G30/H30<0,G30/H3085),"",G30/H30))
[... but unfortunately
=IF(OR(ISERROR(G30/H30),G30/H30<0,G30/H3085),"",G30/H30) doesn't work].
--
David Biddulph


  #5   Report Post  
Posted to microsoft.public.excel.misc
SteveC
 
Posts: n/a
Default Leave Cell Blank if value is an error, below 0 or above 80

Roger and David, Thank you!




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
Sum in first blank cell and a few more things... Bleu_808 Excel Discussion (Misc queries) 3 May 4th 06 12:00 PM
Return of blank cell if lookup fails TimM Excel Worksheet Functions 4 November 23rd 05 04:40 PM
Leave cell data (IF(ISNA(VLOOKUP) is TRUE instead of returning blank (" ") or #NA [email protected] Excel Worksheet Functions 6 October 27th 05 04:02 PM
blank cell turns to 0 LMB New Users to Excel 2 April 25th 05 03:57 PM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 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"