+ Reply to Thread
Results 1 to 12 of 12

Formula to convert monthly data to weekly data

  1. #1
    Registered User
    Join Date
    05-08-2014
    MS-Off Ver
    Excel 2010
    Posts
    5

    Formula to convert monthly data to weekly data

    My probleem is as follows:

    I have 12 observations per variable over 2013. At the end of each month I gathered the average value of X of said month. What I want to do is convert these observations to a list of weekly observations, where each week in januari gets the value of the januari observation

    Example:

    Month 1 2 3 4 5 6 7 8 9 10 11 12
    Value 2 3 4 5 6 7 8 9 10 11 12 13


    And get it like:

    Week Value
    1 2
    2 2
    3 2
    4 2
    5 2
    6 3
    7 3

    and so on.

    Since I've got a lot of variables I'd like to use some kind of formula, anybody here can help me out?

    Thanks!

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Formula to convert monthly data to weekly data

    =MONTH(A6*7+DATE(2013,1,1))
    will convert a week number to a month number then you can use index/match or hlookup to pick out the value.

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Formula to convert monthly data to weekly data

    Basically, specify for each week, which month it is and then use HLOOKUP function to retrieve data from particular month.
    Best Regards,

    Kaper

  4. #4
    Registered User
    Join Date
    05-08-2014
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Formula to convert monthly data to weekly data

    Thanks ragulduy, but I want to do it the other way around. I have monthly observations and I want to get a list per week.

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Formula to convert monthly data to weekly data

    Yes, that is what I provided you with.

    i.e. if your months are in A1:A12, values are in B1:B12, week numbers in C1:C52 then in D1:
    =VLOOKUP(MONTH(C1*7+DATE(2013,1,1)),A1:B12,2,0)
    and copy down.

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Formula to convert monthly data to weekly data

    this is exactly what has been proposed by us both.
    month number could be retrieved for instance also as:
    =MONTH(DATE(2014,1,1)+7*A3-6)
    (assuming your list of week numbers is in A3:A55)
    and if month numbers are in B1:M1 and values for each month in B2:M2 final formula for B3 will be:
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    05-08-2014
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Formula to convert monthly data to weekly data

    Ah now I get it ragulduy and Kaper, I'm afraid I needed that extra bit of explanation

    Thanks so far, I'll see if I can get it done now

  8. #8
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Formula to convert monthly data to weekly data

    No problem, for future reference, if you upload a workbook with the layout of your data, rather than examples in the text of the post, we can give you the formulas with specific cell references as an example and it makes it easier to understand.. You can upload a workbook by clicking "go advanced" beneath the reply box and then "attachments".

  9. #9
    Registered User
    Join Date
    05-08-2014
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Formula to convert monthly data to weekly data

    Still not there yet, so I'll give it a try ragulduy.

    The first tab has the observations per month, as given by the data analysis tool. What I want is in the second tab; use Object to VLOOKUP/HLOOKUP Cluster and Index, and get the monthly observations per week. I'm stuck


    convert month to week.xlsx

  10. #10
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Formula to convert monthly data to weekly data

    See attachment, it's based on the data still being for 2013.
    Attached Files Attached Files

  11. #11
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Formula to convert monthly data to weekly data

    Well,
    My formula fits perfectly too. Only small adjustment of ranges is necessery, because you have some extra data.
    if week numbers start from A8 down (as posted in original question!), in B8:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy down.
    If you would like to have it more universal, change in B8 to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy down/right
    Attached Files Attached Files
    Last edited by Kaper; 05-13-2014 at 07:21 AM.

  12. #12
    Registered User
    Join Date
    05-08-2014
    MS-Off Ver
    Excel 2010
    Posts
    5

    Talking Re: Formula to convert monthly data to weekly data

    I feel stupid, it actually was as simple as both of you described

    Glad to say that I finally got what I wanted, thanks a lot Kaper and raguldguy!

    /SOLVED

+ 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. 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
  2. Convert weekly to monthly data
    By Svilen Pachedzhiev in forum Excel General
    Replies: 5
    Last Post: 08-10-2017, 04:09 AM
  3. [SOLVED] Formula to sum monthly result given weekly data
    By tantcu in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 08-16-2013, 06:40 PM
  4. Prorate formula for weekly to monthly data
    By randym44 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-28-2011, 03:02 AM
  5. Using weekly data to convert to monthly
    By 1.zer0 in forum Excel General
    Replies: 10
    Last Post: 09-27-2010, 04:33 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