Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Trudy
 
Posts: n/a
Default Nested IF with OR Function

How do I accomplish this:
If a cell value 0 OR another cell value 0, then leave blank. If either
contains a value, then calculate.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default Nested IF with OR Function

Hi Trudy

Something like
=IF(OR(A10,A20),"",B1+B2)

Regards

Roger Govier


Trudy wrote:
How do I accomplish this:
If a cell value 0 OR another cell value 0, then leave blank. If either
contains a value, then calculate.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Trudy
 
Posts: n/a
Default Nested IF with OR Function

Here is what I tried:

=IF(OR(C60,D60),"",E5+C6+D6)

But the result is the opposite of what I need. E5+C6+D6 is calculating with
nothing in C6 or D6. I don't want it to calculate if either C6 or D6 are
empty.

Thank you, Roger.

"Roger Govier" wrote:

Hi Trudy

Something like
=IF(OR(A10,A20),"",B1+B2)

Regards

Roger Govier


Trudy wrote:
How do I accomplish this:
If a cell value 0 OR another cell value 0, then leave blank. If either
contains a value, then calculate.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default Nested IF with OR Function

Hi Trudy

There must be something in C or D6.
Try
=IF(OR(ISNUMBER(C6),ISNUMBER(D6)),"",E5+C6+D6)

Regards

Roger Govier


Trudy wrote:
Here is what I tried:

=IF(OR(C60,D60),"",E5+C6+D6)

But the result is the opposite of what I need. E5+C6+D6 is calculating with
nothing in C6 or D6. I don't want it to calculate if either C6 or D6 are
empty.

Thank you, Roger.

"Roger Govier" wrote:


Hi Trudy

Something like
=IF(OR(A10,A20),"",B1+B2)

Regards

Roger Govier


Trudy wrote:

How do I accomplish this:
If a cell value 0 OR another cell value 0, then leave blank. If either
contains a value, then calculate.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Trudy
 
Posts: n/a
Default Nested IF with OR Function

Thanks, Roger - I figured out the problem. I had the "thens" switched.

The below is what works:

=IF(OR(C60,D60),E5+C6-D6,"")

"Roger Govier" wrote:

Hi Trudy

There must be something in C or D6.
Try
=IF(OR(ISNUMBER(C6),ISNUMBER(D6)),"",E5+C6+D6)

Regards

Roger Govier


Trudy wrote:
Here is what I tried:

=IF(OR(C60,D60),"",E5+C6+D6)

But the result is the opposite of what I need. E5+C6+D6 is calculating with
nothing in C6 or D6. I don't want it to calculate if either C6 or D6 are
empty.

Thank you, Roger.

"Roger Govier" wrote:


Hi Trudy

Something like
=IF(OR(A10,A20),"",B1+B2)

Regards

Roger Govier


Trudy wrote:

How do I accomplish this:
If a cell value 0 OR another cell value 0, then leave blank. If either
contains a value, then calculate.




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default Nested IF with OR Function

Hi Trudy
Glad you got it sorted.
As I drove off to the pub, I suddenly thought it was quite illogical.
Why would you be wanting to add/subtract C6 and D6 if they were 0, but in
the haste of answering, I didn't consider the facts.
It's amazing how the thought of alcohol brings out the true logic<bg

Regards

Roger Govier


Trudy wrote:
Thanks, Roger - I figured out the problem. I had the "thens" switched.

The below is what works:

=IF(OR(C60,D60),E5+C6-D6,"")

"Roger Govier" wrote:


Hi Trudy

There must be something in C or D6.
Try
=IF(OR(ISNUMBER(C6),ISNUMBER(D6)),"",E5+C6+D6)

Regards

Roger Govier


Trudy wrote:

Here is what I tried:

=IF(OR(C60,D60),"",E5+C6+D6)

But the result is the opposite of what I need. E5+C6+D6 is calculating with
nothing in C6 or D6. I don't want it to calculate if either C6 or D6 are
empty.

Thank you, Roger.

"Roger Govier" wrote:



Hi Trudy

Something like
=IF(OR(A10,A20),"",B1+B2)

Regards

Roger Govier


Trudy wrote:


How do I accomplish this:
If a cell value 0 OR another cell value 0, then leave blank. If either
contains a value, then calculate.

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
Nested "If" Function Ms. P. Excel Worksheet Functions 8 August 19th 05 07:31 PM
undefined function error when creating xls pivot from mdb qry andrew Excel Worksheet Functions 0 July 29th 05 07:26 PM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
Countif Function -Nested Angi Excel Discussion (Misc queries) 7 May 4th 05 07:04 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 04:06 AM.

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"