Product if meets 2 criteria

nat_fpa3

New Member
Joined
Aug 13, 2016
Messages
4
I'm trying to get the product of a range of numbers if it meets two criterion on a different tab. The formula below isn't working for me, can anyone see what I'm doing wrong?


{=PRODUCT(IF(AND('Online Inputs'!$B$2:$B$337=S32,'Online Inputs'!$C$2:$C$337=T32),'Online Inputs'!E$2:E$337))}

Thanks for any help!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
How about this?

{=IF(AND('Online Inputs'!$B$2:$B$337=S32,'Online Inputs'!$C$2:$C$337=T32),PRODUCT('Online Inputs'!E$2:E$337))}
 
Upvote 0
I tried that and it just gives me "FALSE", not product of the values that meet the criterion. Thanks though!
 
Upvote 0
I'm trying to get the product of a range of numbers if it meets two criterion on a different tab. The formula below isn't working for me, can anyone see what I'm doing wrong?


{=PRODUCT(IF(AND('Online Inputs'!$B$2:$B$337=S32,'Online Inputs'!$C$2:$C$337=T32),'Online Inputs'!E$2:E$337))}

Thanks for any help!

Control+shift+enter, not just enter:

=PRODUCT(IF('Online Inputs'!$B$2:$B$337=S32,IF('Online Inputs'!$C$2:$C$337=T32,'Online Inputs'!E$2:E$337)))
 
Upvote 0
I'm trying to get the product of a range of numbers if it meets two criterion on a different tab. The formula below isn't working for me, can anyone see what I'm doing wrong?


{=PRODUCT(IF(AND('Online Inputs'!$B$2:$B$337=S32,'Online Inputs'!$C$2:$C$337=T32),'Online Inputs'!E$2:E$337))}

Thanks for any help!

In array formulas with two or more conditions you cannot use AND this way.

Instead, try nested IFs like this
=PRODUCT(IF('Online Inputs'!$B$2:$B$337=S32,IF('Online Inputs'!$C$2:$C$337=T32,'Online Inputs'!E$2:E$337)))
Ctrl+Shift+Enter

or multiply the conditions like
=PRODUCT(IF(('Online Inputs'!$B$2:$B$337=S32)*('Online Inputs'!$C$2:$C$337=T32),'Online Inputs'!E$2:E$337))
Ctrl+Shift+Enter

Hope this helps

M.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

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