Combining two seperate IF statemens which include OR and AND functions

James Winter

New Member
Joined
Jan 9, 2015
Messages
2
Dear All,

I require your assistance,

I am using Excel 2010 and have created two formulas to go into two seperate cells.

In cell K4 : =IF(AND(D4="Friday",E4>C4),J4-2,J4)

and

In Cell L5: =IF(AND(D4="Thursday",(OR(K4=4,K4=5))),K4-2,K4)

I want to both of these formulas into one cell so I have all the date in one column rather then two.

Hope someone can help.

Thanks!

Winter
2Q==
 
Hi. Its not possible as you have it there no. Lets take first equation, if D4 is not Friday then the result is whatever is in J4. So its possible, when looking at the 2nd equation, that if D4 is Thursday (ignoring the other parts of the and equation) that you have the result as J4 (from first equation) and K4-2 (from 2nd equation). There cant be 2 TRUE results.
 
Upvote 0
Ignore me. Im talking rubbish. Just looked where the formulas were housed. One sec!
 
Upvote 0
Check this works ok for you:

=IF(AND(D4="Thursday",OR(J4=4,J4=5)),J4-2,IF(AND(D4="Friday",E4>C4),J4-2,J4))
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top