+ Reply to Thread
Results 1 to 11 of 11

Formula that adds up WEEKLY, MONTH & YTD data from my table

  1. #1
    Registered User
    Join Date
    11-23-2023
    Location
    Yorkshire, England
    MS-Off Ver
    Office 365
    Posts
    22

    Formula that adds up WEEKLY, MONTH & YTD data from my table

    Good Afternoon and Happy New Year to all Users & Mods.

    I appreciate this is a tall task, but I need help with calculating, WEEKLY, MONTH and YEAR to date figures from my data table.

    The data table is 365 columns across, from 1st Jan through to 31st December, and the scored for each of the 6 teams are input daily on a Monday through Friday.

    I would like to track the totals and averages in a mini table below the data table.

    These would be :


    Totals for this week so far (The Active Week)

    The average figure for the week so far.

    ----

    Totals for last week so far (The Previous Week)

    The average figure for that week.

    ----


    Totals for this month so far (The Active Month)

    The average figure for the month so far, based on how many work days have gone by.

    ----

    Totals for last month (The previous Month)

    The average figure for the month, based on how many work days in the month.

    ----

    Year to Date totals

    Average figures for the Year based on the number of work days so far

    Average figures for the Year based on the number of work weeks so far

    Average figures for the Year based on the number of worked months so far

    ----

    I have input the figures manually (pink squares), looking for an adaptive formula that can scope the entire year, but just show the data requested.

    Can you help?

    Points to note :

    Very rarely does anything get done on a Sat or Sun, we have to have columns for their figures if and when it happens, but we do not count this as an official work day. Any figures over the weekend, in the totals table, are added to Mondays. So 5 jobs on Saturday, and 10 jobs on Monday, would be 15 for the week, with the weekly average also been 15, 15 divided by 1 work day, not 2 work days etc.

    I do have a count of the number of bank holidays COMPLETED so far, this is in A2. If a day is a BH we annotate it with a BH in row 1. These do NOT count as Workdays


    Hope you can help.

    Many thanks,

    Rich
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Formula that adds up WEEKLY, MONTH & YTD data from my table

    In the YTD column, how do you determine the number of weeks and months? In your example, it's week 3, but you count the number of weeks as 2.

    If today's date is 01-Feb, will you count the number of months as 1 or 2?

  3. #3
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Formula that adds up WEEKLY, MONTH & YTD data from my table

    Try these formulas:
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-23-2023
    Location
    Yorkshire, England
    MS-Off Ver
    Office 365
    Posts
    22

    Re: Formula that adds up WEEKLY, MONTH & YTD data from my table

    Hi Joseph,

    Thank you very much for looking at my work, and taking time to comment.

    Good Question.

    In the example, I was trying to be clever. Technically the 15th Jan is in the 3rd week.
    What I thought would be more realistic is if I actually tried to calculate how many actual work weeks there were, so I could compare the averages with the weekly averages.
    I was using a formula that counted the number of WORK days from the start of the year to the 15th, which is 11, and then took one away for the bank holiday.
    This left 10 days, which was equates to 2 weeks. As the days went on, the figure would increase so on Thursday 16th the weekly would be 2.14.

    Maybe I was trying to be too clever here, but I am happy to go with 3 if that makes it easier. After all this would be the 3rd week, so I am perfectly happy with that.

    Considerering your second question, this has highlighted to me that I was trying to be too smart above.

    If the date is Feb 1st then it would be Month 2. (Having thought about it, it makes sense to use the actual Months and weeks, so your suggestion above is better.)
    If I used my logic that I started off with, the Month would equate to 1 month plus 1 day out of 30, and I can see how complicated that would get.

    At the end of the day, I want it to be easy to read and understand, so yes, in answer to your question it would be Week 3 and Month 2.

    Thank you very much for your help.

    Cheers

    Rich

  5. #5
    Registered User
    Join Date
    11-23-2023
    Location
    Yorkshire, England
    MS-Off Ver
    Office 365
    Posts
    22

    Re: Formula that adds up WEEKLY, MONTH & YTD data from my table

    THANK YOU !

    This has saved me from further sleepless nights. I can't thank you enough for the help you have given me in responding with the completed spreadsheet.

    I am working through your formula's to understand and educate myself for the future, so this is very much appreciated.

    Cheers

    Rich

  6. #6
    Registered User
    Join Date
    11-23-2023
    Location
    Yorkshire, England
    MS-Off Ver
    Office 365
    Posts
    22

    Re: Formula that adds up WEEKLY, MONTH & YTD data from my table

    Joseph - I'm curious, you use "<>S*" in your COUNTIF formula as the final criteria, what does this do ?

  7. #7
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Formula that adds up WEEKLY, MONTH & YTD data from my table

    Based on 3 weeks and 1 month:
    Average per WEEK: =IF(N14=0,0,N14/WEEKNUM($B$11,16))
    Average per MONTH: =IF(N14=0,0,N14/MONTH($B$11))

  8. #8
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Formula that adds up WEEKLY, MONTH & YTD data from my table

    "<>S*" to exclude Sat and Sun. "*" is a wild card character.

  9. #9
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Formula that adds up WEEKLY, MONTH & YTD data from my table

    You could use "<>S??" also. "*" indicates any number of characters (can be 1, 2, 3 or more), while "?" is a single character.

  10. #10
    Registered User
    Join Date
    11-23-2023
    Location
    Yorkshire, England
    MS-Off Ver
    Office 365
    Posts
    22

    Re: Formula that adds up WEEKLY, MONTH & YTD data from my table

    Thank you so much for that clear explanation, many thanks Joseph

  11. #11
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Formula that adds up WEEKLY, MONTH & YTD data from my table

    You are welcome.

+ 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. Replies: 0
    Last Post: 09-08-2023, 02:35 PM
  2. Weekly Payment End Date (based on 4 weekly payments per month)
    By Pooger in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-19-2022, 11:36 AM
  3. Formula / Table pulling weekly data to compare daily data
    By MatrixFX in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-16-2020, 02:04 PM
  4. [SOLVED] Formula for Days of week & also picking up data automatically in month sheet from weekly
    By IamanExcelNerd in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-02-2019, 03:14 AM
  5. Pivot Table: Group by month splits weekly results
    By kingofcamden in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-05-2018, 04:58 PM
  6. Replies: 0
    Last Post: 12-22-2011, 03:42 PM
  7. Replies: 9
    Last Post: 01-13-2011, 04:04 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