Sumifs, Sumproduct or is it IF, and Sum

N0t Y0urs

Board Regular
Joined
May 1, 2022
Messages
96
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
Platform
  1. MacOS
  2. Mobile
  3. Web
I am trying to create a formula that looks at results and levels and then calculates the sum of points.

Tristan Uni.xlsx
ACADAEAFAGAH
3
4CompletedDoingProposed
5144 Credit Points25800
6100max 60 @ 100 level
7200min 36 @ 300 level
8400max 12 @ 400 level
9
Testing
Cell Formulas
RangeFormula
AE5AE5=SUM(AI6:AI8)
AF5AF5=SUM(AE6:AF8)
AG5AG5=SUM(AE6:AG8)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AF8:AG8,AI8Cell Value>13textNO
AF6:AG6,AI6Cell Value>61textNO


So what I have posted is what I am trying to achieve is from this section of the table. If I update my results and my planned study units that it will calculate my levels/credit points so I can identify what subjects I need and when I will be complete.

Tristan Uni.xlsx
BCDEFGHIJKLMN
220212022
3CodeLevelSubject CPMasterT1T1T2T3
4ARTS301300Research and Professional PracticePrescribed6
5COMM101100Screen MediaCore6YDist
6COMM103100Creative IndustriesCore6YEnrol
7COMM301300Film Techniques and Digital EffectsMedia Culture6YHD
8COMM323300Digital and Social MediaMedia Culture6Y
9COMM325300Television StudiesMedia Culture6YEnrol
10COMM332300News and JournalismMedia Culture6YEnrol
11COMM381300The Art of DocumentaryMC & WP6Y
12COMM382300Hollywood CinemaMedia Culture6YHD
13COMM385300Australian ScreensMedia Culture6Y
14COMM387300Screen Adapations: Rewriting the textMC & WP6Y
15COMM389300Human Rigts on ScreenMedia Culture6Y
16INK101100Indigenous Perspectives across Creative IndustriesMC & WP6Y
17THEA321300Writing for Performance: Stage and ScreenWriting and Publication6
18WORK300300Work Integrated Learning - Professional Skills Development Prescribed6
19WRIT101100The Craft of Acamedic WritingCore6Dist
20WRIT102100Storytelling and Genre WritingCore6
21WRIT303300Writing for ReasearchPrescribed6
22WRIT304300Writing Short FictionWriting and Publication6
23WRIT306300Writing for Work: Styles and ContextWriting and Publication6
24WRIT309300Writing Creative Non-fictionWriting and Publication6
25WRIT313300Editing Skills and StandardsWriting and Publication6
26WRIT326300Persuading the Public: Rhetoric in Public AffairsWriting and Publication6
27WRIT327300Magazines: Culture, Industry and PracticesMC & WP6
28WRIT329300Publishing PracticeMC & WP6Dist
29
30COMM00H400Communications Honours Honours48
31
32COMM501500Film Techniques & Digital EffectsMasters6
33COMM523500Digital and Social MediaMasters6
34COMM525500Television StudiesMasters6
35COMM532500News and JournalismMasters6
36COOM581500The Art of DocumentaryMasters6
37COMM582500Hollywood CinemaMasters6
38COMM585500Australian ScreensMasters6
39COMM587500Screen Adaptions: Rewiriting the TextMasters6
40COMM589500Human Rights on ScreenMasters6
41WRIT503500Writing for Research Masters6
Testing


I started with SUMIFS but it was totalling all my 100 level subjects, but the moment I added results into the equation it gave me an error. So I tried sum product with summits but then I got spill issues. Where did I go wrong? Are my blank fields causing my problems
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Can you post the formulas that you were trying that were giving you issues?
 
Upvote 0
This is where I started:

