Help with sumproduct

kasbac

Active Member
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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Jonmo1

MrExcel MVP
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

MrExcel MVP
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

Jonmo1

MrExcel MVP
1-ISNUMBER(MATCH

That's clever,

1 - ISNUMBER

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-

Replies
1
Views
617
Replies
1
Views
462
Replies
14
Views
6K
Replies
3
Views
513

1,191,008
Messages
5,984,134
Members
439,872
Latest member
ExcelRM

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.

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

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