+ Reply to Thread
Results 1 to 3 of 3

conditional formatting with years

  1. #1
    Registered User
    Join Date
    04-29-2012
    Location
    Romania
    MS-Off Ver
    Excel 2007
    Posts
    13

    conditional formatting with years

    Hi. The problem is like this: I have 2 columns. One with custom dates (dd mmm yyyy) and the other that needs to be conditional formatted by the first one. In the second one the highlighted values must be those that are between 20 and 30 years of service, calculated by the dates in the first column. Anyone have any ideea?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,419

    Re: conditional formatting with years

    Why not add a worksheet so we don't have to guess what your data looks like? Or at least state exactly which columns you are using and where your data starts from and what values your second column contains.

    Pete

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,704

    Re: conditional formatting with years

    With dates in column A try selecting your other column and using this formula in conditional formatting

    =AND(A1<=EDATE(TODAY(),-12*20),A1>=EDATE(TODAY(),-12*30))

    format as required
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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