+ Reply to Thread
Results 1 to 4 of 4

count number of months between today and a cell value?

  1. #1
    Registered User
    Join Date
    04-29-2020
    Location
    Texas
    MS-Off Ver
    Office 365
    Posts
    34

    count number of months between today and a cell value?

    On one sheet, I've got a table with multiple rows/columns, one of the columns includes cell values that may be blank or include a future date (mm/dd/yyyy).

    I've got another sheet that asks how many months before i reach that date. What would be the formula best suited for this task?

    Note, after figuring out this formula, I'll be applying a vlookup so that the row of my choice shows up on that one cell. Not relevant to what I'm asking help for.

    Sample attached

    Thanks,
    Murphy

    Edited the sample for better understanding / showing i know how to use data validate / vlookup
    Attached Files Attached Files
    Last edited by BigPapaMurf; 08-13-2020 at 01:02 AM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: count number of months between today and a cell value?

    Maybe try
    Months from today till that date.

    =DATEDIF(TODAY(),VLOOKUP($E$8,Sheet1!$I$6:$N$20,6,0),"m")

    or
    =INT(YEARFRAC(TODAY(),VLOOKUP($E$8,Sheet1!$I$6:$N$20,6,0))*12)

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: count number of months between today and a cell value?

    Try this:

    =IFERROR(DATEDIF(TODAY(),VLOOKUP($E$8,Sheet1!$I$6:$N$20,6,0),"m"),"")

  4. #4
    Registered User
    Join Date
    04-29-2020
    Location
    Texas
    MS-Off Ver
    Office 365
    Posts
    34

    Re: count number of months between today and a cell value?

    Quote Originally Posted by Bo_Ry View Post
    Maybe try
    Months from today till that date.

    =DATEDIF(TODAY(),VLOOKUP($E$8,Sheet1!$I$6:$N$20,6,0),"m")

    or
    =INT(YEARFRAC(TODAY(),VLOOKUP($E$8,Sheet1!$I$6:$N$20,6,0))*12)
    Quote Originally Posted by Phuocam View Post
    Try this:

    =IFERROR(DATEDIF(TODAY(),VLOOKUP($E$8,Sheet1!$I$6:$N$20,6,0),"m"),"")

    Those all work. Thanks!!

+ 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] Count Number of Cells that have a Value Greater than Today Inside Medium Bordered Cell
    By Cla1reb3ar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2020, 09:07 PM
  2. Trying to count values for rows with dates within 3 months of today
    By designergav in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-26-2015, 07:28 AM
  3. [SOLVED] Count number of months between two dates
    By nadeem.ansari1980 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-21-2014, 02:36 PM
  4. count number of months
    By Dariusd7 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-28-2014, 03:57 PM
  5. [SOLVED] Using COUNT(IF(... to count number of months in years
    By Abid123 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-17-2014, 11:21 AM
  6. Calculate Number of Months in between from today
    By rosarionyc in forum Excel General
    Replies: 1
    Last Post: 03-14-2011, 03:18 PM
  7. calculating number of months from today
    By JNW in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-15-2005, 05:05 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