+ Reply to Thread
Results 1 to 11 of 11

Highlighting a row in color

  1. #1
    Registered User
    Join Date
    07-27-2017
    Location
    Chennai, India
    MS-Off Ver
    Office 365
    Posts
    12

    Highlighting a row in color

    I have an employee database in which I have to highlight all the leavers/serving notice in red color & current month joiners in green color without manual effort. Is there any formula to do it? Or conditional formatting shortcut available?

    Untitled.png

    Hope the attachment explains the query clearly. When there is a leaving date mentioned that particular row should change to red.
    When there is a new joiner current month that particular row should change to green.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Highlighting a row in color

    Yes, but we would need to know the logic. I guess for the leavers, its a date in DOL, but how do we identify joiners? How long do they need to be flagged as new?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-27-2017
    Location
    Chennai, India
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Highlighting a row in color

    Leavers to be highlighted in the red color permanently based on DOL.
    Joiners can be identified by the date in DOJ and they should be highlighted in green only for that particular month. Next month, that month joiners & so on.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Highlighting a row in color

    OK. Two ticks!

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Highlighting a row in color

    Joiners:

    =AND(MONTH($D1)=MONTH(TODAY()),YEAR($D1)=YEAR(TODAY()))

    Leavers:

    =$E1<>""

    Both applied to the entire range.

  6. #6
    Registered User
    Join Date
    07-27-2017
    Location
    Chennai, India
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Highlighting a row in color

    Please help with the steps to apply this formulas. I am quite unsure of where to apply.
    Sorry if this looks silly, I have just started learning excel formulas.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Highlighting a row in color

    Post your file here, please.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

  8. #8
    Registered User
    Join Date
    07-27-2017
    Location
    Chennai, India
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Highlighting a row in color

    Attached the document.
    Attached Files Attached Files

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Highlighting a row in color

    See the attached - select any cell in the table range and then open the conditional formatting dialog to see the rules and how they are set up.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    07-27-2017
    Location
    Chennai, India
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Highlighting a row in color

    Thanks a lot

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Highlighting a row in color

    You're welcome!

+ 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. Highlighting a row(Filling a row automatically with a different color)
    By dimuthumme in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-06-2015, 06:22 AM
  2. highlighting red font color rows...
    By harvindersingh11 in forum Excel General
    Replies: 1
    Last Post: 11-21-2014, 11:10 AM
  3. Highlighting cells same color simultaneously in 2 sheets
    By zapa98498 in forum Excel General
    Replies: 3
    Last Post: 08-20-2014, 12:23 AM
  4. Highlighting dates in Row with color
    By max3dlover in forum Excel General
    Replies: 5
    Last Post: 07-11-2014, 02:55 PM
  5. [SOLVED] Highlighting every other row a different color with vba
    By Spreadlover in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-25-2013, 06:38 PM
  6. Replies: 5
    Last Post: 02-19-2010, 10:51 PM
  7. Comparing two values and highlighting using color
    By ramki in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-15-2006, 12:19 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