+ Reply to Thread
Results 1 to 3 of 3

Formula to find most recent oil change date, then compare it to current date

  1. #1
    Forum Contributor
    Join Date
    05-16-2007
    Location
    USA
    MS-Off Ver
    MS Office 2016, Excel 2016
    Posts
    214

    Formula to find most recent oil change date, then compare it to current date

    I'm trying to write a formula that will search the range of D6:D200 for the word "Oil Change". Then when it is found, search the range of A6:A200 for the most recent date that is in the same row as the word "Oil Change", which then compares this date with the current date, letting me know if I'm way over due or not.

    Or would this be more efficient if the date is searched first, then the string "Oil Change"? I'm guessing it probably doesn't make much difference.


    Thank you
    Mike

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Formula to find most recent oil change date, then compare it to current date

    Hi,
    please post a sample in excel. Look at the yellow banner at the top of the page for more instructions. Thanks.

  3. #3
    Forum Contributor
    Join Date
    05-16-2007
    Location
    USA
    MS-Off Ver
    MS Office 2016, Excel 2016
    Posts
    214

    Re: Formula to find most recent oil change date, then compare it to current date

    Quote Originally Posted by belinda200 View Post
    Hi,
    please post a sample in excel. Look at the yellow banner at the top of the page for more instructions. Thanks.
    I figured it out by using this formula: =MAXIFS($A$6:$A$200,$D$6:$D$200,"Oil Change")

    I was trying to do it using vlookup, Search, and Index, etc, then found the MaxIfs, which worked perfectly.

+ 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. Find Most Recent Start Date in a List of Date Ranges
    By vsg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-15-2020, 04:58 PM
  2. Replies: 2
    Last Post: 09-10-2019, 10:42 PM
  3. Need to find recent values using date and compare two cells
    By Prabakaran3003 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-13-2019, 10:21 AM
  4. Change formula from current date to specific date..
    By BenGee in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-30-2015, 01:21 PM
  5. [SOLVED] Formula to Find the Most Recent Date, and Then Return the Corresponding Cell
    By bssol in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-26-2013, 04:12 AM
  6. Replies: 1
    Last Post: 10-21-2012, 05:03 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