Help with index match sumif and more.

MrKris

New Member
Joined
May 18, 2020
Messages
7
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi there,
I’m a teacher who is looking to prepare better for the academic year. I teach a range of courses which require different amounts of time to setup and I’m keen to get a better understanding of the set up times for each course I teach.

I have attempted todo this is a matrix format, but I’m struggling to get the formula correct for my summary table.
Please can someone help me make this summary table work, it’s my first time on this forum so be gentle. ihave tried to explain everything on the spreadsheet in text boxes as best as I can.

I believe the solution is a mix of SUMIF, MATCH and INDEX, but the whole thing a bit confusing.

Matrix Example

Thanks,
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
is that what you want?
course.png
 
Upvote 0
Try like....
Book1
ABCDEFGHIJK
1MATRIXOVERALL SUMMARY
2ModulesDurationPlan TimeCat ACat BCat CCat DDurationPlan Time
3A13010xxxxCat A15580
4A23530xxx Cat B435190
5A39040xxx Cat C465200
6B17030 xxxCat D13050
7B210020 xx   
8B311060 xx   
9C13010 xx
Sheet1
Cell Formulas
RangeFormula
J3:K8J3=IFERROR(SUMIF(INDEX($D$3:$G$20,,ROWS(J$3:J3)),"x",B$3:B$20),"")


Hope that helps.
 
Upvote 0
Welcome to the MrExcel board!

.. or consider transposing the summary table then the formulas in J3 & J4 copied across?

MrKris Course Matrix Example.xlsx
ABCDEFGHIJKLM
1MATRIX
2ModulesDurationPlan TimeCat ACat BCat CCat DCat ACat BCat CCat D
3A13010xxxxDuration155435465130
4A23530xxxPlan Time8019020050
5A39040xxx
6B17030xxx
7B210020xx
8B311060xx
9C13010xx
Sheet1
Cell Formulas
RangeFormula
J3:M3J3=SUMIF(D3:D9,"x",$B3:$B9)
J4:M4J4=SUMIF(D3:D9,"x",$C3:$C9)
 
Upvote 0
Yes exactly that!

so use Power Query

Rich (BB code):
let
    Source = Excel.CurrentWorkbook(){[Name="Table2"]}[Content],
    Unpivot = Table.UnpivotOtherColumns(Source, {"Modules", "Duration", "Plan Time"}, "Category", "Value"),
    Group = Table.Group(Unpivot, {"Category"}, {{"Duration", each List.Sum([Duration]), type number}, {"Time", each List.Sum([Plan Time]), type number}}),
    SortAsc = Table.Sort(Group,{{"Category", Order.Ascending}})
in
    SortAsc
coursepq.png

you can add more rows (Modules) and/or columns (Categories), you are not limited with rows/columns
after that just refresh green table
 
Upvote 0
Try like....
Book1
ABCDEFGHIJK
1MATRIXOVERALL SUMMARY
2ModulesDurationPlan TimeCat ACat BCat CCat DDurationPlan Time
3A13010xxxxCat A15580
4A23530xxx Cat B435190
5A39040xxx Cat C465200
6B17030 xxxCat D13050
7B210020 xx   
8B311060 xx   
9C13010 xx
Sheet1
Cell Formulas
RangeFormula
J3:K8J3=IFERROR(SUMIF(INDEX($D$3:$G$20,,ROWS(J$3:J3)),"x",B$3:B$20),"")


Hope that helps.
Absolutely perfect! Looks like I need to upskill in the index function.

Thank you so much!!!
 
Upvote 0
so use Power Query

Rich (BB code):
let
    Source = Excel.CurrentWorkbook(){[Name="Table2"]}[Content],
    Unpivot = Table.UnpivotOtherColumns(Source, {"Modules", "Duration", "Plan Time"}, "Category", "Value"),
    Group = Table.Group(Unpivot, {"Category"}, {{"Duration", each List.Sum([Duration]), type number}, {"Time", each List.Sum([Plan Time]), type number}}),
    SortAsc = Table.Sort(Group,{{"Category", Order.Ascending}})
in
    SortAsc
View attachment 14146
you can add more rows (Modules) and/or columns (Categories), you are not limited with rows/columns
after that just refresh green table
Ooh interesting,I’m going to look at this. I’ve already used one of the solutions above but as I upscale this to my full class list this may be a better solution.
thanks so much for your help.
 
Upvote 0
Ooh interesting,I’m going to look at this. I’ve already used one of the solutions above but as I upscale this to my full class list this may be a better solution.
thanks so much for your help.
You are welcome ;)
 
Upvote 0

Forum statistics

Threads
1,215,759
Messages
6,126,728
Members
449,332
Latest member
nokoloina

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