+ Reply to Thread
Results 1 to 4 of 4

Conditional formatting based on entered dated and how much time has passed

  1. #1
    Registered User
    Join Date
    10-16-2012
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    1

    Conditional formatting based on entered dated and how much time has passed

    I have no clue on how to use Excel so ANY help would be awesome. I have a spreadsheet that has different dates entered. I would like to know how to set a function so that the dates turn red after 22 months have passed from the date entered. Ex

    Column/Row J12 has date 12 Mar 2010 in MM/YY format (day is not important). I need it to turn red once 22 months has passed from that date.

    Any advice would be great, I'm about to slam my laptop closed on my head.

  2. #2
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: Conditional formatting based on entered dated and how much time has passed

    Hi Sanchez,

    Select the cell J12. And go to conditional formatting. Enter this formula in CF
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and give the formatting style (Red fill/font)

    Click ok.

    This should do.

  3. #3
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Conditional formatting based on entered dated and how much time has passed

    Thanks, Sindhus, learned a new trick with that one. Didn't know about DATEDIF.
    Last edited by Moo the Dog; 10-17-2012 at 12:07 AM.

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Conditional formatting based on entered dated and how much time has passed

    hi sanchez7315, welcome to the forum. highlight the rows you need the conditional formatting if it's not just J12, go to Home -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is true:
    =EDATE($J12,22)<TODAY()

    22 months after 12th Mar 2010 is 12th Jan 2012. but if you say the day is not important & want 1st Jan 2012 onwards to be highlighted, try:
    =EDATE(EOMONTH($J12,-1)+1,22)<TODAY()

    hopefully, it has saved you from slamming your laptop against your head
    =)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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