+ Reply to Thread
Results 1 to 4 of 4

Find the date position between two dates. TRICKY.

Hybrid View

  1. #1
    Registered User
    Join Date
    11-06-2018
    Location
    London
    MS-Off Ver
    2013
    Posts
    1

    Find the date position between two dates. TRICKY.

    Hi,

    Trying to solve something which seems simple, however, I can't quite get there!

    I need a formula to find the position of a date between two dates.

    Example:

    Date Range: 16/11/2018 - 27/11/2018

    I would like 17/11/2018 to return '2', 18/11/2018 to return '3'.

    Is this even possible?

  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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,693

    Re: Find the date position between two dates. TRICKY.

    Welcome to the forum!

    You need to look at the DATEDIF function. Is the date range all in one cell?
    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 Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Find the date position between two dates. TRICKY.

    Hello and welcome to the forum.

    With 16/11/2018 in A2, 27/11/2018 in B2, and 17/11/2018 in D2, try this:

    =D2-A2+1

  4. #4
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,693

    Re: Find the date position between two dates. TRICKY.

    If the range is in one cell (A1) and the other date in A5, try this:

    =DATEDIF(LEFT(A1,10),A5,"d")+1

+ 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] Tricky dates
    By Mangorni in forum Excel General
    Replies: 14
    Last Post: 06-14-2018, 09:31 AM
  2. Compare dates from strings and then find first date greater than a date
    By caabdul in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2018, 11:44 PM
  3. Replies: 5
    Last Post: 01-16-2014, 11:51 AM
  4. Replies: 0
    Last Post: 05-30-2013, 07:50 PM
  5. Replies: 1
    Last Post: 04-04-2012, 08:21 AM
  6. Replies: 8
    Last Post: 02-27-2009, 06:06 PM
  7. Replies: 2
    Last Post: 06-26-2006, 12:25 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