+ Reply to Thread
Results 1 to 5 of 5

Creating a report from a table

  1. #1
    Registered User
    Join Date
    04-17-2006
    MS-Off Ver
    365
    Posts
    29

    Creating a report from a table

    Is there a simple way to take a file that is formatted like this....

    AcctNum AcctDescr Year Month Scenario Amount
    10110 Food 2009 1 Actuals 1,000
    10115 Travel 2009 1 Actuals 1,100
    10110 Food 2009 2 Actuals 2,000
    10115 Travel 2009 2 Actuals 2,100
    10133 Gifts 2009 2 Actuals 2,200
    10110 Food 2009 1 Budgets 1,500
    10115 Travel 2009 1 Budgets 900
    10133 Gifts 2009 1 Budgets 1,200
    10110 Food 2009 2 Budgets 2,500
    10115 Travel 2009 2 Budgets 1,900
    10133 Gifts 2009 2 Budgets 2,200


    And create a report that looks like this?

    Summary
    February 2009

    Actuals Budgets
    10110 Food 1,500 2,500
    10115 Travel 900 1,900
    10133 Gifts 1,200 2,200

    Total 3,600 6,600

    Take into consideration that additional data will be added each month and new accounts will be added each month. I'd like to be able to insert a row, add the new account number and then be able to copy the formulas from the row above it to get the new numbers.

    I know that one option would be a pivot table, but it's not practical in this scenario.

    Any other options?

    I've included a sample worksheet if that helps.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Creating a report from a table

    Hi bullwinkle55423,

    Here's a small modification to your sample worksheet that may give you part of the answer.

    Cheers,
    Attached Files Attached Files
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Creating a report from a table

    Hi

    change C20 to be a real date, not text. Format it with custom format "mmmm yyyy" so it looks like you have entered.

    then, enter this formula in cell C23, copy down and right

    =SUMPRODUCT(--($C$2:$C$12=YEAR($A$20)),--($D$2:$D$12=MONTH($A$20)),--($E$2:$E$12=C$22),--($B$2:$B$12=$B23),$F$2:$F$12)

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Creating a report from a table

    Hi,

    Why is a Pivot Table not practical? It does exactly what you want and only takes a few seconds.

    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    295

    Re: Creating a report from a table

    My thoughts too, so for anyone wondering how a pivot table might work, here's an example, with a dynamic input range that will expand to include new data.

    Page fields allow year/month to be selected from drop-downs.

    Regards
    Mike
    Attached Images Attached Images
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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