Multiple Sumif across columns

nikijon

New Member
Joined
May 2, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi

I was hoping someone could please help.

I have a list of Jobs with hours against each and these are spread across multiple columns for each day, with the Job potentially being different across the sheet.

I can create a simple sumif but was wondering if it was possible to repeat the formula but across multiple columns with the criteria column moving across also. I can do this by repeating the formula, but was looking to see if there was an easier way rather than using the method I have.

I realise that the format of the information may not be laid out the best, but this is using an existing table.

The formula I have at the moment is below and I have attached an example table =SUMIF(C4:C19,A32,D4:D19)+SUMIF(E4:E19,A32,F4:F19)+SUMIF(G4:G19,A32,H4:H19)+SUMIF(I4:I19,A32,J4:J19)+SUMIF(K4:K19,A32,L4:L19)+SUMIF(M4:M19,A32,N4:N19)+SUMIF(O4:O19,A32,P4:P19)+SUMIF(A4:A19,A32,B4:B19)

Any help would be greatly appreciated.

Thanks NIki
 

Attachments

  • Sumif across multiple columns.png
    Sumif across multiple columns.png
    30.1 KB · Views: 6

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
How about
Excel Formula:
=LET(a,WRAPROWS(TOCOL(A4:P19),2),SUM(FILTER(INDEX(a,,2),INDEX(a,,1)=A32)))
 
Upvote 0
Solution
You can also try this:
Book1
ABCDEFGHI
1
2
3
4Job14Job33Job11Job33
5Job21Job13Job23Job11
6Job13Job14
7
8
9
10Job116
11Job24
12Job36
13
Sheet2
Cell Formulas
RangeFormula
B10:B12B10=SUMPRODUCT(($A$4:$G$6=A10)*(IF(ISNUMBER($B$4:$H$6),$B$4:$H$6,0)))
 
Upvote 0
Hi Fluff & awoohaw

Thank you for your quick replies. Both solutions worked and I really appreciate your help with this (just need to understand the workings of the LET, WRAPROWS & TOCOL functions)

Thank You Niki
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,091
Messages
6,128,775
Members
449,468
Latest member
AGreen17

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