Tristan Uni.xlsx
AIAJAKAL
3
4Tring but wrong - Levels
52580258
630
7120
8108
9
10
11Tring but wrong - Results
12#VALUE!0#VALUE!
13#VALUE!
14#VALUE!
15#VALUE!
16#VALUE!
17#VALUE!
18#VALUE!
19
Testing
Cell Formulas
RangeFormula
AI12:AJ12,AI5:AJ5AJ5=SUM(AJ6:AJ8)
AK5,AK12AK5=SUM(AI6:AK8)
AI6:AI7AI6=SUMIFS(CPS,Lvls,AC6)
AI8AI8=SUMIFS(CPS,Lvls,">"&399)
AI13:AI16AI13=SUMIFS(CPS,Subs,AD11)
AI17:AI18AI17=SUMIFS(CPS,Subs,AD17)
Named Ranges
NameRefers ToCells
CPS=Testing!$F$4:$F$41AI6:AI8, AI13:AI18
Lvls=Testing!$C$4:$C$41AI6:AI8
Subs=Testing!$I$4:$Y$41AI13:AI18
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AI15:AI18Cell Value>13textNO
AI13Cell Value>61textNO
AF8:AG8,AI8Cell Value>13textNO
AF6:AG6,AI6Cell Value>61textNO


So where I think I am going wrong, in the first formula the SUMIFS of Lvls it is totalling all that equal 100 which on its own is correct but not what I want. The Subs I think the blanks are affecting me but maybe not.

I want to merge the two so basically lets look at a Level of 100. There are 5 subjects that I need to do which give me a total of 30. So If I have a result of HD, List, Credit, or Pass I need to add them and total them. If it says enrolled it will total the enrolled same with plan. From there I move on to the 300 level, 400 level and 500 level.

I know exactly the results but for the life or me I cannot figure out the way to write the formula.

Originally I thought it would be like (in words) "if Lvls = 100 then sumifs subs="HD", CPS, sumifs subs="Dist", CPS" etc but that gave me spill errors
 
Upvote 0
Your formulas reference cells like AD17, but you haven't posted that section, so I have no idea what is in that cell.

It would be most helpful if based on the example data you posted, you could walk me through an example of what you are trying to accomplish, i.e.
what is the exact numeric result you are expecting, and what is the logic (based on your sample data) that gets you there.

Thanks
 
Upvote 0
Thanks Joe this is what I am working on and to the right my "playing" section

