Microsoft Excel Experts? | FerrariChat

Microsoft Excel Experts?

Discussion in 'Technology' started by TheBigEasy, Jul 10, 2015.

This site may earn a commission from merchant affiliate links, including eBay, Amazon, Skimlinks, and others.

  1. TheBigEasy

    TheBigEasy F1 World Champ
    Consultant

    Jun 21, 2005
    16,942
    California
    Full Name:
    Ethan Hunt
    I have a spreadsheet of expenses that I want to automate a summary page.

    Sheet1 = Summary
    Sheet2 = List of expenses from source A
    Sheet3 = List of expenses from source B
    Sheet4 = List of expenses from source C

    The expenses are sorted by date and by type (travel, food, etc).

    What is the formula on the Summary sheet to say ok:

    =SUM (from Sheet2) (within month of June 2015) (and type is "travel")
    =SUM (from Sheet2) (within month of June 2015) (and type is "food")
    =SUM (from Sheet2) (within month of June 2015) (and type is "other")

    =SUM (from Sheet3) (within month of May 2015) (and type is "travel")
    =SUM (from Sheet3) (within month of May 2015) (and type is "food")
    =SUM (from Sheet3) (within month of May 2015) (and type is "other")

    Etc... for the summary broken down by source, by month, and by expense type.

    Make sense?
     
  2. rob lay

    rob lay Administrator
    Staff Member Admin Miami 2018 Owner

    Dec 1, 2000
    59,572
    Southlake, TX
    Full Name:
    Rob Lay
    I think you can embed IF function so you just have formula on summary page, but I would think about making it easier by adding up the categories on each sheet and then on summary page you just have have to add up like categories.
     
  3. TheBigEasy

    TheBigEasy F1 World Champ
    Consultant

    Jun 21, 2005
    16,942
    California
    Full Name:
    Ethan Hunt
    Yes that's what I'm doing now, it's all manual. By adding up each month and type individually from each source sheet, I just have to paste the final total onto the summary without any formula needed.

    So the problem is when I go into something from months ago and change the type of a charge... nothing is in sync... so I have to delete that whole total from the summary page and then re-calculate it and paste again... and I sometimes forget where I made a change.
     
  4. PureEuroM3

    PureEuroM3 F1 Veteran
    Silver Subscribed

    Jan 31, 2006
    8,801
    Toronto, Ontario, Canada
    Full Name:
    Thomas
    I have something exactly like this bear with me as I explain.

    For me I used sum if, column of months equals June, and column of type of expense equals travel.

    Pm me your email if you want I 'll send you my sheet with expenses.
     
  5. rob lay

    rob lay Administrator
    Staff Member Admin Miami 2018 Owner

    Dec 1, 2000
    59,572
    Southlake, TX
    Full Name:
    Rob Lay
    that's why I was saying put formulas on summary sheet that pull and add category totals from each sheet.
     
  6. PureEuroM3

    PureEuroM3 F1 Veteran
    Silver Subscribed

    Jan 31, 2006
    8,801
    Toronto, Ontario, Canada
    Full Name:
    Thomas
    Yup summary page should be all formulas so you never need to touch it.
     
  7. PureEuroM3

    PureEuroM3 F1 Veteran
    Silver Subscribed

    Jan 31, 2006
    8,801
    Toronto, Ontario, Canada
    Full Name:
    Thomas
    #7 PureEuroM3, Jul 10, 2015
    Last edited by a moderator: Sep 7, 2017
    Here is my template in short so you can see the formula.

    I only put stuff into the transaction page (which would be where you would as well) and the second page is the summary page like you are looking for. You can make it simpler but I like the columns I have. One reason I suggest using a drop menu like I have is to avoid spelling errors. Travel will not take the sum of one put in as trvel.

    The summary page has the formula which basically says sum the values of column D if the transaction has a category (as chosen in transactions column E) of Cell B10 (on summary Which is Lodging on the summary page) and the month (as selected in transactions column A) is equal to cell H2 (on summary which is June).

    I hope this somewhat makes sense and helps.
    Image Unavailable, Please Login
    Image Unavailable, Please Login
     
  8. TheBigEasy

    TheBigEasy F1 World Champ
    Consultant

    Jun 21, 2005
    16,942
    California
    Full Name:
    Ethan Hunt
    Thanks. So you create the drop-down table that the formula references?
     
  9. PureEuroM3

    PureEuroM3 F1 Veteran
    Silver Subscribed

    Jan 31, 2006
    8,801
    Toronto, Ontario, Canada
    Full Name:
    Thomas
    I use the drop down only to ensure I spell it correctly. When you input hundreds and thousands of things the last thing you want is a couple of items being spelt incorrectly and not catching any criteria to sum.

    The formula I use references the actually columns and rows. Once I select something from the drop down it hits the formula as being "Lodging".
     
  10. Challenge

    Challenge Formula 3

    Sep 27, 2002
    1,937
    PA
    Full Name:
    Kevin
    You could use the Excel database functions like DSUM or DCOUNT, but this requires understanding of criteria tables. Very powerful if you learn it....and sounds like what you are looking for.

    From the formula bar, click the "fx" button and choose Database from the category dropdown. Find a command and click "help on this function" to learn more.
     
  11. abster

    abster Formula Junior

    Nov 7, 2005
    400
    NJ
    Take a look at Pivot Tables in Excel. They are designed to do what you are looking for. Also all your data can be one page instead of multiple pages.
     
  12. rdefabri

    rdefabri Three Time F1 World Champ

    Jun 4, 2008
    33,571
    NJ
    Full Name:
    Rich
    That's really the right answer - you want to use a pivot table...anything else is far too manual.
     
  13. bobzdar

    bobzdar F1 Veteran

    Sep 22, 2008
    6,381
    Richmond
    Full Name:
    Pete
    Pivot tables, or the other easy way is to do a vlookup on the category name and tell it the column where you totaled the expenses ( =vlookup(A1,sheet2!A$1$:Z$255$,26) )where A1 is the category name on the summary sheet, A1:Z255 is the array of values on the detail sheet (called sheet2 with the categories in column A) and 26 is the number of the column (Z in this case) that has the sum on the detail sheet. This way, the summary is correct even if the category order or names change, as long as the names match between the details and summary.
     

Share This Page