Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
TLAngelo
 
Posts: n/a
Default MULTIPLE CONDITIONS FORMULA

I am trying to write a formula that contains multiple conditions and I need
help. If column E is equal to column C+3, then I want it to take the total
of (E+F)-(C+D) and subtract 62.5/24... AND if column E is equal to column
C+1, then I want it to only subtract 14.5/24. The formula that I have now
inserts the word FALSE instead of a number.

Here is what I have so far:

=IF(C4+3=E4,(E4+F4)-(C4+D4)-(62.5/24),(E4+F4)-(C4+D4))=IF(C4+1=E4,(E4+F4)-(C4+D4)-(14.5/24),(E4+F4)-(C4+D4))
  #2   Report Post  
Posted to microsoft.public.excel.misc
Jerry W. Lewis
 
Posts: n/a
Default MULTIPLE CONDITIONS FORMULA

You want to nest your IF statements. Your current formula asks if the output
of the two IF statemets are equal.

=IF(C4+3=E4,(E4+F4)-(C4+D4)-(62.5/24),IF(C4+1=E4,(E4+F4)-(C4+D4)-(14.5/24),(E4+F4)-(C4+D4)))

Jerry

"TLAngelo" wrote:

I am trying to write a formula that contains multiple conditions and I need
help. If column E is equal to column C+3, then I want it to take the total
of (E+F)-(C+D) and subtract 62.5/24... AND if column E is equal to column
C+1, then I want it to only subtract 14.5/24. The formula that I have now
inserts the word FALSE instead of a number.

Here is what I have so far:

=IF(C4+3=E4,(E4+F4)-(C4+D4)-(62.5/24),(E4+F4)-(C4+D4))=IF(C4+1=E4,(E4+F4)-(C4+D4)-(14.5/24),(E4+F4)-(C4+D4))

  #3   Report Post  
Posted to microsoft.public.excel.misc
TLAngelo
 
Posts: n/a
Default MULTIPLE CONDITIONS FORMULA

Thank you for your reply. I actually figured it out right after I sent this
post... isn't that Murphy's Law or something!?

"Jerry W. Lewis" wrote:

You want to nest your IF statements. Your current formula asks if the output
of the two IF statemets are equal.

=IF(C4+3=E4,(E4+F4)-(C4+D4)-(62.5/24),IF(C4+1=E4,(E4+F4)-(C4+D4)-(14.5/24),(E4+F4)-(C4+D4)))

Jerry

"TLAngelo" wrote:

I am trying to write a formula that contains multiple conditions and I need
help. If column E is equal to column C+3, then I want it to take the total
of (E+F)-(C+D) and subtract 62.5/24... AND if column E is equal to column
C+1, then I want it to only subtract 14.5/24. The formula that I have now
inserts the word FALSE instead of a number.

Here is what I have so far:

=IF(C4+3=E4,(E4+F4)-(C4+D4)-(62.5/24),(E4+F4)-(C4+D4))=IF(C4+1=E4,(E4+F4)-(C4+D4)-(14.5/24),(E4+F4)-(C4+D4))

  #4   Report Post  
Posted to microsoft.public.excel.misc
Dana DeLouis
 
Posts: n/a
Default MULTIPLE CONDITIONS FORMULA

If you want, another option might be to factor out the common term:

=(E4+F4)-(C4+D4) - IF(C4+3=E4,62.5/24,IF(C4+1=E4,14.5/24,0))

--
HTH. :)
Dana DeLouis
Windows XP, Office 2003


"TLAngelo" wrote in message
...
Thank you for your reply. I actually figured it out right after I sent
this
post... isn't that Murphy's Law or something!?

"Jerry W. Lewis" wrote:

You want to nest your IF statements. Your current formula asks if the
output
of the two IF statemets are equal.

=IF(C4+3=E4,(E4+F4)-(C4+D4)-(62.5/24),IF(C4+1=E4,(E4+F4)-(C4+D4)-(14.5/24),(E4+F4)-(C4+D4)))

Jerry

"TLAngelo" wrote:

I am trying to write a formula that contains multiple conditions and I
need
help. If column E is equal to column C+3, then I want it to take the
total
of (E+F)-(C+D) and subtract 62.5/24... AND if column E is equal to
column
C+1, then I want it to only subtract 14.5/24. The formula that I have
now
inserts the word FALSE instead of a number.

Here is what I have so far:

=IF(C4+3=E4,(E4+F4)-(C4+D4)-(62.5/24),(E4+F4)-(C4+D4))=IF(C4+1=E4,(E4+F4)-(C4+D4)-(14.5/24),(E4+F4)-(C4+D4))



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 add multiple conditions to a formula? multiple conditions formula Excel Worksheet Functions 3 April 27th 06 08:58 PM
Need help on formula with multiple conditions... DiDi Excel Discussion (Misc queries) 11 April 17th 06 06:33 PM
Multiple conditions in a formula TV Excel Worksheet Functions 3 April 12th 06 09:32 PM
formula to fill text with multiple conditions jerry Excel Discussion (Misc queries) 2 September 9th 05 12:26 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 08:48 PM


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