Tristan Uni.xlsx
BCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAM
220212022202320242025Total
3CodeLevelSubject CPMasterT1T1T2T3T1T2T3T1T2T3T1T2T348
4ARTS301300Research and Professional PracticePrescribed6CompletedDoingProposedTring but wrong - Levels
5COMM101100Screen MediaCore6YDist6144 Credit Points258002580258
6COMM103100Creative IndustriesCore6YEnrol6100max 60 @ 100 level30
7COMM301300Film Techniques and Digital EffectsMedia Culture6YHD6300min 36 @ 300 level120
8COMM323300Digital and Social MediaMedia Culture6Y>399max 12 @ 400 level108
9COMM325300Television StudiesMedia Culture6YEnrol6
10COMM332300News and JournalismMedia Culture6YEnrol6Results
11COMM381300The Art of DocumentaryMC & WP6YHD0Tring but wrong - Results
12COMM382300Hollywood CinemaMedia Culture6YHD6Dist2538
13COMM385300Australian ScreensMedia Culture6YCred0530
14COMM387300Screen Adapations: Rewriting the textMC & WP6YPass0
15COMM389300Human Rigts on ScreenMedia Culture6Y
16INK101100Indigenous Perspectives across Creative IndustriesMC & WP6Y
17THEA321300Writing for Performance: Stage and ScreenWriting and Publication6Enrol6
18WORK300300Work Integrated Learning - Professional Skills Development Prescribed6Plan0
19WRIT101100The Craft of Acamedic WritingCore6Dist6
20WRIT102100Storytelling and Genre WritingCore6
21WRIT303300Writing for ReasearchPrescribed6CP'sCompletedLeft
22WRIT304300Writing Short FictionWriting and Publication6CoreMust Do 24186
23WRIT306300Writing for Work: Styles and ContextWriting and Publication6Prescribed6 CPs66
24WRIT309300Writing Creative Non-fictionWriting and Publication6Major48 CPs483018
25WRIT313300Editing Skills and StandardsWriting and Publication6Elective66 CP6666
26WRIT326300Persuading the Public: Rhetoric in Public AffairsWriting and Publication6
27WRIT327300Magazines: Culture, Industry and PracticesMC & WP6Masters - A Rule - 48 CP
28WRIT329300Publishing PracticeMC & WP6Dist6max 12 @ 100 level
29max 18 @ 200/300 level
30COMM00H400Communications Honours Honours48min 18 @ 400 or above
31
32COMM501500Film Techniques & Digital EffectsMasters6Masters - B Rule - 48 CP
33COMM523500Digital and Social MediaMasters6max 6 @ 200/300 level
34COMM525500Television StudiesMasters6min 18 @ 400 or above
35COMM532500News and JournalismMasters6Advance Standings24 CP
36COOM581500The Art of DocumentaryMasters6
37COMM582500Hollywood CinemaMasters6
38COMM585500Australian ScreensMasters6
39COMM587500Screen Adaptions: Rewiriting the TextMasters6
40COMM589500Human Rights on ScreenMasters6
41WRIT503500Writing for Research Masters6
42
Testing
Cell Formulas
RangeFormula
AA3AA3=SUM(AA4:AA41)
AE5AE5=SUM(AI6:AI8)
AF5AF5=SUM(AE6:AF8)
AG5,AK12,AK5AG5=SUM(AE6:AG8)
AI12:AJ12,AI5:AJ5AJ5=SUM(AJ6:AJ8)
AA5:AA7,AA28,AA19,AA12,AA9:AA10AA5=F5
AI6:AI7AI6=SUMIFS(CPS,Lvls,AC6)
AI8AI8=SUMIFS(CPS,Lvls,">"&399)
AI13AI13=COUNTIFS(Subs,$AD$12)+COUNTIFS(Subs,$AD$11)+COUNTIFS(Subs,$AD$13)+COUNTIFS(Subs,$AD$14)
AJ13AJ13=COUNTIFS(Subs,$AD$17)
AK13AK13=COUNTIFS(Subs,$AD$18)
AE11:AE14AE11=COUNTIF(DataRange,AD11)
AF17AF17=COUNTIF(DataRange,AD17)
AG18AG18=COUNTIF(DataRange,AD18)
AH22:AH25AH22=AF22-AG22
Named Ranges
NameRefers ToCells
CPS=Testing!$F$4:$F$41AI6:AI8
DataRange=Degree!$I$4:$Y$41AE11:AE14, AF17, AG18
Lvls=Testing!$C$4:$C$41AI6:AI8
Subs=Testing!$I$4:$Y$41AI13:AK13
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AK13Cell Value>61textNO
AJ13Cell Value>61textNO
AI15:AI18Cell Value>13textNO
AI13Cell Value>61textNO
AF8:AG8,AI8Cell Value>13textNO
AF6:AG6,AI6Cell Value>61textNO


So the result I want in AE6 based on the above data is 30, then in AF6 the result would be 18.

If I was to change the inputs to the next insert I will include the results.

