+ Reply to Thread
Results 1 to 5 of 5

Formatting: Highlighting every other group of rows based on a columns data.

  1. #1
    Registered User
    Join Date
    03-24-2014
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Formatting: Highlighting every other group of rows based on a columns data.

    Hello all,

    I am looking for some help, and while there may not be an easy way, I thought I'd ask.

    I am trying to find a way to highlight groups of data based on a specific column. For example see the attached imaged:

    example.jpg

    This is a very simple mock up, and what I am working with is a data set that contains over 50,000 rows of "claims." Some claim numbers appear multiple times due to various reasons, but what I want to do is sort my data by the claim number, and then highlight every other grouping of the same claim number. This way, I can easily see each claim, and each of the occurrences. Other columns contain various data that I need to review to see why a claim appeared multiple times, so I do not want to just create a subtotal or anything like that. I need every claim visible.

    I found this solution on an old thread, but it only works if the claim numbers are sequential with no gaps. Unfortunately for me, that is not the case.

    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.


    I appreciate any help anyone can provide!

  2. #2
    Registered User
    Join Date
    03-24-2014
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Formatting: Highlighting every other group of rows based on a columns data.

    I Just got this excellent solution from JP Ronse over on Microsoft's community forums:

    You will need a helper column.

    Customer Name Customer Address Customer Account Number FALSE
    Bob Jones 12345 Main St 3335551212 TRUE
    Amy Jones 12345 Main St 3335551212 TRUE
    Stacy Jones 12345 Main St 3335551212 TRUE
    George Smith 77234 Chicago Ave 234567 FALSE
    Henry Johnson 77234 Chicago Ave 234567 FALSE
    Andrew Jackson 5343 Sommerset Lane 4234569845 TRUE
    Andrew Jackson 5343 Sommerset Lane 4234569845 TRUE
    Jason Anderson 64125 Pike Street 789456123 FALSE
    Jason Anderson 17842 Michigan Ave 789456123 FALSE


    This table in A1:C10, add in D1 FALSE and in D2: =IF(C2=C1,D1,NOT(D1)) and drag down.

    Select the range A2:C10, conditional format, use formula, =$D2 and apply desired format.

    This method comes from Chip Pearson


    This solution worked like a charm. Here is a link to the tread if you'd like to see it: http://answers.microsoft.com/en-us/o...a-569ca462a1f8

  3. #3
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Formatting: Highlighting every other group of rows based on a columns data.

    Thanks for letting us know your solution. I was working on a VBA solution, but I like this one.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  4. #4
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Formatting: Highlighting every other group of rows based on a columns data.

    Just because I already wrote the vba here is another way of doing this. Note that the customer account numbers would have to be grouped and in column A. You could change the cell values to look at any column you need to.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,675

    Re: Formatting: Highlighting every other group of rows based on a columns data.

    http://www.excelforum.com/excel-gene...cel-lines.html
    Take a look at this same question with answers
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

+ 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. Replies: 2
    Last Post: 03-29-2014, 03:58 AM
  2. Conditional Formatting every other group of rows WITHOUT HELPER COLUMNS
    By distribution master in forum Excel General
    Replies: 1
    Last Post: 05-14-2013, 03:46 PM
  3. [SOLVED] Macro to group rows based on formatting
    By theletterh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-06-2012, 03:21 PM
  4. [SOLVED] Group/sort rows based on values in multiple columns?
    By teitoku in forum Excel General
    Replies: 5
    Last Post: 08-07-2012, 02:20 PM
  5. Replies: 2
    Last Post: 04-14-2011, 12:34 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