Combing two if/and statements in the same formula

Godot60

Board Regular
Joined
May 11, 2017
Messages
62
Hello,

I have two if/and statements that need to be combined in the same cell. Each statement works separately but I cant seem to figure out a way to combine them. Suggestions welcome. Thanks.

=IF(AND(R19<g19,l17="hourly"),(g19 2080),(g19="" 26))

=IF(AND(R19>G19,L17="Hourly"),(R19/2080),(R19/26))</g19,l17="hourly"),(g19>
 
Last edited by a moderator:

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
suggest you re state question formulas are screwed - always have a space either side of a "<" or ">" in the formulas you copy paste onto here
 
Upvote 0
Alternatively click Go Advanced > Select HTML off
 
Upvote 0
Re: Combing two if/and statements in the same formulanin

<g19,l17="hourly"),(g19 2080),(g19="" 26))
<g19,l17="hourly"),(g19 2080),(g19="" 26))
I will repost.

</g19,l17="hourly"),(g19></g19,l17="hourly"),(g19>
 
Last edited:
Upvote 0
Combining two if/and statements in the same formula

Hello,

I am trying to combine these two statements in the same formula. Each one works separately but I can't seem to combine them. Any suggestions appreciated.

IF(AND(R19 < G19,L17="Hourly"),(G19/2080),(G19/26))
IF(AND(R19 > G19,L17="Hourly"),(R19/2080),(R19/26))
 
Upvote 0
Re: Combining two if/and statements in the same formula

You couldnt combine them without more info. For example if L17 doesnt equal Hourly then one formula does one thing and the other does another.
 
Upvote 0
Re: Combining two if/and statements in the same formula

IF(AND(R19 < G19,L17="Hourly"),(G19/2080),IF(AND(R19 > G19,L17="Hourly"),(R19/2080),(R19/26)),(r19/2080))you dont need brackets round g19/2080 etc


 
Upvote 0

Forum statistics

Threads
1,223,981
Messages
6,175,773
Members
452,668
Latest member
mrider123

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