Trying to use a dropdown list as reference for a Sum function.

Vmar002

New Member
Joined
Mar 21, 2013
Messages
3
Hey guys,

So I've been looking all over trying to figure out how to do this but have had no luck. I am a complete novice when it comes to excel and I think this might be too tough a formula to figure out by myself.

I have a worksheet with a couple of dropdown menus. One of these is used in another cell, kind of like a summary. I want a cell in that summary table to add all the values pertaining to one of the dropdown menu options automatically. For example:

Column A has the dropdown list.
Column B has whatever amount.
Column C has the same dropdown list.
Column D is the one where, depending on the choice in Column C, it adds all the values in column B that have that belonged to that set in Column A.



Column A Column B Column C Column D

Phys Ther 30 Surgery 100
Consultation 15
Surgery 50
Phys Ther 30
Surgery 50
Phys Ther 30
 
Last edited:

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
I tried, but it gives me a #value message. I don't think the posts properly displays what the sheet looks like. The "Code" column and "Service" column are the ones with the dropdown menu. The "Code" one is part of the huge information in the sheet, the "service" one is part of the summary in the sheet. I want the total amount to change based on the service, by adding the chages belonging to each code. In this case I chose Consult as the service so total amount would be 30 for the 2 consults in the sheet.
CodeChargeServiceTotal Amount
Phys ther30Consult30
Consult15
Phys Ther30
Surgery50
Consult15
Phys Ther30

<tbody>
</tbody>
 
Upvote 0
Ok, sooooo. I'm a total newb. That about sums it up. Thanks konew1. you had it basically right, the range is on the wrong side is all. So it's actually:


=SUMIF(A1:A6,B1:B6, C1)
 
Upvote 0
The format of sumif is SUMIF(range, criteria, [sum_range]). The criteria in your example is in C1 (Consult), and the sum_range is in B
 
Upvote 0

Forum statistics

Threads
1,206,921
Messages
6,075,589
Members
446,147
Latest member
homedecortips

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