+ Reply to Thread
Results 1 to 11 of 11

Taking weekly data and converting to monthly

  1. #1
    Registered User
    Join Date
    04-19-2022
    Location
    Bristol, England
    MS-Off Ver
    Professional Plus 2021
    Posts
    21

    Taking weekly data and converting to monthly

    Hi all,

    I have a data set that contains a number of week ends i.e. week ending 03/09/23, 10/09/23 etc. and I need to summarise this into a monthly summary. Where the week ending is over two months i.e. 03/09/23 I want it to take the total and divide by 7 and multiply it by the number of days in the month i.e. for 03/09/23 I would want 3 days worth in Sept and 4 days in Aug. Then on top of this I need it to look up categories and bring it back based on those as well as the dates.

    Example sheet attached.

    The weekly forecast has a helper row in it (Row 10) which identifies the number of days in the month (this may not be needed). I need the formula in the Summary tab cells D13:O26 and D31:O58.

    I have the following formula used to do this based on only one sum range and no additional criteria but I don't know how to amend it to do what I need. (see Sheet 1 tab in the file)

    =SUMPRODUCT((DATE(YEAR($G$9:$G$18),MONTH($G$9:$G$18),1)=DATE(YEAR(O$8),MONTH(O$8),1))*$I$9:$I$18/7*($H$9:$H$18))+SUMPRODUCT((DATE(YEAR($G$9:$G$18),MONTH($G$9:$G$18),1)=DATE(YEAR(O$8),MONTH(O$8)+1,1))*(7-$I$9:$I$18)/7*($H$9:$H$18))

    Thanks in advance.
    James
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-19-2022
    Location
    Bristol, England
    MS-Off Ver
    Professional Plus 2021
    Posts
    21

    Re: Taking weekly data and converting to monthly

    The other criteria is in Col B.

  3. #3
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: Taking weekly data and converting to monthly

    Try in D13 and copy across and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Good luck!

  4. #4
    Registered User
    Join Date
    04-19-2022
    Location
    Bristol, England
    MS-Off Ver
    Professional Plus 2021
    Posts
    21

    Re: Taking weekly data and converting to monthly

    Hi, this doesn't quite work. It does everything except take the days after 24th Sept to 30th Sept which are in the 01/10/23 column. These need to be divided by 7 and multiplied by the number of days in the month (for the 1/10/23 it would be 6 as 6 are in sept and 1 are in October.

  5. #5
    Registered User
    Join Date
    04-19-2022
    Location
    Bristol, England
    MS-Off Ver
    Professional Plus 2021
    Posts
    21

    Re: Taking weekly data and converting to monthly

    I have updated the file with the formula given above (cell E13) which doesn't quite work. I've added another formula (D13) that incorporates the formula in cell E13 with another formula that attempts
    to apportion any amounts in the week endings that go over two months but this doesn't work...I don't know why? I have added notes onto the file which may help explain.

    Can someone either help amend the formula in cell D13 to work or provide another formula that works please?

    Thanks in advance.
    James
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Taking weekly data and converting to monthly

    I may have missed reading something, however it seems that as the weekly forecast amounts come from the Bank Feed sheet, it would seem that the monthly summary amounts could do the same:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Taking weekly data and converting to monthly

    You have the actual daily figures in the Bank Feed sheet, why do you need to take the Weekly Forecast figures and do apportionment for weeks spanning over 2 months?

    Modifying the Weekly Forecast formula for Summary:
    =SUMPRODUCT(('Bank Feed'!$C$7:$PP$42)*('Bank Feed'!$B$7:$B$42=$B13)*('Bank Feed'!$C$2:$PP$2>=D$8)*('Bank Feed'!$C$2:$PP$2<=EOMONTH(D$8,0)))

  8. #8
    Registered User
    Join Date
    04-19-2022
    Location
    Bristol, England
    MS-Off Ver
    Professional Plus 2021
    Posts
    21

    Re: Taking weekly data and converting to monthly

    Hi JeteMc/Josephteh,

    Thanks for your responses. The reason I want to take it from the weekly forecast sheet and not the bank feed is because I will be forecasting in the weekly forecast sheet. The weekly forecast sheet will be made up of actuals from the bank feed and then forecasts from the forecast sheet (which is also weekly). I don't want to enter the forecast in the bank feed or have the forecast displayed daily.

    At the moment I have used this formula to pull the data from the weekly into the monthly... which works but it doesn't reference the criteria in col B. I have to use specific cell references for each row. Which is fine as long as they don't change.

    =SUMPRODUCT((DATE(YEAR('Weekly Forecast'!$D$8:$BD$8),MONTH('Weekly Forecast'!$D$8:$BD$8),1)=DATE(YEAR(Summary!D$8),MONTH(Summary!D$8)+1,1))*(7-'Weekly Forecast'!$D$10:$BD$10)/7*'Weekly Forecast'!$D29:$BD29)+
    SUMPRODUCT((DATE(YEAR('Weekly Forecast'!$D$8:$BD$8),MONTH('Weekly Forecast'!$D$8:$BD$8),1)=DATE(YEAR(Summary!D$8),MONTH(Summary!D$8),1))*'Weekly Forecast'!$D$10:$BD$10/7*'Weekly Forecast'!$D29:$BD29)

    James

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Taking weekly data and converting to monthly

    Since the formula displayed in post references the bank charges.
    Altering the formula as follows references the deposits so that we can see if it produces the expected result of £37,110.00:

    =SUMPRODUCT((DATE(YEAR('Weekly Forecast'!$D$8:$BD$8),MONTH('Weekly Forecast'!$D$8:$BD$8),1)=DATE(YEAR(Summary!D$8),MONTH(Summary!D$8)+1,1))*(7-'Weekly Forecast'!$D$10:$BD$10)/7*'Weekly Forecast'!$D13:$BD13)+
    SUMPRODUCT((DATE(YEAR('Weekly Forecast'!$D$8:$BD$8),MONTH('Weekly Forecast'!$D$8:$BD$8),1)=DATE(YEAR(Summary!D$8),MONTH(Summary!D$8),1))*'Weekly Forecast'!$D$10:$BD$10/7*'Weekly Forecast'!$D13:$BD13)

    The formula can be modified to read:

    =SUMPRODUCT((DATE(YEAR('Weekly Forecast'!$D$8:$BD$8),MONTH('Weekly Forecast'!$D$8:$BD$8),1)=DATE(YEAR(Summary!D$8),MONTH(Summary!D$8)+1,1))*(7-'Weekly Forecast'!$D$10:$BD$10)/7*INDEX('Weekly Forecast'!$D$13:$BD$55,MATCH($B13,'Weekly Forecast'!$B$13:$B$55,0),))+
    SUMPRODUCT((DATE(YEAR('Weekly Forecast'!$D$8:$BD$8),MONTH('Weekly Forecast'!$D$8:$BD$8),1)=DATE(YEAR(Summary!D$8),MONTH(Summary!D$8),1))*'Weekly Forecast'!$D$10:$BD$10/7*INDEX('Weekly Forecast'!$D$13:$BD$55,MATCH($B13,'Weekly Forecast'!$B$13:$B$55,0),))

    The latter yields both the expected result for cell D13 and the same amount as the formula from post #8 in cell D32.
    Let us know if you have any questions.

  10. #10
    Registered User
    Join Date
    04-19-2022
    Location
    Bristol, England
    MS-Off Ver
    Professional Plus 2021
    Posts
    21

    Re: Taking weekly data and converting to monthly

    That works. Thank you... much appreciated.

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Taking weekly data and converting to monthly

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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] converting weekly customer cohort data to monthly
    By MichaelJames652 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-06-2021, 02:00 PM
  2. Converting Gantt from weekly to monthly periods
    By LX1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-04-2021, 11:37 AM
  3. [SOLVED] Averageifs - Converting Weekly data to monthly average
    By jasman922 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-15-2019, 03:45 AM
  4. Issues converting monthly to weekly goals due to overlapping months
    By breese in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-28-2019, 02:16 AM
  5. 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
  6. easy way:Converting Weekly Data into Monthly Averages
    By Kaine in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-27-2005, 08:06 PM
  7. [SOLVED] Converting Weekly Data into Monthly Averages
    By Kaine in forum Excel General
    Replies: 2
    Last Post: 02-25-2005, 05:06 AM

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