"Either or" condition in SUMPRODUCT

cichli_04

New Member
Joined
Aug 15, 2024
Messages
2
Office Version
  1. 2021
Platform
  1. Windows
Hi Forum, new member here :)

My current formula is

=SUMPRODUCT((I7:N7="Completed")*(I6:N6))

whereby every time Excel sees the status "Completed" in any of the cells of the I7:N7 range, it multiplies it with its corresponding weight (a constant number that I have set) in the I6:N6 range, and then calculates the Sumproduct.

What I want now is to change it so it proceeds with the multiplication if it detects either the status "Completed" or the status "Not Applicable" but I haven't been able to make it work so far. Is this possible with SUMPRODUCT or I'll have to change the formula?

Thank you!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Welcome to the forum. You should be able to use either:

Excel Formula:
=SUMPRODUCT(((I7:N7="Completed")+(I7:N7="Not Applicable"))*(I6:N6))

or:

Excel Formula:
=SUMPRODUCT((I7:N7={"Completed","Not Applicable"})*(I6:N6))
 
Upvote 0
Solution
Welcome to the forum. You should be able to use either:

Excel Formula:
=SUMPRODUCT(((I7:N7="Completed")+(I7:N7="Not Applicable"))*(I6:N6))

or:

Excel Formula:
=SUMPRODUCT((I7:N7={"Completed","Not Applicable"})*(I6:N6))

Many thanks Rory, both worked! 🙏
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,791
Members
451,589
Latest member
Harold14

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