+ Reply to Thread
Results 1 to 13 of 13

How to visually separate rows with same data?

  1. #1
    Registered User
    Join Date
    07-05-2011
    Location
    Fort Wayne
    MS-Off Ver
    Excel 2004
    Posts
    25

    How to visually separate rows with same data?

    Hello,
    I work on very long spreadsheets with many rows and columns, that are sorted by data in column A. Many of the rows have the same data in Column A, so I end up with a 2000 row file, but there are only 500 or so unique items that I work on.

    Please help me find a way that I can visually separate rows, so I can quickly see when one set of data ends and another one starts. It can be done by:
    - shading every other new string of rows, so I have shaded, non-shaded, shaded, non-shaded... rows
    - placing borders between new strings of data, so every time there is a new number in Column A, system automatically inserts a border.

    For example:
    In Column A (Item SKU number) I will have:
    11021
    11021
    11021
    12023
    12023
    14045
    14045
    14045
    14045
    14045
    25010
    26900
    26900
    ... etc.

    My eyes will forever be thankful.

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: How to visually separate rows with same data?

    Hello
    Am I right in saying you want to highlight the first 11021,12023,14045 etc.? If so you can use a conditional format formula as follows:

    =COUNTIF(A1:$A$1,A1)=1

    If your example data above begins in A1. Select range and apply formula.

    Hope this helps.

  3. #3
    Registered User
    Join Date
    07-05-2011
    Location
    Fort Wayne
    MS-Off Ver
    Excel 2004
    Posts
    25

    Re: How to visually separate rows with same data?

    Not quite.

    - If shading is the only option, I would like to back and forth: shade rows of first group of same SKUs, then not shade the next group of rows, then shade and not shade, back and forth.

    - I would however prefer to be able to separate them by a border at the bottom of the last row for each group, because I use cell color fill in other areas of the spreadsheet, so shading the rows will overwrite the other cell color fill.

    What makes it crappy to work with now is that I have as many as 50+ columns and I have to scroll to the first one to know when one group of SKUs ends and next one starts. With this I would see each batch separated from the next, regardless of where I was.

  4. #4
    Registered User
    Join Date
    07-05-2011
    Location
    Fort Wayne
    MS-Off Ver
    Excel 2004
    Posts
    25

    Re: How to visually separate rows with same data?

    Attached is example of the file. As you see SKU numbers in column A are in groups. I separated a few of them with bottom border, just to illustrate what I think would be a perfect solution to my needs.

    Problem is that manually it is time consuming to insert these borders when one group of SKUs ends and another one starts, so I hope there is some automated solution to this dilemma.

    Screen Shot 2012-04-03 at 12.33.21 PM.jpg

  5. #5
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Question Re: How to visually separate rows with same data?

    Hello again
    I've created a sample file (attached Excel 2003 file) based on your picture. The conditional formatting puts lines at change in reference numbers. However, I don't know why you dont't want any line breaks between rows 46 and 54 when there are 3 different reference numbers. What is the reason for leaving these together? Is there some logic that we can apply to the formatting to allow for this?

    Regards
    DBY
    Attached Files Attached Files
    Last edited by DBY; 04-03-2012 at 02:41 PM.

  6. #6
    Registered User
    Join Date
    07-05-2011
    Location
    Fort Wayne
    MS-Off Ver
    Excel 2004
    Posts
    25

    Re: How to visually separate rows with same data?

    Dear DBY,
    Sorry for late reply. Had a baby born and my schedule changed unexpectedly.
    There is no reason to not separate he values in my example. I simply missed them when manually adding lines.

    Your example is EXACTLY what I was after. However I don't understand how to put in the border in conditional formatting. I enter the formula as you showed, however I don't have an option to add such a line break. I use Mac's version of excel if that makes any difference.

  7. #7
    Registered User
    Join Date
    07-05-2011
    Location
    Fort Wayne
    MS-Off Ver
    Excel 2004
    Posts
    25

    Re: How to visually separate rows with same data?

    DBY... I got it!! Man... I didn't realize there is a border option in cond. formatting.

    THANK YOU!! This place is incredible!

  8. #8
    Registered User
    Join Date
    07-05-2011
    Location
    Fort Wayne
    MS-Off Ver
    Excel 2004
    Posts
    25

    Re: How to visually separate rows with same data?

    Example_Reply (2).xlsDBY,
    I unmarked it as solved as there is one issue with the solution. I hope you can advise a fix:
    This works when I have the sheet sorted by SKU number in ascending order. However when I want to work on the sheet and sort it by column C - SKU's Sell Through Rate (which is identical for all the same SKUs) for example, it looses the divisions and no longer same SKUs are separated properly.
    Example attached.

  9. #9
    Forum Contributor
    Join Date
    03-13-2008
    MS-Off Ver
    Office 365
    Posts
    134

    Re: How to visually separate rows with same data?

    Try this,
    - Sort the column by Small to big
    - In column B2 put the formulla, =if(A2=A1,1,0) (supposing ur data starts from A1 column)
    - not do a filter on all the 1s, these are the duplicate values.

    Amit.

  10. #10
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Post Re: How to visually separate rows with same data?

    Hi
    Hope the family and new baby are doing well. I'm a little confused, because when I sort you example file by Value 1 in column C, either ascending or descending, the SKU's remain divided and grouped correctly with their Sell Through Rate. Am I perhaps not understanding you properly?

    Regards
    DBY

  11. #11
    Registered User
    Join Date
    07-05-2011
    Location
    Fort Wayne
    MS-Off Ver
    Excel 2004
    Posts
    25

    Re: How to visually separate rows with same data?

    Thanks!
    Actually I understand your confusion. In that example there was only other column to sort by. I attach a fuller real life example with 2 data sets I use. It's a sample of online listings with overall SKU close % and close % of different ads for a given sku. Since the SKU close percentage is constant for a given sku, sorting the sheet by it still keeps all same skus together, so it looked same as sorting by sku itself (just in different order). However when you sort by Ad close % is when things get scrambled. However I understand why they would.
    See attachment.

    However your solution is great and exactly what I needed. Thanks!
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    07-05-2011
    Location
    Fort Wayne
    MS-Off Ver
    Excel 2004
    Posts
    25

    Re: How to visually separate rows with same data?

    I will try this out shortly. Thanks Amit!

  13. #13
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: How to visually separate rows with same data?

    Hi
    Yes I see the problem now. It's difficult, because you have to decide by which value you want to highlight your rows. I haven't tried Amit's solution but the only way I can think of is to perhaps have a Macro to sort and highlight the relevant values, depending on choice.

    Regards
    DBY

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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