+ Reply to Thread
Results 1 to 13 of 13

Day number in a quarter

  1. #1
    Registered User
    Join Date
    12-14-2016
    Location
    CHENNAI
    MS-Off Ver
    2013
    Posts
    4

    Day number in a quarter

    I need to find the day number in a quarter.
    eg: for quarter 2, the number should be 1-90 starting from the first day
    of the quarter.

    Please guide as to how it can be done.

    Thanks in advance.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Day number in a quarter

    What are the dates of your quarters? 90 x 4 = 360 - what about the other five days of the year?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,913

    Re: Day number in a quarter

    Hi welcome to the forum,

    Please attach a sample excel file with expected result
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    12-14-2016
    Location
    CHENNAI
    MS-Off Ver
    2013
    Posts
    4

    Re: Day number in a quarter

    suppose i want to find the day number of the quarter for the year 2010.

    I am actually creating a time dimension and i need to have data from 2010-2017
    and for me one of the column is daynumberinquarter.

    I am not able to think of a formula which will help me achieve this.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Day number in a quarter

    Nor shall we be able to think of a formula for you unless you answer our questions. Once again, what are the dates of your quarters? If they are 90 days each, what happens with the remaining 5 days of the year?

  6. #6
    Registered User
    Join Date
    12-14-2016
    Location
    CHENNAI
    MS-Off Ver
    2013
    Posts
    4

    Re: Day number in a quarter

    Quote Originally Posted by AliGW View Post
    Nor shall we be able to think of a formula for you unless you answer our questions. Once again, what are the dates of your quarters? If they are 90 days each, what happens with the remaining 5 days of the year?
    1/1/2010-3/31/2010- quarter1- total no. of days=90
    4/1/2010-6/30/2010- quarter2- total no. of days=91
    7/1/2010-9/30/2010- quarter3- total no. of days=92
    10/1/2010-12/31/2010- quarter4- total no. of days=92

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,913

    Re: Day number in a quarter

    Quote Originally Posted by tanuja.naik View Post
    1/1/2010-3/31/2010- quarter1- total no. of days=90
    4/1/2010-6/30/2010- quarter2- total no. of days=91
    7/1/2010-9/30/2010- quarter3- total no. of days=92
    10/1/2010-12/31/2010- quarter4- total no. of days=92
    It gives better idea if you attached a sample excel file with your data and expected result

  8. #8
    Registered User
    Join Date
    12-14-2016
    Location
    CHENNAI
    MS-Off Ver
    2013
    Posts
    4

    Re: Day number in a quarter

    Quote Originally Posted by nflsales View Post
    It gives better idea if you attached a sample excel file with your data and expected result
    I am new to the forum. Can you please guide me on how to attach the excel. I am unable to attach any file.

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,913

    Re: Day number in a quarter

    Attach A File.jpg
    see the picture

  10. #10
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Day number in a quarter

    click on "Go Advanced"
    In Attachment : click on "Manage Attachments"
    >click on choose file & select your file from respective folder > click on "open"
    >click on upload
    >close this window


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Day number in a quarter

    This can be done with a lookup table (you will need to extend this to encompass the years you want to include - you don't need the numbers in column B, which I have there merely as a reference):

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    1
    01/01/2010
    90
    42
    13/05/2010
    2
    01/04/2010
    91
    3
    01/07/2010
    92
    4
    01/10/2010
    92
    Sheet: Sheet1

    Excel 2016 (Windows) 32 bit
    D
    1
    =E1-VLOOKUP(E1,$A$1:$B$4,1,1)
    Sheet: Sheet1

  12. #12
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Day number in a quarter

    Dear tanuja Naik, I attach, my one of file which will help for you.
    Since as per date column "A", i have calculated weekday as : In column "B2" =TEXT(A2,"aaaa")
    Also calculated number of weekday & quarter, in "C" & "D" column respectively.
    All calculation base on date.
    Attached Files Attached Files
    Last edited by avk; 12-14-2016 at 04:48 AM. Reason: Addition details add

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Day number in a quarter

    @avk - Sorry for off-topic interjection:

    Although there is no official rule regarding this behaviour, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Thanks again for all your hard work here!

+ 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] Find month number in quarter
    By amphinomos in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-15-2015, 12:59 PM
  2. Count number of days in a quarter
    By Darkpork in forum Excel General
    Replies: 3
    Last Post: 07-16-2010, 05:22 AM
  3. Compute number of days per quarter
    By refstone in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-07-2008, 03:11 PM
  4. Average Number of Days in a Quarter
    By dvent in forum Excel General
    Replies: 11
    Last Post: 11-16-2007, 05:23 AM
  5. Replies: 1
    Last Post: 07-07-2005, 04:00 PM
  6. Replies: 3
    Last Post: 06-11-2005, 06:05 PM
  7. Rounding number to the nearest quarter
    By Dajana in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2005, 10:06 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