+ Reply to Thread
Results 1 to 4 of 4

Hiding rows based on duplicate numbers in a particular column

  1. #1
    Forum Contributor
    Join Date
    06-25-2013
    Location
    Longview, TX
    MS-Off Ver
    MS365
    Posts
    338

    Hiding rows based on duplicate numbers in a particular column

    Hello all!

    I suspect there's an easy way to do this, but I'm tired of trying to figure it out.

    I have a sheet of data that's 12 columns by about 900 rows. Column H contains 12 digit numbers, with rows having a duplicate in H grouped together. Is there an easy way to hide all but the first and last instances of each of those groups?

    For example, if the row #s (left column below)have the #s in H:
    1 401075084894
    2 401075084900
    3 401075084900
    4 401075084900
    5 401075084917
    6 401075084917
    7 401075084917
    8 401075084917
    9 401075084924
    10 401075084931
    11 401075084931
    12 401075084931
    13 401075084931
    14 401075084931
    15 401075084931
    16 401075084931
    17 401075084948
    18 401075084948
    19 401075084948
    20 401075084948


    I would want to hide rows 3, 6-7, 11-15 and 18-19 so it looks like this:
    1 401075084894
    2 401075084900
    4 401075084900
    5 401075084917
    8 401075084917
    9 401075084924
    10 401075084931
    16 401075084931
    17 401075084948
    20 401075084948

    I can't use "remove duplicates"; I need to keep all the rows on the sheet. I can't figure out a way to use "Conditional Formatting" to get what I need. Am I missing something obvious?

    Thanks

    Jenny

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Hiding rows based on duplicate numbers in a particular column

    If a helper column would be suitable you could use something like the below formula in row 1 and copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then you could filter on that column to just the 1's (or not blanks).

    BSB

    EDIT: See attached
    Attached Files Attached Files
    Last edited by BadlySpelledBuoy; 03-22-2017 at 04:09 PM.

  3. #3
    Forum Contributor
    Join Date
    06-25-2013
    Location
    Longview, TX
    MS-Off Ver
    MS365
    Posts
    338

    Re: Hiding rows based on duplicate numbers in a particular column

    Perfect! I knew there had to be something; my brain was too exhausted to see it!

    Thank you SO much! I have been wondering about this for a LONNNG time; I just got annoyed enough with it today to actually ask, LOL!

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Hiding rows based on duplicate numbers in a particular column

    Glad I could help. Sometimes it just takes a fresh pair of eyes

    Thanks for the rep point.

    Take care.

    BSB

+ 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. Delete Duplicate rows with duplicate in 1 column based on value from another column
    By CraigR&M in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-30-2016, 04:36 PM
  2. Delete Duplicate rows with duplicate in 1 column based on value from another column
    By CraigR&M in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2016, 02:06 PM
  3. Hiding Rows based on the value in column A, starting at row 9
    By craig159753 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-15-2015, 02:09 PM
  4. [SOLVED] Help with hiding rows based on Column D values
    By Ellen 2Excel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-15-2014, 01:58 PM
  5. Return all rows with duplicate numbers in column B
    By Yupyup in forum Excel General
    Replies: 12
    Last Post: 09-21-2012, 12:24 AM
  6. Hiding rows based on a column value
    By Mark Hansen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-09-2006, 01:40 PM
  7. Hiding Rows in a Range based on column A value
    By tig in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-09-2006, 01:10 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