+ Reply to Thread
Results 1 to 4 of 4

Highlighting every other set of duplicates

  1. #1
    Registered User
    Join Date
    12-24-2011
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    2

    Highlighting every other set of duplicates

    Hi-

    I am trying to format a file, which has a list of data that is grouped based on an ID code.

    Ex.


    001 James
    001 Jenny


    002 Jimmy
    002 Connor

    003 Steven
    003 Sean
    003 Jan

    004 Danny
    004 Grant

    The duplicates would be identified based on their ID# number (ex. 001) and every other set of duplicates needs to be highlighted. Ex. so the 001 & 003 data sets would be highlighted but not the 002 data set.

    I am not too familiar with VBA coding, is there a function or set of functions that would allow me to format the data based on the criteria described above?

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Highlighting every other set of duplicates

    You can use the built-in Conditional Formatting using the formula option and this formula:

    =ISODD(TEXT(A2,"#"))

    Assumes row-1 is a header row.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    12-24-2011
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Highlighting every other set of duplicates

    This function doesn't work as I need it to highlight every other set of duplicates. Is there another formula / function that will allow me to highlight the rows of every other sets of duplicates?

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Highlighting every other set of duplicates

    Works fine for me. Perhaps you should post a sample workbook (fake data).

    See attached.

    Highlight Every Other Group.xlsx

+ 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.6.0 RC 1