+ Reply to Thread
Results 1 to 16 of 16

Weekly > Monthly Portioning Problem

  1. #1
    Registered User
    Join Date
    01-03-2019
    Location
    Manchester, England
    MS-Off Ver
    2016 Office ProPlus - Excel v.1708
    Posts
    12

    Question Weekly > Monthly Portioning Problem

    Hi all,

    In a bit of a pickle. Basically I am trying to find a way to convert my dataset from a weekly format into a monthly format, however am having issues with the fact that my data goes on a week commencing basis (take for example wc. 30/12/19 - I only want 2/7ths of my data to fall into a Dec-19 range and 5/7ths into a Jan-20 range).

    I have attached a test file which illustrates what I am working with - values by region.

    Any help anyone could offer would be greatly appreciated (please no pivot-table 'group by' instructions - it doesn't work for the purposes of this I don't think).

    Best,
    C
    Attached Files Attached Files
    Last edited by ChrisA95; 07-24-2019 at 05:27 AM.

  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,853

    Re: Weekly > Monthly Portioning Problem

    You haven't provided an AFTER sheet in the workbook, so we have no way of seeing what you want.

    Using the same value in every cell is not a good idea - it doesn't help us when testing possible solutions.

    Sorry, Chris, but the sample workbook is pants.
    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
    Registered User
    Join Date
    01-03-2019
    Location
    Manchester, England
    MS-Off Ver
    2016 Office ProPlus - Excel v.1708
    Posts
    12

    Re: Weekly > Monthly Portioning Problem

    Apologies - I had thought that the post and initial test file would have been sufficient enough information to describe changing weekly data to monthly.

    Please see new file attached with before and after views.

    C

  4. #4
    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,853

    Re: Weekly > Monthly Portioning Problem

    Thanks.

    You have included formulae - are these producing the correct results? If not, what should the results be (manually entered)? If they ARE correct, what is the problem?

  5. #5
    Registered User
    Join Date
    01-03-2019
    Location
    Manchester, England
    MS-Off Ver
    2016 Office ProPlus - Excel v.1708
    Posts
    12

    Re: Weekly > Monthly Portioning Problem

    Yes the formulae included are producing the correct result, however they are by no means an efficient way of completing the task (hence me only doing 3) as it first requires me to mentally deduct the w.c. from the total number of days in the month and use this to manually apply the proportion to the weeks where values will be split between 2 months..

  6. #6
    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,853

    Re: Weekly > Monthly Portioning Problem

    OK - thanks. That makes sense now.

    So how do the months divvy up? Is the 'end of the month' always the 19th of the month? If not, we shall need to know where that division comes for each month.

  7. #7
    Registered User
    Join Date
    01-03-2019
    Location
    Manchester, England
    MS-Off Ver
    2016 Office ProPlus - Excel v.1708
    Posts
    12

    Re: Weekly > Monthly Portioning Problem

    Hm - I'm not sure.. where did you get the 19th from? I'm looking to just roll-up in a standard monthly fashion, from the 1st of the month to whatever the last day of the month is, but with proportioning so that the data from a week with 5 days in February and 2 in March (i.e. w.c 24/02) would have 5/7th's of it's contents in February and 2/7th's of it's contents in March [in the new view]. Sorry does that make sense - hard to explain..

  8. #8
    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,853

    Re: Weekly > Monthly Portioning Problem

    I got it from your opening post:

    I only want 2/7ths of my data to fall into a Dec-19 range and 5/7ths into a Jan-20 range).
    If your helper is unclear of the parameters involved, then working on a solution might prove a waste of their time. They will need to know how you are defining the 5/7ths.

  9. #9
    Registered User
    Join Date
    01-03-2019
    Location
    Manchester, England
    MS-Off Ver
    2016 Office ProPlus - Excel v.1708
    Posts
    12

    Re: Weekly > Monthly Portioning Problem

    Dec-19 referring to Dec-2019 in that instance.

    I don't know what you mean by helper? I am completely new to this (9 posts ever made??), it simply referred to the 2 days left in December..

    If you're feeling disgruntled with my forum inexperience then by no means feel obliged to help me, I'm sure it'll work out eventually

  10. #10
    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,853

    Re: Weekly > Monthly Portioning Problem

    No, I am not at all disgruntled!!! I am here to hep you to provide the information necessary for your helper (whoever thinks they can help you solve this - this could be me or somebody else) to be able to provide a solution.

    I am merely trying to tease out of you the necessary parameters for that solution. At the moment, I am not clear about how you decide exactly what 5/7ths of a month should be.

    To be clear: I would very much like to help you solve this, but I don't yet have the information I feel I need to do so. Does this make sense?

  11. #11
    Registered User
    Join Date
    01-03-2019
    Location
    Manchester, England
    MS-Off Ver
    2016 Office ProPlus - Excel v.1708
    Posts
    12

    Re: Weekly > Monthly Portioning Problem

    Yes that makes sense - sorry for the confusion!!

    I think we have our wires crossed on what I meant by my initial post (my fault) - I figured out the 5/7th's by looking at the hypothetical week commencing in question (so say the 30th December 2019)... because I know that there are only 2 days left in December, when I roll up the data into a monthly format I would like it to reflect that by splitting the data from this week correctly between December 2019 and January 2020 (with 2/7 days of that week falling in December and 5/7 falling into January)..

    This would of course only be a concern for weeks where the week commence date falls in one month and the week end in another, for example the w.c 10th January 2020 would be fed only into Jan-2020 in the new view...

    To put it in a sentence, I want to change from weekly to monthly but with the data not falling into the pot for whatever month it is when that week started

    Am I helping at all?

  12. #12
    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,853

    Re: Weekly > Monthly Portioning Problem

    Yes, you are! But we are not there quite yet ...

    The thing is, when we write a formula or some other solution, we need to tell Excel what the parameters are. You said this:

    I figured out the 5/7th's by looking at the hypothetical week commencing in question (so say the 30th December 2019)... because I know that there are only 2 days left in December,
    What I am driving at is that Excel will need to know how to do this and apply it to any future situation like this that may arise. Does this make sense? Excel is clever, but it can't see inside our heads.

    I should let you know that I am going offline for a while shortly, but there are lots of others around who will be able to pick this up.

  13. #13
    Registered User
    Join Date
    01-03-2019
    Location
    Manchester, England
    MS-Off Ver
    2016 Office ProPlus - Excel v.1708
    Posts
    12

    Re: Weekly > Monthly Portioning Problem

    Hi, I found this just now:

    https://www.exceltactics.com/how-to-...data-in-excel/

    This is exactly what I want to do except in this example it uses week end dates instead of week start dates (it says that the formula needs to be tweaked but I don't know how)..

  14. #14
    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,853

    Re: Weekly > Monthly Portioning Problem

    OK, so did you download the sample file?

    Here's what I would do (if I were you):

    1. Grab the sample file from that link.
    2. Add some of your own data and see if it is calculating in the way you want.
    3. If not, post the new workbook back here explaining what you would like to tweak.

    By the way, 10/10 for Googling and finding that - big help.

    I'm off to enjoy the sunshine now - my garden has been beckoning for the past hour or two! If you are working up in Manchester today, I hope your office is air-conditioned - it's 27C inside the house here at the moment!!!

  15. #15
    Registered User
    Join Date
    01-03-2019
    Location
    Manchester, England
    MS-Off Ver
    2016 Office ProPlus - Excel v.1708
    Posts
    12

    Re: Weekly > Monthly Portioning Problem

    Yeah, you're right - I just realised I could just add 7 to each of my week start dates to change them into week end dates and then use the above logic ha!!

    Thank you v. much for your time and patience

    I'm WFH today but I'll get chance to enjoy it after - enjoy!!

  16. #16
    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,853

    Re: Weekly > Monthly Portioning Problem

    No problem, Chris - I am sorry I gave the impression that I was getting cross with you: not intended at all.

    Let us know how you get on, and if you are happy with the solution you've found, then please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Sometimes talking it through is wll we need!

+ 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. Converting weekly to monthly data and Yearly data to monthly
    By MilicaMatovic in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 01-29-2016, 09:48 AM
  2. Sum weekly & monthly totals
    By jojo101 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-18-2015, 02:53 AM
  3. Weekly, Monthly and YTD calculations
    By ROBINB in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-16-2012, 11:19 AM
  4. Weekly and Monthly Reporting
    By FourSeven in forum Excel General
    Replies: 0
    Last Post: 02-16-2011, 09:06 PM
  5. Replies: 1
    Last Post: 07-11-2008, 05:57 AM
  6. Weekly/Monthly Averages
    By klindy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-14-2006, 04:24 AM
  7. Weekly/Monthly Averages
    By klindy in forum Excel General
    Replies: 2
    Last Post: 10-13-2006, 02:57 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