+ Reply to Thread
Results 1 to 10 of 10

Summing Data by Week Ending and Category

  1. #1
    Registered User
    Join Date
    09-18-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    46

    Summing Data by Week Ending and Category

    Hello! I am trying to put together a budget worksheet that will take my weekly budgeted amounts by category and compare them to my actual spent amounts according to what is entered into a register on another sheet. I have gotten everything to work except for the field where it would look at the register and pull all transactions for that date within only a given category and insert them into my budget sheet. On the attached example, I would want to put a formula into field D2 of the "Budget" page that would return a total of $2916.73. The same formula in D3 would return a total of $209.26 and so on.

    Please help! I've been driving myself crazy trying to figure this one out...Budget Sample for Forum.xlsx

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Summing Data by Week Ending and Category

    I used SUMIFS

    For A:
    SUMIFS(depositrange,weekendingrange,date,categoryrange,category)

    for B, C, & D:
    SUMIFS(withdrawalrange,weekendingrange,date,categoryrange,category)




    sumifs table.xlsx

    (I put the formulas in every cell the whole way down. Because you're working with Tables, you need to write the equation for the first 4 manually. Afterwards, you can copy the 4 cells together as far as needed.)
    Last edited by daffodil11; 10-03-2013 at 02:23 PM.

  3. #3
    Registered User
    Join Date
    09-18-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    46

    Cool Re: Summing Data by Week Ending and Category

    Thank you thank you thank you!!! That's been driving me batty and it works perfectly! You are a lifesaver!

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Summing Data by Week Ending and Category

    Hurray! Glad I could help out!

    If you believe this answers your question, please mark the thread Solved under the Thread options at the top.

  5. #5
    Registered User
    Join Date
    09-18-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Summing Data by Week Ending and Category

    Ok, I have tried and tried to get the actual spreadsheet to work like the sample spreadsheet does. It pulls the deposit category just fine, but it won't calculate the withdrawal categories. I even re-created from scratch just to make sure I was working with clean data ranges. Please help! This is my actual spreadsheet this time instead of a sample.
    Attached Files Attached Files

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Summing Data by Week Ending and Category

    I just looked at your file, and...
    =SUMIF(CategoryRange,"="&[Category],WithdrawalRange)
    seems to be working just file for all cells...

    A
    B
    10
    Category
    Total
    11
    Deposit
    $ 6,362.06
    12
    Mortgage
    $ 600.00
    13
    Fuel
    $ 251.02
    14
    Food & Drinks
    $ 719.26
    15
    Our Boys
    $ 680.00
    16
    Utilities
    $ 236.52
    17
    Credit Card
    $ -
    18
    Wedding
    $ 276.93
    19
    Garage
    $ 66.00
    20
    Clothes & Shoes
    $ 170.20
    21
    Cash
    $ -
    22
    Other
    $ 23.48
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Registered User
    Join Date
    09-18-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Summing Data by Week Ending and Category

    Actually, that doesn't work at all. It doesn't separate them according to the week ending date. For instance, the $600 mortgage transaction was done in the week of 9/27 but appears in the mortgage actual category on the budget page on 9/6. The whole idea is to see how things are totaling by category each week compared to the weekly budget. If it's coming through correctly, the only totals for 9/6/13 should be:

    Deposit $1,073.62
    Groceries: $112.70
    Our Boys: $160.00

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Summing Data by Week Ending and Category

    OK sorry, I didnt get the "week ending" bit.

    Im not sure where you will have the W/E entered, so I used the date in D11, you can use another 1. I used this for the Deposits...
    =SUMIFS($J$11:$J$61,$H$11:$H$61,A11,$D$11:$D$61,$D$11)
    I didnt get quite the same values as you showed above

    And then this for the withdrawals...
    =SUMIFS($I$11:$I$61,$H$11:$H$61,A12,$D$11:$D$61,$D$11)
    This gave the same values as you had above

  9. #9
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Summing Data by Week Ending and Category

    I just happen to be at the office for a corporate party tonight and saw your email. And I'd rather discuss spreadsheets than party it up, because I'm kind of a nerd.

    Here's your spreadsheet in working order with all the formulas filled out. The hard part of working with a table is that the whole first block of equations needs to be done manually. And by manually, I mean not just typing it in, but literally D2: =sumifs(selecting the deposit range,selecting date range,select a2,select category range, select category). And then doing that again for D3:D13 but with withdrawal range. Not just copying that formula, but literally selecting the data for each of those equations.

    I know the formula in each one looks the same, but if you don't manually select the data for the SUMIFS when writing the equations for each line of D in the first block, then it doesn't quite work. However, once I finished manually selecting the data range for each SUMIF in D2:D13, I was then able to copy and paste that entire block of formulas into each of the other blocks.

    If I had just copied D3 into D4, Excel would have adjusted the references without telling me, even though the equation looks exactly the same.

    So without further adieu, here's it is:

    sumifs table is hard.xlsx

  10. #10
    Registered User
    Join Date
    09-18-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Summing Data by Week Ending and Category

    Woohoo!!! I finally got it working! I had to play a bit with the ifsums formula (probably because of all of the named ranges, but it is what it is). Thanks for your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Sheets for every week + start and ending date of the week
    By wimexcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-30-2012, 01:48 PM
  2. Replies: 10
    Last Post: 03-01-2011, 08:46 AM
  3. OT #4 -- week ending Sun 03-Jan-10
    By teylyn in forum The Water Cooler
    Replies: 1
    Last Post: 12-28-2009, 11:41 AM
  4. OT #1 -- week ending Sun 13-Dec-09
    By teylyn in forum The Water Cooler
    Replies: 42
    Last Post: 12-12-2009, 03:43 PM
  5. Summing Data based on Its Category
    By sip8316 in forum Excel General
    Replies: 2
    Last Post: 05-24-2005, 03:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1