+ Reply to Thread
Results 1 to 7 of 7

Vlookup formula for dates please help

  1. #1
    Forum Contributor
    Join Date
    02-04-2015
    Location
    Dallas,Texas
    MS-Off Ver
    excel 2013
    Posts
    191

    Vlookup formula for dates please help

    hello,

    I am trying find a formula that will compare Column D and W and if column W is ONLY 1 month past the date in column W I want it to highlight or make some mark in Column W. I am trying to eliminate the manual work here can someone please help me?

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,792

    Re: Vlookup formula for dates please help

    I am trying find a formula that will compare Column D and W and if column W is ONLY 1 month past the date in column W I want it to highlight or make some mark in Column W
    did you mean D

    do you just want to compare the ROW
    or will D2 date be compared to the entire column W
    then D3 compared to entire column W ?
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    02-04-2015
    Location
    Dallas,Texas
    MS-Off Ver
    excel 2013
    Posts
    191

    Re: Vlookup formula for dates please help

    Quote Originally Posted by etaf View Post
    did you mean D

    In column D are the dates always the same?
    In Column D, the dates are changing.

    Column W is where I want a "markup" or highlight to occur if column W date is only 1 month past due from column D date for example

    Column D Column W

    1/20/15 02/01/15
    01/05/15 01/07/15
    11/01/14 12/01/14

    All these dates would be highlighted because they are exactly 1 month over. So if its 2 or 3 months over they wont be highlighted.

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Vlookup formula for dates please help

    Hi

    Use conditional formating with the formula =OR(W2-D2<31,AND(W2-D2=31,MOD(MONTH(D2),12)+1=MONTH(W2)))

    Regards

  5. #5
    Forum Contributor
    Join Date
    02-04-2015
    Location
    Dallas,Texas
    MS-Off Ver
    excel 2013
    Posts
    191

    Re: Vlookup formula for dates please help

    Quote Originally Posted by José Augusto View Post
    Hi

    Use conditional formating with the formula =OR(W2-D2<31,AND(W2-D2=31,MOD(MONTH(D2),12)+1=MONTH(W2)))

    Regards
    Hi I tried your formula for Column W and I am getting TRUE for all values which is not right because some dates the 1 month over is not true some of them are 2 months over and it was marking true

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Vlookup formula for dates please help

    Try this:
    Select column W then go to Conditional Formatting, New Rule, Use Formula... and enter this formula in the formula field:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Format with the formatting of your choice. OK OK, Apply. Close.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  7. #7
    Forum Contributor
    Join Date
    02-04-2015
    Location
    Dallas,Texas
    MS-Off Ver
    excel 2013
    Posts
    191

    Re: Vlookup formula for dates please help

    Quote Originally Posted by newdoverman View Post
    Try this:
    Select column W then go to Conditional Formatting, New Rule, Use Formula... and enter this formula in the formula field:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Format with the formatting of your choice. OK OK, Apply. Close.

    Perfect Thanks so much!!

+ 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] Creating a formula to populate range of cells between dates based on start and end dates
    By Rainmain82 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-20-2014, 07:42 PM
  2. Replies: 1
    Last Post: 06-14-2014, 02:01 AM
  3. [SOLVED] Vlookup dates between two dates and count the number of days
    By nishikanth in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-28-2013, 03:25 AM
  4. using VLOOKUP or similar formula to retrieve dates from multiple cells
    By Ducklet64 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-15-2013, 10:10 PM
  5. Check dates in range either same dates or different dates by formula
    By breadwinner in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-12-2013, 07:42 AM
  6. Creating Vlookup formula to aveage between two dates
    By MROMAR in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-18-2013, 07:22 AM
  7. VLOOKUP & Dates: Why is this Formula working?
    By Ali in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-18-2006, 09:37 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