+ Reply to Thread
Results 1 to 5 of 5

Hiding recurring results?

Hybrid View

  1. #1
    Registered User
    Join Date
    12-21-2011
    Location
    EU here and there
    MS-Off Ver
    Excel 2019
    Posts
    70

    Hiding recurring results?

    Hi all -
    Hope somebody can help with how to hide repeated values in a column, and only display them ONCE.

    Please see attachment. The names are in column "C" and the grey bar, where the name first occurs, is not using any formula, just hardcoded.

    I want to apply conditional formula or something like that, to keep the names as they are, in the grey bar, but supress the names in the subsequent rows, if they are repetitions.

    Attachment 274784
    Last edited by johanna0507; 10-31-2013 at 10:09 AM.

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

    Re: Hiding recurring results?

    Hello
    You could perhaps use two CF formulas. For example if your range of values was in C2:E20:

    =COUNTIF($C$2:$C2,$C2)=1
    would highlight selection were the name first occurs. The second applied only to C2:C20:

    =COUNTIF($C$2:$C2,$C2)>1
    would hide the duplicate values. With both you would obviously have to choose the formats you require. Grey fill, white font etc.

    Hope this helps.
    DBY

  3. #3
    Registered User
    Join Date
    12-21-2011
    Location
    EU here and there
    MS-Off Ver
    Excel 2019
    Posts
    70

    Re: Hiding recurring results?

    Quote Originally Posted by DBY View Post
    Hello
    You could perhaps use two CF formulas. For example if your range of values was in C2:E20:

    =COUNTIF($C$2:$C2,$C2)=1
    would highlight selection were the name first occurs. The second applied only to C2:C20:

    =COUNTIF($C$2:$C2,$C2)>1
    would hide the duplicate values. With both you would obviously have to choose the formats you require. Grey fill, white font etc.

    Hope this helps.
    DBY

    Thanks DBY! I am almost there, but there is a remaining problem:

    I formatted the column to have "No" background and White fonts.
    I then applied the first suggestions and set =COUNTIF($C$17:$C17,$C18)=1 to apply to all values in the column.
    This sets the first instance of the name to have grey background and black fonts which is what I wanted.

    However the formula it also hides the names that occur only once. I don't want that!
    They should have the same formatting as the other headers, even if they only occur once.

    I can't figure out how to prevent that, or construct a Conditional format that sets these names back to the formatting I want.

  4. #4
    Registered User
    Join Date
    12-21-2011
    Location
    EU here and there
    MS-Off Ver
    Excel 2019
    Posts
    70

    Re: Hiding recurring results?

    Oh I figured it out: =COUNTIF($C$17:$C17,$C18)=1

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Hiding recurring results?

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Hiding recurring results?
    By johanna0507 in forum Excel General
    Replies: 1
    Last Post: 10-31-2013, 07:48 AM
  2. [SOLVED] Hiding formula results
    By controlfreak in forum Excel General
    Replies: 3
    Last Post: 06-12-2012, 07:49 AM
  3. Hiding #N/A results from V-Look Up Formula
    By JWR in forum Excel General
    Replies: 2
    Last Post: 11-19-2009, 04:28 PM
  4. pivot tables hiding zero results
    By zeek in forum Excel General
    Replies: 3
    Last Post: 04-03-2008, 06:11 PM
  5. Hiding Expression Results...
    By bartinpc in forum Excel General
    Replies: 3
    Last Post: 06-12-2005, 02: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