+ Reply to Thread
Results 1 to 4 of 4

Find days between days, but including the starting date.

  1. #1
    Registered User
    Join Date
    02-23-2015
    Location
    texas
    MS-Off Ver
    MAC OSX
    Posts
    30

    Find days between days, but including the starting date.

    We travel at work, and crossing midnight counts as an additional day.

    We are not basing this on 24:00 hrs passing.

    I've tried datedif, days360, etc.

    I need to simple count--including the calendar day I started--how many "calendar" days I've touched.


    Now, to make it more annoying, the cells are formatted to show the clock times as well, BUT that's for something else.

    So, here's the example:

    4/1/15 18:00 to 4/2/15 00:30. It's 6 1/2 hours, but for my purposes it counts as two calendar days.

    Can someone give me a hand?

    Thanks as always.


    J

  2. #2
    Registered User
    Join Date
    03-18-2015
    Location
    Windsor, England
    MS-Off Ver
    2013
    Posts
    13

    Re: Find days between days, but including the starting date.

    How about something like:

    =DAY(B1)-DAY(A1)+1

    With first date and time in A1 and second in B1...

    HTH

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Find days between days, but including the starting date.

    Quote Originally Posted by GaryBarlow View Post
    =DAY(B1)-DAY(A1)+1
    That could be problematic if the dates span seperate months.

    Try
    =INT(B1)-INT(A1)+1

  4. #4
    Registered User
    Join Date
    02-23-2015
    Location
    texas
    MS-Off Ver
    MAC OSX
    Posts
    30

    Re: Find days between days, but including the starting date.

    Quote Originally Posted by Jonmo1 View Post
    That could be problematic if the dates span seperate months.

    Try
    =INT(B1)-INT(A1)+1

    This seems to be working fine. Thanks to everyone for helping out.

+ 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: 10
    Last Post: 02-29-2024, 08:55 AM
  2. [SOLVED] To calculate number of days including start date
    By gautham_p in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 05-11-2016, 10:47 AM
  3. Replies: 14
    Last Post: 04-06-2015, 09:19 PM
  4. Counting number of days, including start date, without using +1
    By Crappy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-07-2014, 05:05 AM
  5. excel formula: days remaining=end date-todays date+extention days
    By fsprings in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-04-2013, 06:45 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