+ Reply to Thread
Results 1 to 6 of 6

Year over Year - Dealing with Weekly data

  1. #1
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Year over Year - Dealing with Weekly data

    This is a weird question that I don't know if it particularly pertains to charts and stuff but I was not sure where to ask it.

    I am making a huge report that is Year over Year and it has weekly data for many attributes. I've gotten the pivot table, chart, etc all figured out - the only thing I am stuck on because I have not done full year over year data before is how to handle the "weeks" without losing some of the data between years.

    For example in my mock up project I was just using the =WEEKNUM formula based on the date to give me week numbers for my data sets. I used this in all my reports based on date so it would be uniform, so that is working. But what happens is at the end of a year because years/months end in the middle of weeks is there is usually a weird fall off for January where week one has only 2 or 3 days and so that week one has low values for all the attributes.

    Is there some proper way to handle this or do you just deal with it knowing that first week is an "anomaly"? I assumed there was some kind of method to include data from the previous years last week into that first week but that would not be accurate either so maybe you are just supposed to deal with that strangeness.

    Sorry for such an odd question, if there is a better forum for this pls do move the post =D

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Year over Year - Dealing with Weekly data

    Hi,

    I think you can't break out the week number as a separate column and expect Excel to know which year it is from. I'd guess you did this. You need to graph/chart using the full date cell instead of trying to use the Week (only) cells. If my guess is wrong then supply a short example so we can understand the problem a bit better.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,394

    Re: Year over Year - Dealing with Weekly data

    NewYears,

    Answer depends on what the End User wants?
    I've had client who "split" first and last weeks (e.g. Week 1 is "Total of 'equal to, or more than, whatever day 1 Jan is', and 'less than or equal to whenever the Saturday is' (assuming your weeks are Sun - Sat?)
    Others have included days outside the Calendar year, and accepted that means "Double Counting".

    Ochimus

  4. #4
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Re: Year over Year - Dealing with Weekly data

    Quote Originally Posted by Ochimus View Post
    NewYears,

    Answer depends on what the End User wants?
    I've had client who "split" first and last weeks (e.g. Week 1 is "Total of 'equal to, or more than, whatever day 1 Jan is', and 'less than or equal to whenever the Saturday is' (assuming your weeks are Sun - Sat?)
    Others have included days outside the Calendar year, and accepted that means "Double Counting".

    Ochimus
    Yeah that's kinda what I was hinting at. Right now the project I am working on is a proof of concept. It's a huge dashboard line graph (PivotChart) that has a ton of different data in it based on weekly numbers and is year over year.
    The issue is using the =WEEKNUM function in Excel I actually get weeks 1-53. Week one is usually just Jan 1 and 2 as you stated. So the graph is GREAT except the start and end of the year is "wonky"
    I need to consider doing what you just stated just have to figure out how to do it.

    Right now I have 6 different reports that poll different types of data and one of hte issues is some of these reports use different week formats (IE Google report might be Friday - Sunday, while another may be Sunday-Sat).
    That's why I for now I used WEEKNUM based on the date so that at least all the data lines up universally, the only weird thing is there's one report where someone else presets the weeknumbers already and they use a Mon-Friday..so it kind of messes up that data.

    All new to me - been fun process just some wonkiness. Would be nice if the calendar weeks were always Sun-Sat and we just had exactly 4 weeks in a month - lol.

  5. #5
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,394

    Re: Year over Year - Dealing with Weekly data

    NewYears,

    Just caught up with your last post. If you can get back to the 'actual' dates the different reports use as the week's span, you can use the Macro to standardise them all to whatever weekly format you want.

    Be interesting, of course, if you have a Middle Eastern operation where Sat - Wed are working days whilst Europe and the States run Mon - Fri!

    Ochimus

  6. #6
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Re: Year over Year - Dealing with Weekly data

    THIS IS SUCH A STRUGGLE lol.

    I don't know how to handle this properly. If I use =WEEKNUM for my weeks I end up where Week 1 starts in the middle of the week - if I use ISOWEEKNUM then I have a week 53 from the previous year including the first few days of this year..but it will show a week 53 in my charts when week 53 hasn't happened yet.

    Lol I can't even explain this properly but I am lost at how to solve this.

    Quote Originally Posted by Ochimus View Post
    NewYears,

    Just caught up with your last post. If you can get back to the 'actual' dates the different reports use as the week's span, you can use the Macro to standardise them all to whatever weekly format you want.

    Be interesting, of course, if you have a Middle Eastern operation where Sat - Wed are working days whilst Europe and the States run Mon - Fri!

    Ochimus


    We are in the states, our work week is Technically Mon-Friday but we are open all week since we are a website. So I was just using Sun-Sat. but I always end up with erroneous data at the beginning and end of year. It's stressing me out.

    This data set is nearly a million rows, and I have like 8 tabs of Pivot Tables and my Dashboard I want to be able to filter by dates, months, days, weeks etc.
    Another chart I have is a Year over Year one that has 2019 and 2021 and Weeks 1 and 52/53 always look all whack because of the way years begin and end..it's really got me clueless in how to solve the issue.
    Last edited by NewYears1978; 09-15-2021 at 04:59 PM.

+ 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] countifs to find the total count between this year and last year for series of data
    By maher2014 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2016, 02:39 AM
  2. Chart to compare bi weekly amount, this year vs last year
    By sleepyjim in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-31-2016, 05:57 AM
  3. Automatically update year interval cycles from year to year
    By trumptight in forum Word Programming / VBA / Macros
    Replies: 8
    Last Post: 08-21-2014, 10:38 PM
  4. [SOLVED] Copy Data from different sheets weekly into a master list with data of the whole year
    By ec4excel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-12-2014, 10:37 AM
  5. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  6. Dealing with Leap Year
    By frankday in forum Excel General
    Replies: 1
    Last Post: 09-30-2012, 03:22 PM
  7. Replies: 1
    Last Post: 08-18-2010, 02:43 AM

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