+ Reply to Thread
Results 1 to 4 of 4

Number of days in a fiscal year

  1. #1
    Forum Contributor
    Join Date
    09-15-2012
    Location
    las vegas
    MS-Off Ver
    excel 2007
    Posts
    147

    Number of days in a fiscal year

    I'm looking for a function that will allow me to know how much days in a fiscal year there is covered under a date range.

    For example in my sheet, I have fiscal year 2016 with start date on 10/1/2015 (cell B2) and end date on 09/30/2016 (cell C2). I have a date range of 01/01/2015 (B4) and 01/01/2016 (C4). The result is in cell B6.

    What I am trying to find out is a function that will show me HOW MANY DAYS in 01/01/2015 - 01/01/2016 fall under 10/01/2015 - 09/30/2016. In the example, the number of days is 92 days.

    Thanks in advance for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Number of days in a fiscal year

    Try this...

    =MAX(0,MIN(C2,C4)-MAX(B2,B4))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor
    Join Date
    06-30-2015
    Location
    Netherlands
    MS-Off Ver
    2013 / 2016 / 365
    Posts
    145

    Re: Number of days in a fiscal year

    The outcome of your example (and biff's answer for that matter) has me confused.

    Yes, the outcome of Biff's formula is 92 days but the number of overlapping days from my point of view is 93.
    I asume it has something to do with missing to count the first- and last day of the period.

    My formula would be =MAX(0,MIN(C2,C4)-MAX(B2,B4)+1)

    did i miss or overlooked something ?
    HtH,

    Joris

    --------------------------------------------------------------------------------
    If you found my answer helpful, please hit the Like or Thank button.

    Please follow the forum Rules and Guidelines and use Code tags around your VBA code.

    Remember: test VBA code always on a copy of your file because usually you can't use undo

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Number of days in a fiscal year

    Quote Originally Posted by joris moerings View Post
    Yes, the outcome of Biff's formula is 92 days but the number of overlapping days from my point of view is 93.

    My formula would be =MAX(0,MIN(C2,C4)-MAX(B2,B4)+1)
    That's the formula/outcome I got but I removed the +1 as the OP said they expected the result to be 92.

+ 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. Calculate week number for Fiscal Year Dates
    By katie_10042 in forum Excel General
    Replies: 16
    Last Post: 02-14-2017, 05:58 AM
  2. [SOLVED] Trying to return the week number of dates in a fiscal year
    By NedFlanders in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-03-2013, 09:16 PM
  3. Calculate week number for Fiscal Year Dates
    By Ginu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2013, 03:10 PM
  4. Number to Fiscal Year Date?
    By excellenthelp in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-07-2013, 03:42 PM
  5. [SOLVED] Need to count business days in a date range with results grouped by fiscal year
    By PaulStamper in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-07-2013, 11:46 AM
  6. how to convert date to fiscal year if fiscal year start at 16th or 17th of July
    By sushil shakya in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-28-2013, 03:32 AM
  7. [SOLVED] Macro to Return Net Work Days by Fiscal Year
    By boldcode in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-07-2013, 08:32 PM
  8. Calculating the Quarter Number for Calendar and Fiscal Year
    By ExcelTip in forum Tips and Tutorials
    Replies: 1
    Last Post: 04-02-2007, 05:03 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