+ Reply to Thread
Results 1 to 3 of 3

How to Highlight consecutive repeated values > 3 in a row??

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question How to Highlight consecutive repeated values > 3 in a row??

    Hello all,
    I am trying to find a way to highlight values that are repeated one after the other. For example:

    1
    2
    3
    3
    3
    3
    2
    4
    3
    4
    5


    The 4 3s are highlighted because they are consecutive. The other 3 is not so it isn't highlighted.

    I've found things like =OR(A2=A1,A2=A3) But this works for 2 or more in a row, and I want only 4 or more consecutive to be highlighted.
    Last edited by pabeader; 01-20-2020 at 04:21 PM.

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,198

    Re: How to Highlight consecutive repeated values > 3 in a row??

    via a conditional format. My first answer is not short and your data would have to start in row 4 otherwise you need to rewrite the formula for your first few lines.

    =MAX(SUMPRODUCT(--(A1:A3=A2:A4)),SUMPRODUCT(--(A2:A4=A3:A5)),SUMPRODUCT(--(A3:A5=A4:A6)),SUMPRODUCT(--(A4:A6=A5:A7)))=3

    for 4 in a row one or more of the sumproducts has to equal 3 for example the first sumproduct a1=a2 and a2=a3 and a3=a4 to would equal 3

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: How to Highlight consecutive repeated values > 3 in a row??

    It works! It's quite ingenious and will take me a bit to figure out, but wow!

    Thank you very much!

+ 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] Compare values from 2 colums and highlight only repeated values
    By Jetxx in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-27-2019, 02:19 AM
  2. Extract unique value from column of consecutive repeated values
    By hamang in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-26-2016, 04:37 AM
  3. Highlight values that are repeated more than twice
    By amirsalamat in forum Excel General
    Replies: 10
    Last Post: 08-21-2016, 12:20 AM
  4. Counting consecutive repeated numbers greater than or less than.
    By fatterthanelvis in forum Outlook Formatting & Functions
    Replies: 5
    Last Post: 12-16-2014, 11:09 PM
  5. Replies: 1
    Last Post: 10-11-2014, 04:52 AM
  6. Warning for Consecutive repeated entries
    By LewisK in forum Excel General
    Replies: 5
    Last Post: 04-01-2014, 12:44 PM
  7. counting consecutive repeated values in a column along with the range
    By g s in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2005, 04:05 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