+ Reply to Thread
Results 1 to 7 of 7

First day of the week started from last year

  1. #1
    Registered User
    Join Date
    12-06-2010
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    First day of the week started from last year

    Hi,

    I have a situation in here. Our first day of 2019 started on 12/31/2018. I had data for the whole year of 2019 with the start date as 12/31/2018. So, when I group the date on pivot table, Excel group the 12/31/2018 as 4th quarter. Is there anything I can do to make excel recognize this is all 2019 data and our start day started on 12/31/2018?

    Thanks for your help.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: First day of the week started from last year

    I would add a column to my raw data with a header like "Fiscal Year" with a formula like this, where A1 is the data for that row

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then in your pivot table add the field Fiscal Year and filter on that. Do not use the built-in grouping. Do you need it by quarter, or just by year? If by quarter, how do you define your quarters?

    There might be fancier way but that's the first thing that occurred to me.

    I'd be curious about what you are doing. At my company our timesheet periods are by week, but all of our accounting is based on the calendar year. They have to do a little footwork for that one week of the year where the week is split between two fiscal years, but everything else becomes a lot easier.

  3. #3
    Registered User
    Join Date
    12-06-2010
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: First day of the week started from last year

    Hello,

    Thank you for your reply. I will test out the formula you provided and let you know if it works. I do remember I have seen a youtube tutorial on this subject when the first day of the year overlapped with last year and there is a calculation of it. However, I didn't save that video. :-(

    Well, I don't know our company calendar but I do know that we use weekly to keep track the shipping and receiving data. So, when first week of the year of 2019 started 12/31/2018, that's all I know. I mean, I can just use the calendar year to do the quarterly analysis; however, that doesn't seem right to me. Do you understand what I mean?

  4. #4
    Registered User
    Join Date
    12-06-2010
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: First day of the week started from last year

    Quote Originally Posted by 6StringJazzer View Post
    I would add a column to my raw data with a header like "Fiscal Year" with a formula like this, where A1 is the data for that row

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then in your pivot table add the field Fiscal Year and filter on that. Do not use the built-in grouping. Do you need it by quarter, or just by year? If by quarter, how do you define your quarters?

    There might be fancier way but that's the first thing that occurred to me.

    I'd be curious about what you are doing. At my company our timesheet periods are by week, but all of our accounting is based on the calendar year. They have to do a little footwork for that one week of the year where the week is split between two fiscal years, but everything else becomes a lot easier.
    Hi There,
    I've just tested the formula and it return the year; however, it won't help me group as quarter. I've attached two photos so you can see what I mean.
    Attached Images Attached Images

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: First day of the week started from last year

    A screen shot is better than a photo, and attaching the actual file is better than a screen shot. Please see yellow banner at the top of the page.

  6. #6
    Registered User
    Join Date
    12-06-2010
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: First day of the week started from last year

    I understand but this is from my company and it's restricted. That's why I use the photo. Thanks.

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

    Re: First day of the week started from last year

    Perhaps something like the following will help:
    Dates are listed in column A
    Weeks are listed in column B using: =IF(B1="Week",1,IF(MOD(IF(WEEKDAY(A2)=WEEKDAY(A$2),SUM(B1,1),B1),52)=0,52,MOD(IF(WEEKDAY(A2)=WEEKDAY(A$2),SUM(B1,1),B1),52)))
    Quarters are listed in column C using: =ROUNDUP(B2/13,0)
    The pivot table uses values from the Quarters column.
    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.

+ 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. VBA: Need to create reusable spreadsheet to track data per week for each week of year
    By TiffanieB in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-07-2018, 04:35 AM
  2. Replies: 3
    Last Post: 04-07-2018, 04:02 AM
  3. Replies: 5
    Last Post: 04-11-2017, 09:23 AM
  4. [SOLVED] Macro that displays all the weeks between Start Week and End Week (ends in next year)
    By Tona in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-31-2014, 05:38 AM
  5. Replies: 1
    Last Post: 02-01-2014, 09:34 PM
  6. Replies: 7
    Last Post: 09-18-2012, 11:33 AM
  7. Replies: 3
    Last Post: 09-17-2012, 01:03 PM

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