+ Reply to Thread
Results 1 to 8 of 8

Thread: Match different sheet values then highlight rows that meet criteria.

  1. #1
    Registered User
    Join Date
    09-01-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    12

    Match different sheet values then highlight rows that meet criteria.

    Can someone help me?

    Please see attached example. I want to match an exact number in a cell to an array of numbers in another sheet. Where they match I want to highlight the entire row (example all of 2) or a particular range of cells (say from A2 – S2).

    The solution I was trying was to have a column (A1) that ran the function (=MATCH(B5,Static!A5:A15,0)) then conditionally format the entire row red where there was a value of 1. Then I would just hide the column.

    But, if someone has an even better idea I am open to it.

    Thank you!
    Attached Files Attached Files
    Last edited by DW2054; 09-13-2011 at 12:29 PM.

  2. #2
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    London
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    863

    Re: Match different sheet values then highlight rows that meet criteria.

    If i have correctly understood your request.

    You want a formula in col a Variable sheet which looks at the values in col b of the same sheet. If any of these values match any value in static sheet you want this value to appear in col a of variable and highlight the row in red.

    So per your sample,

    In A2

    =IFERROR(INDEX(Static!A:A,MATCH(B2,Static!A:A,0)),"")

    copy down to A18

    Then for the formatting > highlight A2:I18 and in conditional formatting enter =$A2=$B2

    Hope this helps, if not let me know
    Last edited by Blake 7; 09-12-2011 at 06:19 PM.
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  3. #3
    Registered User
    Join Date
    09-01-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Match different sheet values then highlight rows that meet criteria.

    Really close. I like your solution, it’s cleaner than mine. The only thing is I want to highlight not just that cell, but the entire row that it is on or at least several cells.

    Thank you.

  4. #4
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    London
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    863

    Re: Match different sheet values then highlight rows that meet criteria.

    just adjust the Applies to: section of conditional Format to whatever cells you want hightlighting.

    on your sample tell me which cells you would like highlighting
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  5. #5
    Registered User
    Join Date
    09-01-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Match different sheet values then highlight rows that meet criteria.

    You rock! I don't know why I thought the formatting was so hard. Just took a moment to get my hands around the abstraction mechanism...Oh, well. You’re the best! I gave you positive feedback. Thanks a bunch!

  6. #6
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    London
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    863

    Re: Match different sheet values then highlight rows that meet criteria.

    thanks for the feedback - glad to help. Pls don't forget to mark as solved, Cheers
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  7. #7
    Registered User
    Join Date
    09-01-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Match different sheet values then highlight rows that meet criteria.

    How do I do that?

    Sorry.

  8. #8
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    London
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    863

    Re: Match different sheet values then highlight rows that meet criteria.

    Click EDIT on the original post, then click the Go Advanced button, then change the status. Somethin like that!
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

+ 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.2.0