Computing.Net > Forums > Office Software > Excel Formula Help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excel Formula Help

Reply to Message Icon

Name: JoeJJohnsonII
Date: October 5, 2009 at 12:27:12 Pacific
OS: Windows XP
Product: Microsoft Excel 2003 (full product)
Subcategory: Microsoft Office
Tags: excel
Comment:

Hello All,
I am trying to make a monthly expense sheet to help keep track of spending and where it is going. I have 2 sections on my sheet, the top where the all expenses go and the bottom where I would like the totals of some categories to be put. In column B there is a drop down menu that has a list of categories. In Column D is the expense. What I would like is a function that can add the expense value if the category equals something. How would I go about setting something like this up? Thanks for the help. I can send a spreadsheet to anyone that needs it.



Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: October 5, 2009 at 13:24:25 Pacific
Reply:

I'm not quite clear about your use of the drop down.

Do you have a drop down in every row so you can choose a category for each row?

It sounds like SUMIF might work. For example, if your categories were in Column B and your values in Column D, then you could use:

=SUMIF(B1:B10,"=Car",D1:D10)

This would sum all the values in Coulmn D where Coulmn B of the same row contained Car.

If you have the categories names in cells, you could do something like this:

e.g. if Car was in A44...

=SUMIF(B1:B10,$A$44,D1:D10)

Let me know if that helps.


1

Response Number 2
Name: JoeJJohnsonII
Date: October 5, 2009 at 13:49:12 Pacific
Reply:

The SUMIF was exactly what I was looking for. I plugged it in and was able to get it working. Final entry was:
=SUMIF(B4:B25,$A$29, D4:D25). Pulled the A29 from an entry in the list I created for the categories. Thanks again for the help.


0

Response Number 3
Name: DerbyDad03
Date: October 5, 2009 at 14:28:59 Pacific
Reply:

Glad to have been of assistance.


0

Response Number 4
Name: Humar
Date: October 5, 2009 at 14:36:35 Pacific
Reply:

Hi,

If you change your formula slightly it will make it easier to extend it by dragging rather than re-entering ranges.

=Sumif($B$4:$B$25,$A29, $D$4:$D$25)

Now if you drag the formula it will always refer to the criteria range B4 to B25 and the sum range D4 to D25.

and if you have a list of criteria starting at A29, dragging the formula down one row will pick up the category from A30.

Regards


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Excel Formula Help

Excel Formula Help www.computing.net/answers/office/excel-formula-help/2797.html

excel formula help www.computing.net/answers/office/excel-formula-help/3999.html

Excel Formula, need help! www.computing.net/answers/office/excel-formula-need-help/6717.html