#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 440
Default =IF(OR question

Hi,
Having a problem here. Essentially: In cell B9
=IF(either B6 OR B7=0,"",If(B6<B7,"",B6-B7)
Can someone sort this one out for me?

Thanks

--
Traa Dy Liooar

Jock
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default =IF(OR question

On Aug 28, 10:22 am, Jock wrote:
Hi,
Having a problem here. Essentially: In cell B9
=IF(either B6 OR B7=0,"",If(B6<B7,"",B6-B7)
Can someone sort this one out for me?

Thanks

--
Traa Dy Liooar

Jock


=IF(OR(B6=0,B7=0),"",IF(B6<B7,"",B6-B7))

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 440
Default =IF(OR question

Done it; I found Noob Jedi's post below!
--
Traa Dy Liooar

Jock


"Jock" wrote:

Hi,
Having a problem here. Essentially: In cell B9
=IF(either B6 OR B7=0,"",If(B6<B7,"",B6-B7)
Can someone sort this one out for me?

Thanks

--
Traa Dy Liooar

Jock

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default =IF(OR question

=IF(OR(B6=0,B7=0,B6<B7),"",B6-B7)

however do you want zero if B6=B7, if not change the formula to

=IF(OR(B6=0,B7=0,B6<=B7),"",B6-B7)



--
Regards,

Peo Sjoblom




"Jock" wrote in message
...
Hi,
Having a problem here. Essentially: In cell B9
=IF(either B6 OR B7=0,"",If(B6<B7,"",B6-B7)
Can someone sort this one out for me?

Thanks

--
Traa Dy Liooar

Jock



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default =IF(OR question

How about: =IF(OR(B6=0,B7=0),"",IF(B6<B7,"",B6-B7))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Jock" wrote:
Hi,
Having a problem here. Essentially: In cell B9
=IF(either B6 OR B7=0,"",If(B6<B7,"",B6-B7)
Can someone sort this one out for me?

Thanks

--
Traa Dy Liooar

Jock



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default =IF(OR question

One way:

=IF(OR(B6=0,B7=0, B6<B7),"",B6-B7)




In article ,
Jock wrote:

Hi,
Having a problem here. Essentially: In cell B9
=IF(either B6 OR B7=0,"",If(B6<B7,"",B6-B7)
Can someone sort this one out for me?

Thanks

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 440
Default =IF(OR question

Thanks to all. To take it one more step; if there was a range of cells (ie
B6:B18), rather than the two (B6 & B7) that need to be any value other than
0, how would the formula be modified?
--
Traa Dy Liooar

Jock


"Jock" wrote:

Hi,
Having a problem here. Essentially: In cell B9
=IF(either B6 OR B7=0,"",If(B6<B7,"",B6-B7)
Can someone sort this one out for me?

Thanks

--
Traa Dy Liooar

Jock

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default =IF(OR question

Hard to modify your formula: what would would you be subtracting from
what in that case?

Perhaps you can modify:

=IF(COUNTIF(B6:B18,0)=0,<some formula,"")




In article ,
Jock wrote:

Thanks to all. To take it one more step; if there was a range of cells (ie
B6:B18), rather than the two (B6 & B7) that need to be any value other than
0, how would the formula be modified?

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default =IF(OR question

=IF(COUNTIF(B6:B18,0)0,"", and so on

depending on what you want, the above test if any of those cells are zero


--
Regards,

Peo Sjoblom



"Jock" wrote in message
...
Thanks to all. To take it one more step; if there was a range of cells (ie
B6:B18), rather than the two (B6 & B7) that need to be any value other
than
0, how would the formula be modified?
--
Traa Dy Liooar

Jock


"Jock" wrote:

Hi,
Having a problem here. Essentially: In cell B9
=IF(either B6 OR B7=0,"",If(B6<B7,"",B6-B7)
Can someone sort this one out for me?

Thanks

--
Traa Dy Liooar

Jock



  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 440
Default =IF(OR question

Hi JE,
it was only hypothetical. I was curious to see if it was possible to use a
range of cells with the OR function because putting OR(B6=0,B7=0,B8=0,B9=0)
etc is a bit messy.
--
Traa Dy Liooar

Jock


"JE McGimpsey" wrote:

Hard to modify your formula: what would would you be subtracting from
what in that case?

Perhaps you can modify:

=IF(COUNTIF(B6:B18,0)=0,<some formula,"")




In article ,
Jock wrote:

Thanks to all. To take it one more step; if there was a range of cells (ie
B6:B18), rather than the two (B6 & B7) that need to be any value other than
0, how would the formula be modified?


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
Row() Question mldancing Excel Discussion (Misc queries) 3 April 16th 07 06:08 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
I have a question Devon Setting up and Configuration of Excel 2 April 20th 06 07:53 PM
< or question D Excel Worksheet Functions 3 February 18th 06 05:41 PM
The question is an excel question that I need to figure out howto do in excel. Terry Excel Worksheet Functions 3 January 23rd 06 06:22 PM


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