Help with sumproduct

kasbac

Active Member
Joined
Jan 2, 2008
Messages
344
Hi there

I have runned into some problem with a sumproduct formula that im trying to write so far i have gotten this far:

Code:
=SUMPRODUCT(Compilation!A2:A4000;--(Compilation!K2:K4000=1);--(Compilation!P2:P4000="XXX");--(Compilation!Z2:Z4000="ZZZ")

The next condition that I would like to add is that if the data in colloum Compilation!N2:N4000 equals either withdrawn, cancelled or rejected, these lines should NOT be included in the sum.

I have had some help with a similar problem in this thread http://www.mrexcel.com/forum/showthread.php?t=323786 but simply cant seem to get it working in the new formula

Hope for some help if any clarification is needed please let me know

thank you
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
This should do it..

=SUMPRODUCT(Compilation!A2:A4000,--(Compilation!K2:K4000=1),--(Compilation!P2:P4000="XXX"),--(Compilation!Z2:Z4000="ZZZ"),--(NOT(ISNUMBER(MATCH(Compilation!N2:N4000,{"Cancelled","Withdrawn","Rejected"},0)))))

HTH
 
Upvote 0
Code:
=SUMPRODUCT(
    Compilation!A2:A4000;
    1-ISNUMBER(MATCH(Compilation!N2:N4000;List;0));
    --(Compilation!K2:K4000=1);
    --(Compilation!P2:P4000="XXX");
    --(Compilation!Z2:Z4000="ZZZ"))

where List is a 3-cell range housing the items withdrawn, cancelled, and rejected.

Hi there

I have runned into some problem with a sumproduct formula that im trying to write so far i have gotten this far:

Code:
=SUMPRODUCT(Compilation!A2:A4000;--(Compilation!K2:K4000=1);--(Compilation!P2:P4000="XXX");--(Compilation!Z2:Z4000="ZZZ")

The next condition that I would like to add is that if the data in colloum Compilation!N2:N4000 equals either withdrawn, cancelled or rejected, these lines should NOT be included in the sum.

I have had some help with a similar problem in this thread http://www.mrexcel.com/forum/showthread.php?t=323786 but simply cant seem to get it working in the new formula

Hope for some help if any clarification is needed please let me know

thank you
 
Upvote 0
1-ISNUMBER(MATCH

That's clever,

1 - ISNUMBER

instead of
NOT(ISNUMBER)


I was about to post back to point out that the OP wanted to NOT count those rows....Untill I saw the 1-
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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