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 Mulitple "IF/OR" statments

I need a formula which will test 2 cells for "<0" and perform the same
funtion if either cell is less than zero. If either cell is more than zero
perform a different function.

IF (F4 OR K3) = less than zero then current cell = zero
IF (F4 OR K3) is greater than zero then = (F4-H4)*.46


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Mulitple "IF/OR" statments

Merry Christmas from Texas but you could have looked in the help index for
OR and IF.
=IF(OR(F40,K30),(F4-H4)*46,0)
or is this what you want
=IF(OR(AND(K30,F40),AND(K30,F40)),(F4-H4)*46,0)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Mutiple IF/OR" <Mutiple wrote in message
...
I need a formula which will test 2 cells for "<0" and perform the same
funtion if either cell is less than zero. If either cell is more than zero
perform a different function.

IF (F4 OR K3) = less than zero then current cell = zero
IF (F4 OR K3) is greater than zero then = (F4-H4)*.46



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Mulitple "IF/OR" statments

=IF(OR(F4<0,K3<0),0,IF(OR(F40,K30),(F4-H4)*0.46,"Both F4 and K3 are equal
to zero"))
but I doubt whether that's what you really wanted.
--
David Biddulph

"Mutiple IF/OR" <Mutiple wrote in message
...
I need a formula which will test 2 cells for "<0" and perform the same
funtion if either cell is less than zero. If either cell is more than zero
perform a different function.

IF (F4 OR K3) = less than zero then current cell = zero
IF (F4 OR K3) is greater than zero then = (F4-H4)*.46




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Mulitple "IF/OR" statments

On Dec 25, 5:49*am, Mutiple IF/OR <Mutiple
wrote:
I need a formula which will test 2 cells for "<0" and perform the same
funtion if either cell is less than zero. If either cell is more than zero
perform a different function.

IF (F4 OR K3) = less than zero then current cell = zero
IF (F4 OR K3) is greater than zero then = (F4-H4)*.46


First, your conditions are not mutually exclusive, unless your are
implying an ordered test. What do you expect if F4 is less than zero
and K3 is greater than zero?

Second, you have not covered all cases. What do you expect if both F4
and K3 equal zero?

(Hint: The opposite of "less than" is "greater than or equal to", not
simply "greater than".)
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
How do I use "IF" statments to colour text? Ashhy Larry Excel Discussion (Misc queries) 7 October 8th 07 10:11 PM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


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