Sumproduct - 2 values in a column

gberg

Board Regular
Joined
Jul 16, 2014
Messages
186
Office Version
  1. 365
Platform
  1. Windows
I have the following sumproduct formula that looks at table "JobList_01"

SUMPRODUCT(--(JobList_01_Jan[Type]=Status_POC),--(JobList_01_Jan[Status]=Status_Open),--(JobList_01_Jan[%Comp1]<>""),--(JobList_01_Jan[%Comp2]=1),(JobList_01_Jan[Best JGP]-JobList_01_Jan[Prev JGP]))

It currently looks for a "1" in the "%Comp1" column. I would like to have it look for multiple values in the "%Comp1" column (specifically either a "1" or a blank cell). I've tried various things but usually get an error, I'm hoping someone can help me with this.

Tahnks,

Greg
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
@gberg , Can you post some anonymized data in your table format please?

But here is an attempt at editing your formula blindly:

Excel Formula:
SUMPRODUCT(
--(JobList_01_Jan[Type]=Status_POC),
--(JobList_01_Jan[Status]=Status_Open),
--(JobList_01_Jan[%Comp1]<>""),
--(JobList_01_Jan[%Comp2]=1),
(JobList_01_Jan[Best JGP]-JobList_01_Jan[Prev JGP]))
+
SUMPRODUCT(
--(JobList_01_Jan[Type]=Status_POC),
--(JobList_01_Jan[Status]=Status_Open),
--(JobList_01_Jan[%Comp1]<>""),
--(JobList_01_Jan[%Comp2]=""),
(JobList_01_Jan[Best JGP]-JobList_01_Jan[Prev JGP]))





or

Excel Formula:
SUMPRODUCT(
--(JobList_01_Jan[Type]=Status_POC),
--(JobList_01_Jan[Status]=Status_Open),
--(JobList_01_Jan[%Comp1]<>""),
(--(JobList_01_Jan[%Comp2]=1) + --(JobList_01_Jan[%Comp2]="")),
(JobList_01_Jan[Best JGP]-JobList_01_Jan[Prev JGP]))
 
Upvote 0
Solution
awoohaw,
Thanks for the feedback. I tried your second formula and your "blind" attempt worked!!!! Sorry for not providing the table format you requested but since your revised formula worked I don't think it is necessary at this point. Again, thanks for your help!

Greg
 
Upvote 0
I'm happy you found a solution!
Best Wishes!!
 
Upvote 0

Forum statistics

Threads
1,215,963
Messages
6,127,957
Members
449,412
Latest member
montand

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