+ Reply to Thread
Results 1 to 5 of 5

Convert Irregular Data to Monthly

  1. #1
    Registered User
    Join Date
    02-16-2024
    Location
    Earth, originally from Africa
    MS-Off Ver
    2016
    Posts
    2

    Convert Irregular Data to Monthly

    A friend asked for help to approximate monthly electricity usage and/or spending using data from prepaid electricity purchases over irregular dates over a period of time. I have only worked on the spend since extrapolating to the usage would be easy and obvious.

    The data contains:
    • Date
    • Price (including tax)
    • Price (before tax)
    • Amount of electricity purchased

    I have attached my approach using MS Excel which involves allocating the purchases to months based on the days in between the purchases to extract monthly and quarterly usage. I believe I would have to ignore the first and last purchases because:
    • The first is not from the beginning of the month
    • There remains some unused electricity from the last purchase.

    I would appreciate any comments on a better approach.

    Additionally, I noticed there was no purchase in Oct 2022 and this shows as no purchase (or electricity use) which is obviously wrong. I tried to remedy this by manually entering zero values in months without purchases. {I did not succeed} Such cells are filled in with light green.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,910

    Re: Convert Irregular Data to Monthly

    Administrative Note:

    Welcome to the forum.

    Although we value your privacy as much you do, it could be important that members have a rough idea of your location as the solutions they offer may be affected by your locale. For instance, you might in the future post questions which are related to your regional settings.

    With this in mind, please update your profile to something more precise (something such as UK, Europe, USA, UAE, etc. will suffice).

    Thank you for helping us to help you.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Convert Irregular Data to Monthly

    B2, copied down:
    =SUMIFS(Data!B:B,Data!A:A,">="&A3,Data!A:A,"<="&EOMONTH(Analysis!A3,0))

    H2, copied down:
    =AVERAGEIFS(Data!E:E,Data!A:A,">="&G3,Data!A:A,"<="&EOMONTH(G3,0))

    Delete the stuff in data from column G onwards. I think it was incorrect for column B, in any event. Manually add up the values for August and see.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    02-16-2024
    Location
    Earth, originally from Africa
    MS-Off Ver
    2016
    Posts
    2

    Re: Convert Irregular Data to Monthly

    Quote Originally Posted by Glenn Kennedy View Post
    B2, copied down:
    =SUMIFS(Data!B:B,Data!A:A,">="&A3,Data!A:A,"<="&EOMONTH(Analysis!A3,0))

    H2, copied down:
    =AVERAGEIFS(Data!E:E,Data!A:A,">="&G3,Data!A:A,"<="&EOMONTH(G3,0))

    Delete the stuff in data from column G onwards. I think it was incorrect for column B, in any event. Manually add up the values for August and see.
    Thank you for the elegant solution.

    Electricity, which is continuous, while the purchases are made irregularly, can you think of a way to segment the data into monthly purchases/usage? For example, October 2022 would show zero use because there was no purchase in that month.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Convert Irregular Data to Monthly

    Isn't that what column C in your raw data shows???

+ 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] how to convert irregular day/time data into excel datetime.
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-13-2020, 05:15 PM
  2. Convert monthly row data into single column daily data
    By chsaleem in forum Excel General
    Replies: 3
    Last Post: 11-29-2019, 04:16 AM
  3. Excel 2007 : How to convert weekly data to monthly data
    By kissanbhai009 in forum Excel General
    Replies: 3
    Last Post: 08-10-2017, 04:35 AM
  4. Convert weekly to monthly data
    By Svilen Pachedzhiev in forum Excel General
    Replies: 5
    Last Post: 08-10-2017, 04:09 AM
  5. [SOLVED] Convert irregular text into hours
    By thairicci in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-10-2016, 02:05 AM
  6. Using weekly data to convert to monthly
    By 1.zer0 in forum Excel General
    Replies: 10
    Last Post: 09-27-2010, 04:33 PM
  7. Convert irregular data to monthly equivalent?
    By RBW in forum Excel General
    Replies: 3
    Last Post: 04-02-2006, 03:40 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