Excel Formula Calculation across corresponding values

provoking

New Member
Joined
Apr 27, 2024
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
I am trying to setup an Academic Plan for my son and have run into an issue. Column D is a drop down list.

What I want to do is simply calculate how many credits there are for the type of course requirement.

For instance, based on the mockup below there are 2 instances of GenEd and one is 2 credits and the other is 3 credits. So I want the formula to provide a sum of all instances of GenEd multiplied by the corresponding credits. and populate that formula in A19. Essentially return a value of 5. For Major Requirements it would return a value of 9.

I have familiarity with Countifs but having it do a calculation with corresponding values is baffling me. Any help would be appreciated. THANKS!

1714274231193.png
 

Attachments

  • 1714274144649.png
    1714274144649.png
    37.9 KB · Views: 7

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
You are going to need a helper column or some sort of other conversion method.

Book3
ABCD
9CreditsClassCourse #Type
101New Student Seminar
112Ballet IMajor Req
123Acting IMajor Req
133MT Music Theory IMajor Req
141Aural Skills IElectives
151Somatics and Self-Care for Musical TheatreMajor Req
162Vocal TechniqueGenEd
173The History of BroadwayGenEd
18
195General EducationGenEd
200World Cultures
219Major RequirementsMajor Req
225ElectivesGenEd
Sheet1
Cell Formulas
RangeFormula
A19:A22A19=SUMIFS($A$10:$A$17,$D$10:$D$17,D19)
 
Upvote 0
Another option is to do a wildcard search on the first 3 characters. Based on the "mock-up" provided, it works, however might yield incorrect results depending on the exhaustive list of the Type dropdown.
Excel Formula:
=SUMIFS($A$10:$A$17,$D$10:$D$17,"*" & LEFT(B19,3) & "*")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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