+ Reply to Thread
Results 1 to 15 of 15

Highlight entire row based on two cells in row

  1. #1
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Highlight entire row based on two cells in row

    Hi,

    I'm trying to highlight the entire row with conditional formatting if I=1 and L=DL*.

    So far I've tried
    =COUNTIFS(I6:I10000="1",L6:L10000="DL*")
    =COUNTIF($L6,"*DL*")
    =AND($I6="1", $L6="DL*")
    =AND($I6=1,$L6="DL*")
    =(COUNTIF($I6="1")+COUNTIF($L6="DL*"))
    =AND($L6=”DL*”;$I6=1)
    And more, but nothing seems to work.

    Any help appreciated.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Highlight entire row based on two cells in row

    How about like this...

    Conditional Formatting
    • Highlight applicable range >> A2:L200
    • Home Tab >> Styles >> Conditional Formatting >> New Rule
    • Select a Rule Type: Use a formula to determine which cells to format
    • Edit the Rule Description: Format values where this formula is true: =AND($I2=1,LEFT($L2,2)="DL")
    • Format… [Number, Font, Border, Fill]
    • OK >> OK
    HTH
    Regards, Jeff

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,101

    Re: Highlight entire row based on two cells in row

    to highlight the row , you need to fix the columns using $

    BUT L=DL*.
    does that mean if the cell text starts with DL - or contains DL and an asterix , as written DL*

    select the range A1 to L10000
    then use
    = AND($I1=1,$L1="DL*")

    now if a row contains in I = 1 and in L = DL* the whole row should highlight
    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.

  4. #4
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Re: Highlight entire row based on two cells in row

    DL* means there is a number directly after DL but the number always changes.

    Neither of these suggestions have worked and @etaf my OP shows your suggestion already tried. Maybe I am missing something simple?

    When I apply the conditions no rows or cells highlight.

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Highlight entire row based on two cells in row

    How about attach a small sample worksheet? With what I posted works in my sample, but my sample may not be what you have.

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,101

    Re: Highlight entire row based on two cells in row

    jeffreybrown POST SHOULD work
    is I a number 1 or text 1 ?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Re: Highlight entire row based on two cells in row

    Workbook attached, its the orange rule in CF that I'm trying to get working.
    Attached Files Attached Files

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,101

    Re: Highlight entire row based on two cells in row

    what row had DL ?

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Highlight entire row based on two cells in row

    What about...

    =AND($I6=1,SEARCH("DL",$L6))

  10. #10
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Re: Highlight entire row based on two cells in row

    Legend, that seems to work

  11. #11
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Re: Highlight entire row based on two cells in row

    Would there be any need to use * after DL?

  12. #12
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Highlight entire row based on two cells in row

    Good to know. Thanks for the feedback. We are happy to help.

  13. #13
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Highlight entire row based on two cells in row

    Quote Originally Posted by ~TaC~ View Post
    Would there be any need to use * after DL?
    No. Search is searching for the letters DL. It doesn't care what's after.

    The only drawback. If anything else was in column L that began with DL, but I can't think of any word that meets that criteria, but I am no English major.

  14. #14
    Registered User
    Join Date
    11-12-2017
    Location
    Stafford, England
    MS-Off Ver
    365
    Posts
    184

    Re: Highlight entire row based on two cells in row

    I always like to try and work things out so I know for next time, but I've been trying for hours to do this without success.

    Thanks for the help guys much appreciated.

  15. #15
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Highlight entire row based on two cells in row

    Again, you are very welcome.

    https://www.excelfunctions.net/excel...-function.html

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Highlight entire row based on cell value
    By NewYears1978 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-27-2017, 10:06 AM
  2. Highlight an entire row based upon a date
    By tootlebug in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-26-2013, 11:49 AM
  3. Replies: 0
    Last Post: 07-22-2011, 12:11 PM
  4. Highlight entire row based on value in a column c
    By ramky79 in forum Excel General
    Replies: 3
    Last Post: 10-27-2010, 01:40 PM
  5. Is it possible to highlight entire rows based on the days?
    By gloom52 in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 09-09-2009, 09:21 AM
  6. Highlight entire row based on cell value
    By clwrs in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 08-14-2009, 06:51 PM
  7. Replies: 1
    Last Post: 12-16-2005, 05:20 PM

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