Sumif function on cells containing formulas or dropdowns

snowy day

New Member
Joined
Feb 28, 2011
Messages
1
I've created a budget sheet for each month where I'm using a drop down list of expense categories (ie, AUTO, CLOTHING, GAS, etc.). Each time I spend money during the month I select the category from my drop down menu and enter the amount spent. So for each month I can have several times where I've spent money on the same category (gas, or groceries, etc). I want to use the SUMIF function to sum the amount spent for each category for each month. How can I use the SUMIF function for my budget categories on a range of cells if those cells contain a formula, or drop down menu, and not text? Or maybe SUMIF isn't the best way? I've been searching all over on the forums for a solution. Thanks in advance for your help, and please let me know if you need more info or even a copy of the excel sheet.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
If your categories are in column A and the corresponding dollar amounts are in column B, use this formula to sum for "Gas":

=sumif(A:A,"Gas",B:B)

Even better, reference your category from a cell. Let's say the word Gas is in C2:

=sumif(A:A,C2,B:B)

This will allow you to copy the formula down without re-typing it.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,717
Members
452,939
Latest member
WCrawford

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