Using SumIfs - can't get the syntax right!

DaveEade

New Member
Joined
Sep 15, 2022
Messages
10
Office Version
  1. 365
Platform
  1. Windows
So, I'm trying to get some sumifs working based on the values in a column and a row - not sure if it's possible, but anyway - here is what I'm looking at.
There is the data entry sheet
and then two sheets that look for the Resource / Project and date and returns the sum of the values where the match...

See attached photos - the colours show how the links are made.
 

Attachments

  • mini1.JPG
    mini1.JPG
    28.3 KB · Views: 29
  • mini2.JPG
    mini2.JPG
    14.7 KB · Views: 20
  • Mini3.JPG
    Mini3.JPG
    17.2 KB · Views: 25

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
See if this is what you mean

Book3
ABCDEFGHIJKLM
1ResourceProject1/01/20248/01/2024Project1/01/20248/01/2024Resource1/01/20248/01/2024
2DaveAries10.8Aries10.8Dave1.51
3BruceGemini0.50.5Gemini10.7Bruce0.50.5
4DaveGemini0.50.2Leo22Kevin11
5KevinLeo11Matt11
6MattLeo11
7
Sheet1
Cell Formulas
RangeFormula
H2:I4H2=SUMIFS(INDEX($C$2:$D$6,0,MATCH(H$1,$C$1:$D$1,0)),$B$2:$B$6,$G2)
L2:M5L2=SUMIFS(INDEX($C$2:$D$6,0,MATCH(L$1,$C$1:$D$1,0)),$A$2:$A$6,$K2)
 
Upvote 0
Solution
Sort of - but the seperate resource and project tables need to be on a separate sheet - the data shown is just an example - in real life the projects are about 20, resources 60 and of course dates are 52 per year
 
Upvote 0
Unfortunately when you provide images that don't show column and row references and don't show sheet names, all we can do is provide a generic solution that you will need to modify at your end.
The formulas will transfer correctly to another sheet if you use cut and paste to move them although you will still need to extend the ranges to cover the whole of your data input range and copy it down to all rows and across to all 52 columns.
 
Upvote 0
Hi sorry about that - I tried adding a minisheet by my laptop wouldn't allow the download of the app!
Thanks though I'm sure I can use whats been given.
 
Upvote 0
Let us know if you get stuck. The Index-Match returns the column with the figures for the matching week, the following Criteria and Criteria value filter the Project or Resource to be summed
 
Upvote 0
Thanks for the help - but I'm getting the dreaded #N/a error when I expand it out - can you see if I've done something obviously wrong?
Thanks

This is the function: =SUMIFS(INDEX($AN$2:$BC$200,0,MATCH(BF$1,$AN$1:$BC$1,0)),$G$2:$G$200,$BE2)

AN2:BC200 is my data so the same as C2:D6 in the above

BF1 is equivalent to L1

AN1:BC1 is the range the same as C1 :D1

G2:G200 is as A2 & A6 and BE2 is K2 in the L2 example.

Any ideas?
Thanks
 
Upvote 0
I thought your summary and data were on different sheets but I can't see a sheet reference on the ranges referring to the data input sheet.
 
Upvote 0
I thought your summary and data were on different sheets but I can't see a sheet reference on the ranges referring to the data input sheet.
Yes, what I'm trying to do is get the formula working on the same sheet - then I can cut and paste on a separate sheet as you suggested earlier on.

Thanks
Dave
 
Upvote 0
The formula you have works in principle so that means its likely you have a data issue.
Pick something you know should return a value and then somewhere put using = check that they match exactly ie =G2=BE2 (use whatever rows have the matching value.
Then do the same for the date ie =AP1 = BF1 (pick 2 dates that should match)

Is one of the ranges an Exel Table ? This will convert the date to text and it won't match.

20240419 Sumifs DaveEade.xlsx
GAMANAOAPAQARBDBEBFBG
1ResourceResourceProject1/01/20248/01/2024Resource1/01/20248/01/2024
2DaveDaveAries10.8Dave10.8
3BruceBruceGemini0.50.5Bruce0.50.5
4KevinDaveGemini0.50.2Kevin0.50.2
5MattKevinLeo11Matt11
6MattLeo11
Sheet2
Cell Formulas
RangeFormula
BF2:BG5BF2=SUMIFS(INDEX($AN$2:$BC$200,0,MATCH(BF$1,$AN$1:$BC$1,0)),$G$2:$G$200,$BE2)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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