two columns

kylefoley76

Well-known Member
Joined
Mar 1, 2010
Messages
1,553
=(SUMPRODUCT($I$2:$I$3000,--($G$2:$G$3000=T$1),--($D$2:$D$3000=$S3)))*-1

I forget how you put two columns in your formula.

For example, I want two columns included where it says $I$2:$I$3000

what's the syntax?
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Perhaps this

=(SUMPRODUCT($I$2:$J$3000*($G$2:$G$3000=T$1)*($D$2:$D$3000=$S3)))*-1


Hope that helps.
 
Upvote 0
Try

=(SUMPRODUCT($I$2:$I$3000+$P$2:$P$3000*($G$2:$G$3000=T$1)*($D$2:$D$3000=$S3)))*-1

Change the + to * depending on your desired output..
If you want I and P SUMMED, then use +
If you want I and P Multiplied, then use *


Hope that helps.
 
Upvote 0
Ok, I rewrote the formula and I'm getting a #value! error message

=(SUMPRODUCT($I$2:$I$3000+$P$2:$P$3000,--($G$2:$G$3000+$N$2:$N$3000=T$1),--($D$2:$D$3000+$K$2:$K$3000=$S3)))*-1
 
Upvote 0
This is why you should post exactly what you want, not a simplified version..

In this section
--($G$2:$G$3000+$N$2:$N$3000=T$1)
do you want G OR N = T1,
or do you want G AND N = T1
?

same question for the last section.
 
Upvote 0
Try

=SUMPRODUCT($I$2:$I$3000+$P$2:$P$3000*($G$2:$G$3000=T$1)*($N$2:$N$3000=T$1)*($D$2:$D$3000=S$3)*($K$2:$K$3000=$S3))*-1
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,153
Members
452,891
Latest member
JUSTOUTOFMYREACH

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