"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

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
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,223,882
Messages
6,175,164
Members
452,615
Latest member
bogeys2birdies

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