+ Reply to Thread
Results 1 to 4 of 4

Choose Latest Date and Number of Month Criteria for Future Date

  1. #1
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    Choose Latest Date and Number of Month Criteria for Future Date

    Hi all

    I have been racking my brain on how to do this, or at least fit it into one formula. In the Table below, I want in column D to calculate a future date based on criteria and picking the latest date out of column A & B. The future date needs to be in either 24 or 15 months based on whether Column C shows 24 or 15. See below.

    Capture.GIF

    So basically Column D (in the above example) would use Date 2 because it's the latest date and would calculate what the date would be in 24 months. However, if Date 1 was a later date for example 02/02/2017, it would ignore Date 2 and use Date 1 and if column C said 15 months it would calculate at 15 months instead of 24.

    I hope this makes sense. Any help would be greatly appreciated.

    Thanks all!
    Last edited by ShakJames; 02-07-2017 at 12:32 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,372

    Re: Choose Latest Date and Number of Month Criteria for Future Date

    try

    =IF(A1>B1,DATE(YEAR(A1),MONTH(A1)+C1,DAY(A1)),DATE(YEAR(B1),MONTH(B1)+C1,DAY(B1)))

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,446

    Re: Choose Latest Date and Number of Month Criteria for Future Date

    Hi,

    Does this work for you?

    =DATE(YEAR(MAX(A1:B1)),MONTH(MAX(A1:B1))+C1,DAY(MAX(A1:B1)))
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    Re: Choose Latest Date and Number of Month Criteria for Future Date

    Hi both...

    John, thank you for all your help again! That's worked brilliantly. It really is appreciated.

    Sweep - I have not tried yet, but I will do. Thanks for your post as well.
    Last edited by ShakJames; 02-07-2017 at 12:37 PM.

+ 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. Latest Date in Any Month
    By andrewc in forum Excel General
    Replies: 9
    Last Post: 08-11-2015, 05:51 AM
  2. Replies: 8
    Last Post: 04-08-2015, 10:10 PM
  3. [SOLVED] Month View Control to locate future date (Or Red Circle)
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-07-2014, 12:23 PM
  4. How to convert date to number when you chose text
    By hazemrezo in forum Excel General
    Replies: 4
    Last Post: 10-06-2013, 09:26 AM
  5. Copy latest date of every month from a column in excel 2007
    By rt99 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-07-2013, 11:49 AM
  6. Replies: 4
    Last Post: 07-05-2011, 12:10 PM
  7. Replies: 7
    Last Post: 11-16-2008, 05:48 PM

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