Tristan Uni.xlsx
BCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAG
1
220212022202320242025Total
3CodeLevelSubject CPMasterT1T1T2T3T1T2T3T1T2T3T1T2T348
4ARTS301300Research and Professional PracticePrescribed6PlanCompletedDoingProposed
5COMM101100Screen MediaCore6YDist6144 Credit Points25884120
6COMM103100Creative IndustriesCore6YHD6100max 60 @ 100 level186
7COMM301300Film Techniques and Digital EffectsMedia Culture6YHD6300min 36 @ 300 level30624
8COMM323300Digital and Social MediaMedia Culture6YEnrol>399max 12 @ 400 level18612
9COMM325300Television StudiesMedia Culture6YHD6
10COMM332300News and JournalismMedia Culture6YDist6Results
11COMM381300The Art of DocumentaryMC & WP6YPlanHD0
12COMM382300Hollywood CinemaMedia Culture6YHD6Dist2
13COMM385300Australian ScreensMedia Culture6YCred0
14COMM387300Screen Adapations: Rewriting the textMC & WP6YPass0
15COMM389300Human Rigts on ScreenMedia Culture6Y
16INK101100Indigenous Perspectives across Creative IndustriesMC & WP6Y
17THEA321300Writing for Performance: Stage and ScreenWriting and Publication6EnrolEnrol6
18WORK300300Work Integrated Learning - Professional Skills Development Prescribed6Plan0
19WRIT101100The Craft of Acamedic WritingCore6Dist6
20WRIT102100Storytelling and Genre WritingCore6
21WRIT303300Writing for ReasearchPrescribed6PlanCP'sCompleted
22WRIT304300Writing Short FictionWriting and Publication6CoreMust Do 2418
23WRIT306300Writing for Work: Styles and ContextWriting and Publication6Prescribed6 CPs6
24WRIT309300Writing Creative Non-fictionWriting and Publication6Major48 CPs4830
25WRIT313300Editing Skills and StandardsWriting and Publication6PlanElective66 CP66
26WRIT326300Persuading the Public: Rhetoric in Public AffairsWriting and Publication6
27WRIT327300Magazines: Culture, Industry and PracticesMC & WP6Masters - A Rule - 48 CP
28WRIT329300Publishing PracticeMC & WP6Dist6max 12 @ 100 level
29max 18 @ 200/300 level
30COMM00H400Communications Honours Honours48min 18 @ 400 or above
31
32COMM501500Film Techniques & Digital EffectsMasters6HDMasters - B Rule - 48 CP
33COMM523500Digital and Social MediaMasters6Distmax 6 @ 200/300 level
34COMM525500Television StudiesMasters6Planmin 18 @ 400 or above
35COMM532500News and JournalismMasters6DistAdvance Standings24 CP
36COOM581500The Art of DocumentaryMasters6Plan
37COMM582500Hollywood CinemaMasters6Enrol
38COMM585500Australian ScreensMasters6
39COMM587500Screen Adaptions: Rewiriting the TextMasters6
40COMM589500Human Rights on ScreenMasters6
41WRIT503500Writing for Research Masters6
42
Testing
Cell Formulas
RangeFormula
AA3AA3=SUM(AA4:AA41)
AE5AE5=SUM(AI6:AI8)
AF5AF5=SUM(AE6:AF8)
AG5AG5=SUM(AE6:AG8)
AA5:AA7,AA28,AA19,AA12,AA9:AA10AA5=F5
AE11:AE14AE11=COUNTIF(DataRange,AD11)
AF17AF17=COUNTIF(DataRange,AD17)
AG18AG18=COUNTIF(DataRange,AD18)
Named Ranges
NameRefers ToCells
DataRange=Degree!$I$4:$Y$41AE11:AE14, AF17, AG18
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AG8,AI8Cell Value>13textNO
AF6:AG6,AI6Cell Value>61textNO


So I have colour coded the results for ease of reference I think.
 
Upvote 0
I am going to be offline for a few days, so won't be able to look into this until I am back.
If you figure something out in the meantime, please let me know.
Otherwise I will try to look at it when I am back.
 
Upvote 0
So the result I want in AE6 based on the above data is 30, then in AF6 the result would be 18.
OK, I can get this, with the use of a "helper" column.

I chose column 17, though you can use any column you like.
I entered this formula in cell Z4:
Excel Formula:
=COUNTBLANK(I4:Y4)
and copied down for all rows (down to Z41).
Following your pattern, I then named range Z4:Z41 "CBS".

The formula for cell AE6 is quite simple, i.e.
Excel Formula:
=SUMIFS(CPS,Lvls,100)
or
Excel Formula:
=SUMIFS(CPS,Lvls,AC6)

Then, for cell AF6, you can use:
Excel Formula:
=SUMIFS(CPS,Lvls,100,CBS,"<>" & 17)
or
Excel Formula:
=SUMIFS(CPS,Lvls,AC6,CBS,"<>" & 17)

There may be a way to do it without the use of a helper column, but that is more advanced, and I have not done too much like that before.
 
Upvote 0
thank you, I think that is where I was going around the bend too. I was trying to do it all in one step rather than break it up
 
Upvote 0
thank you, I think that is where I was going around the bend too. I was trying to do it all in one step rather than break it up
It may be possible to do it all in one step, but it is beyond my level of knowledge!
 
Upvote 0

Forum statistics

Threads
1,215,352
Messages
6,124,457
Members
449,161
Latest member
NHOJ

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