Sum Multiple Columns Based column Criteria Range

Biz

Well-known Member
Joined
May 18, 2009
Messages
1,773
Office Version
  1. 2021
Platform
  1. Windows
Dear All,

In Excel 2010, I'm trying add multiple account numbers over multiple range.
I have tried using Sumproducts with Sumifs, but they fail when adding multiple columns.
There is an allocated certain account numbers which refers to certain projects like Project 1 (Cells I3:I6), Project 2 (Cells J3:J6) and Project 3 (Cell K3)

In cells B17:B19 I tried constructing my formula but it worked only Project 1 and Project 3 only. My should be answers can be found in range C17:C19.
Please note I need non array and non VBA or no Custom function solution. Excel formula is preferred.

Excel Sum Multiple Columns Based Column Criteria.xlsx
ABCDEFGHIJK
1
2Account NumberCol 1Col 2Col 3Project 1Project 2Project 3
3P8600-1-X101---P8600-1-X101P8603-1-X101Z101
4P8600-1-X201---P8600-1-X201P8603-1-X201
5P8600-1-Y101-338,286.00-P8600-1-Y101P8603-1-Y101
6P8600-1-Y201---P8600-1-Y201P8603-1-Y301
7
8P8603-1-X101-5.00-
9P8603-1-X201---
10P8603-1-Y101-217,107.00-
11P8603-1-Y301---
12Z101-10.00-
13
14
15
16Should Be
17Project 1338,286.00338,286.00
18Project 2-217,112.00
19Project 310.00-
20
Sheet1
Cell Formulas
RangeFormula
B17B17=SUMPRODUCT((ISNUMBER(SEARCH($I$3:$I$6,$A$3:$A$12)))*($B$3:$D$12))
B18B18=SUMPRODUCT((ISNUMBER(SEARCH($J$3:$J$6,$A$3:$A$12)))*($B$3:$D$12))
B19B19=SUMPRODUCT((ISNUMBER(SEARCH($K$3,$A$3:$A$12)))*($B$3:$D$12))


Your help would be greatly appreciated.

Kind Regards

Biz
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Try this:
Book1
ABCDEFGHIJKL
1
2Account NumberCol 1Col 2Col 3Project 1Project 2Project 3
3P8600-1-X101000P8600-1-X101P8603-1-X101Z101
4P8600-1-X201000P8600-1-X201P8603-1-X201
5P8600-1-Y10103382860P8600-1-Y101P8603-1-Y101
6P8600-1-Y201000P8600-1-Y201P8603-1-Y301
7
8P8603-1-X101050
9P8603-1-X201000
10P8603-1-Y10102171070
11P8603-1-Y301000
12Z1010100
13
14
15
16Should Be
17Project 1338286338286
18Project 2217112217112
19Project 3100
20
Sheet1
Cell Formulas
RangeFormula
B17B17=SUMPRODUCT(--ISNUMBER(MATCH($A$3:$A$12,I$3:I$6,0))*($B$3:$D$12))
B18B18=SUMPRODUCT(--ISNUMBER(MATCH($A$3:$A$12,J$3:J$6,0))*($B$3:$D$12))
B19B19=SUMPRODUCT(--ISNUMBER(MATCH($A$3:$A$12,K$3:K$6,0))*($B$3:$D$12))
 
  • Like
Reactions: Biz
Upvote 0
Solution
Hi M8,

Thank you very for your help.
Have a very nice weekend.

Kind Regards

Biz
 
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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