Results 1 to 5 of 5

Thread: Find each occurrence of a set of numbers in column and highlight the rows that contai

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,970
    Conditional formatting (highlighting) can do this.
    Instead of the three numbers being ina single cell (I1), put them in 3 separate cells (I used J1,J2,J3) then select a range (any width) starting on row 4, going as far down as necessary, then add conditional formatting with the formula:
    =OR(AND($N4=$J$1,$N5=$J$2,$N6=$J$3),AND($N3=$J$1,$N4=$J$2,$N5=$J$3),AND($N2 =$J$1,$N3=$J$2,$N4=$J$3))
    This will highlight all sets of three rows. See attached where I've only formatted column M.
    Attached Files Attached Files
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •