+ Reply to Thread
Results 1 to 7 of 7

Colour rows if contain a certain cell value

  1. #1
    Registered User
    Join Date
    08-18-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Colour rows if contain a certain cell value

    Apologies if this is in the wrong forum, this is my first post.

    Basically I have a huge list of data in sheet1 that needs to be investigated. On sheet2 I have a list of refs that don't need to be investigated because they have already been sorted.

    Is there any way of colouring the row in sheet1 that contains a ref from the list in sheet2 so that I know they don't need to be looked at. I had a look at using and if function and a vlookup but got a bit stuck.

    Any help would be greatly appreciated.

    Thanks

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Colour rows if contain a certain cell value

    Hi barrboy89

    Welcome to the forum

    You would do best to post a sample workbook showing Before and After.
    It should clearly illustrate your problem and not contain any sensitive data.

    Cheers
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Colour rows if contain a certain cell value

    You just need a MATCH() function in you Conditional format

    e.g

    =MATCH(A1,ColA,0)

    where ColA is a named range in Sheet2 (in column A)... you need to name the ranges because Conditional formatting doesn't allow direct references to other sheets.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    08-18-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Colour rows if contain a certain cell value

    Hi,
    Thanks for you reply.

    In my conditional formatting formula I now have
    =MATCH(G:G,SMO,0)

    where SMO is my named range, and G:G is the column on sheet1 that contain the refs matching SMO.

    But it doesn,t work.

    The formula itself is looking good because when i use the formula =MATCH(SMO,Sheet1!G:G,0)
    in the actual worksheet, it is giving the row numbers that match, so its good progress!

    How exactly do I use the conditional formatting thing in this situation?

    Thanks

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Colour rows if contain a certain cell value

    So SMO is an named range referencing Sheet1!G:G?

    If so, after select column G in Sheet2, enter:

    =MATCH(G1,SMO,0)

  6. #6
    Registered User
    Join Date
    08-18-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Colour rows if contain a certain cell value

    Thank you so much mate - got it working.
    One last thing, there are a few that contain more than one ref, or a bit of extra txt, is there any way of seeing if it contains the ref rather than exactly matches? if it's too hard it's not a big deal - there aren't that many and i could check by hand.

    Also any way of doing the whole row in colour rather than just the matching cell?

    Thanks again

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Colour rows if contain a certain cell value

    Perhaps:

    =MATCH("*"&G1&"*",SMO,0)

+ 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