Adding multiple columns with criteria in one column

rgillson3

Board Regular
Joined
Oct 3, 2013
Messages
132
Office Version
  1. 365
Platform
  1. Windows
I'm trying to "pull" some data from an Aged A/P report.

I have numbers/amounts in Columns I thru O.

In Column R I have some rows with text like "EFT 3/29-Ent". These all indicate dates for a particular location.

I'd like to add any amount shown in Columns I thru O if its row contains "Ent" in Column R.

I've tried =SUM((I8:M108)*(--(R8:R108="*Ent*"))) and =SUMPRODUCT(I8:P108*--(R8:R108="*Ent*")) and only get #VALUE! for either.

What am I missing?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I believe there has to be some better way using FILTER Function. Till then try this and revert -

Excel Formula:
=SUMIFS(I8:I108,R8:R108,"*Ent*")+SUMIFS(J8:J108,R8:R108,"*Ent*")+SUMIFS(K8:K108,R8:R108,"*Ent*")+SUMIFS(L8:L108,R8:R108,"*Ent*")+SUMIFS(M8:M108,R8:R108,"*Ent*")+SUMIFS(N8:N108,R8:R108,"*Ent*")+SUMIFS(O8:O108,R8:R108,"*Ent*")
 
Upvote 0
I believe there has to be some better way using FILTER Function. Till then try this and revert -

Excel Formula:
=SUMIFS(I8:I108,R8:R108,"*Ent*")+SUMIFS(J8:J108,R8:R108,"*Ent*")+SUMIFS(K8:K108,R8:R108,"*Ent*")+SUMIFS(L8:L108,R8:R108,"*Ent*")+SUMIFS(M8:M108,R8:R108,"*Ent*")+SUMIFS(N8:N108,R8:R108,"*Ent*")+SUMIFS(O8:O108,R8:R108,"*Ent*")
That seems to work. I was combining multiple "sumif" formulas together to get the same result.

I was hoping for a shorter formula.

I stumble upon the FILTER function as well. That seems to return the individual values though. I only want the total.
 
Upvote 0
I told you we can pass Filtered results through SUM function

Check this and revert -

Excel Formula:
=SUM(TOCOL(FILTER(I8:O108,ISNUMBER(SEARCH("Ent",R8:R108))),,True))

I could only check it until Filter function as below. Since I don't have Excel 365, I couldn't test further.

Book1
ABCDEFGHIJKLMNOP
1
21EFT 3/29-Ent100000
31EFT 3/29-Ent010000
41EFT 3/29-Ent001000
51EFT 3/29-Ent000100
61EFT 3/29-Ent000010
71EFT 3/29-Ent000001
Sheet1
Cell Formulas
RangeFormula
K2:P7K2=FILTER(A:F,ISNUMBER(SEARCH("Ent",I:I)))
Dynamic array formulas.


But I know it would work, as I derived Idea from the video below -

 
Upvote 0
Solution

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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