+ Reply to Thread
Results 1 to 8 of 8

Isolating $ Amounts by Month

  1. #1
    Forum Contributor
    Join Date
    11-29-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    104

    Isolating $ Amounts by Month

    Hello all,

    Looking for some suggestions on how to get started with this problem,

    I have a table with 65k records in it. It’s a ledger detail with account numbers and total amounts. For example, 500611 will have 12 entries, a total for January, then February (which will include January) etc.
    My goal is to isolate the expense that occurred during each month. So if in January the total was $100, and in February the total was $150, I want to be able to distinguish January having $100, and February having $50.

    I want to ultimately be able to create a standard table with the account numbers down the left side, and the 12 months across the top, and the values filled in.
    My thought is to make a composite key, something like 500611_January then in the February column say February = 500611_February – 500611_January. But this seem like a lot of room for error,

    Any suggestions?

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Isolating $ Amounts by Month

    Would using a pivot table on your entire data set help? This way it will subtotal by account by month.

  3. #3
    Forum Contributor
    Join Date
    11-29-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    104

    Re: Isolating $ Amounts by Month

    It would, can you do month over month change?

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Isolating $ Amounts by Month

    Re: Isolating $ Amounts by Month
    Quote Originally Posted by jrean042 View Post
    Hello all,

    I want to ultimately be able to create a standard table with the account numbers down the left side, and the 12 months across the top, and the values filled in.
    My thought is to make a composite key, something like 500611_January then in the February column say February = 500611_February – 500611_January. But this seem like a lot of room for error,

    Any suggestions?
    While the above format may look good, it is not a good arrangement for data analysis. Generally, it is better to "go deep" than to "go wide." Instead of spreading the months across columns (or worse yet, across sheets), use a format similar to the picture. With data in this format you can produce a display like the one you describe easily with a pivot table. Also you will be able to create any number of different reports.
    Attached Images Attached Images
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  5. #5
    Forum Contributor
    Join Date
    11-29-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    104

    Re: Isolating $ Amounts by Month

    Very good suggestion,
    However, my data is not at the daily level, or transaction type, it is a rolling total for each month, no real distinguishing features.

    See the picture. Data_Sample_013119.JPG

    I made pretty good progress with a pivot table (Show value as difference from previous month), but can't get all the account numbers to agree with ending balances

  6. #6
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Isolating $ Amounts by Month

    This could work, but you would have to translate the month into true dates. Assume all transactions happen on the first or end of the month. E.g. New Date = DateValue( "1 " & [@[Month]] & " 2019").

  7. #7
    Forum Contributor
    Join Date
    11-29-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    104

    Re: Isolating $ Amounts by Month

    My apologies, but I guess I don't see the difference?
    For layout purposes I think the months across the top make it a little easier to read.
    To you credit though, it does span like 40 columns

    Here is a sample of where I'm at. Sample_1.JPG

  8. #8
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Isolating $ Amounts by Month

    I agree that for reading purposes stringing the months across the columns is great but this kind of display can be created easily by a pivot table from normalized data.

    Now if you want to do anything other than look at this data in exactly this format. it will take a lot of custom formula writing or VB code.

    Post #5 has the data in normalized format.

    If you want to get any other display of the data, you can most likely get it from normalized data using a pivot table, match / index or SUMIFS formulas.

    Also, the reason I was pushing for "real" dates is that they sort in real calendar order and not alphabetical order. Also, with pivot tables you can group dates by month, quarter and year (and other combinations like weeks).

+ 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. [SOLVED] sum amounts based on the month
    By Berna11 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-23-2018, 01:40 PM
  2. Total-sum as per month & year for the amounts
    By Ronni1991 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-05-2017, 02:08 AM
  3. [SOLVED] Sum amounts by month paid
    By Pickygame in forum Excel General
    Replies: 11
    Last Post: 02-17-2015, 11:32 AM
  4. Replies: 2
    Last Post: 03-09-2011, 09:02 AM
  5. Consolidating Amounts by Month
    By JungleJme in forum Excel General
    Replies: 2
    Last Post: 09-16-2010, 07:57 AM
  6. Replies: 1
    Last Post: 06-15-2010, 09:42 PM
  7. Calculating Amounts by Month
    By Cassanetti in forum Excel General
    Replies: 5
    Last Post: 10-03-2007, 01:55 PM

Tags for this Thread

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