+ Reply to Thread
Results 1 to 6 of 6

Subtracting a Date from a Date?

  1. #1
    Registered User
    Join Date
    09-26-2017
    Location
    London, England
    MS-Off Ver
    Mac 2016
    Posts
    26

    Subtracting a Date from a Date?

    Hi,

    =SUM(J6-A2)

    Column J = A list of different Expiry Dates from 2016 (Expired) to 2020 (Expiring in 3 years).

    A2 = Today's Date formula "=TODAY()".

    So with this list of numbers showing the number of days until each contract expires, I'd like to do an =IF statement that breaks these down into groups ie. Expired, Expiring in <1 Month, Expiring in <3 Months, Expiring in +1 year. How can I do this?

  2. #2
    Registered User
    Join Date
    09-26-2017
    Location
    London, England
    MS-Off Ver
    Mac 2016
    Posts
    26

    Re: Subtracting a Date from a Date?

    Instead of the "Expiring In" column showing numbers, I'd love to somehow show groupings ie. "Expired", "Expiring in <1 Month" etc.

    Screen Shot 2017-10-06 at 16.51.44.png

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Subtracting a Date from a Date?

    Hi,

    One way

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


    Then the logical next step is to create a Pivot Table so that you can quickly view different layouts.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    09-26-2017
    Location
    London, England
    MS-Off Ver
    Mac 2016
    Posts
    26

    Re: Subtracting a Date from a Date?

    That is fantastic Richard, thank you very much!

    Would I be able to add 1 more thing into this formula:
    In some cases, the Expiry Date cells state "Autorenew" instead of a date, which means I can ignore it. In these cases, could you make the formula cell also state "Autorenew" or is this too may arguments?

    So the groups would be:
    Expired
    < 1 Month
    < 3 Months
    + 1 Year
    Autorenew

    If this isn't possible then not to worry, and thanks again for your help sir!

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Subtracting a Date from a Date?

    Perhaps

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

  6. #6
    Registered User
    Join Date
    09-26-2017
    Location
    London, England
    MS-Off Ver
    Mac 2016
    Posts
    26

    Re: Subtracting a Date from a Date?

    Amazing! - thank you so much !!! enjoy your weekend !!!

+ 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] Subtracting [Date/Time] from another [date/time] formatted differently
    By jonvon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-09-2017, 04:15 PM
  2. Date subtracting a date = months?
    By Skrachz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-24-2013, 10:52 PM
  3. Subtracting from a date
    By amartino44 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-24-2013, 05:17 PM
  4. Subtracting one date & time from another
    By Fran Habbitts in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-25-2012, 09:45 AM
  5. Replies: 2
    Last Post: 06-06-2012, 02:07 PM
  6. Excel 2007 : Subtracting date
    By operat01 in forum Excel General
    Replies: 1
    Last Post: 10-13-2008, 12:57 PM
  7. Subtracting date and time
    By hanberry in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-24-2007, 04:27 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