Sumproduct

Zot

Well-known Member
Joined
Nov 26, 2020
Messages
2,272
Office Version
  1. 2016
Platform
  1. Windows
Discussion split from this thread: ADD A RANGE OF CELLS FROM MULTIPLE COLUMNS BASED ON CRITERIA FROM ONE COLUMN

I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

I also suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.


Try
Excel Formula:
=SUMPRODUCT((F5564:F5568="CC")*EL5564:EP5568)
This formula works in 365? This is good. I'm still in 2016 :(
 
Last edited by a moderator:
Those are not in the same format as my formula. Look more closely. :)
Yes. I noticed that
Sorry, I missed that post when making my last one. No you cannot, because SUMPRODUCT can only work with numbers, not TRUE/FALSE values which must be coerced to numbers.
You could use commas like this
Excel Formula:
=SUMPRODUCT(--(C15:C17="CC"),E15:G17)
I aware about using --(C15:C17="CC") but it still did not work

Book1.xlsm
CDEFG
15CC10000
16CA01000
17CC00100
18
19#VALUE!
20200
Sheet8
Cell Formulas
RangeFormula
E19E19=SUMPRODUCT(--(C15:C17="CC"),E15:G17)
E20E20=SUMPRODUCT(--(C15:C17="CC")*E15:G17)
 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
but it still did not work
Actually, it doesn't for that arrangement.

BTW, I am going to move our discussion to a new thread as the OP's thread has been hijacked by it.
 
Upvote 0

Forum statistics

Threads
1,214,938
Messages
6,122,346
Members
449,080
Latest member
Armadillos

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