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: 3

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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,215,822
Messages
6,127,061
Members
449,357
Latest member
donna_koenig

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