Adding two IF's together

ddub25

Well-known Member
Joined
Jan 11, 2007
Messages
625
Office Version
  1. 2019
Platform
  1. Windows
I would like to add the two formulas below together. Can anyone help me with the syntax for adding two IF's together?

=IF(B127="Y",COUNTIF(AF127:AQ127,"Y")*Z127,0)

+

=IF(B127="Y",COUNTIF(AF127:AQ127,"Y2")*(Z127*0.42),0)

Thanks.

Dan
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi Dan,

Could it just be...

=IF(B127="Y",COUNTIF(AF127:AQ127,"Y")*Z127+COUNTIF(AF127:AQ127,"Y2")*(Z127*0.42),0)
 
Upvote 0
Not sure what you meant by the "+" sign, if you want to add the two formulas together or if you were illustrating that you want the two formulas combined.

If you want them combined and not added....

=IF(B127="Y",COUNTIF(AF127:AQ127,"Y")*Z127,IF(B127="Y",COUNTIF(AF127:AQ127,"Y2")*(Z127*.42),0))
 
Upvote 0
I wanted to + the two results together and combine the two formulas as Jefferey showed. Thanks Jeff, thats exactly what I wanted.

Dan
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

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