+ Reply to Thread
Results 1 to 13 of 13

How to keep values from repeating

  1. #1
    Registered User
    Join Date
    01-05-2013
    Location
    United States
    MS-Off Ver
    Excel For Mac 2011
    Posts
    9

    How to keep values from repeating

    Okay, so this is what I am using:
    Please Login or Register  to view this content.
    It is finding the name for a value from a table of values, the only problem is that there are more than one names which correspond to the same value. It doesnt matter to me which name it retrieves, but it lists the same name over and over again, where i'd prefer if it used a different name each time. Any way to keep it from using the same one?

    I posted an example three posts down.
    Last edited by Ozyr; 01-06-2013 at 10:53 AM.

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: How to keep values from repeating

    Not sure what you are getting at here... could you upload a sample sheet with example data and expected results listed?

    - Moo

  3. #3
    Registered User
    Join Date
    01-05-2013
    Location
    United States
    MS-Off Ver
    Excel For Mac 2011
    Posts
    9

    Re: How to keep values from repeating

    Alright...here is my example. The first grey table is the one I want to not have repeated values in.Example1.xlsx

  4. #4
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: How to keep values from repeating

    I used array-formulas and made each entry unique by substracting the row number divided by 1,000,000
    Attached Files Attached Files
    Kind regards,
    Piet Bom

  5. #5
    Registered User
    Join Date
    01-05-2013
    Location
    United States
    MS-Off Ver
    Excel For Mac 2011
    Posts
    9

    Re: How to keep values from repeating

    This didnt work for me
    Last edited by Ozyr; 01-06-2013 at 10:52 AM.

  6. #6
    Registered User
    Join Date
    01-05-2013
    Location
    United States
    MS-Off Ver
    Excel For Mac 2011
    Posts
    9

    Re: How to keep values from repeating

    This actually didnt work on my end...

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to keep values from repeating

    Piet Bom stated
    Please Login or Register  to view this content.
    You have to use CTRL+SHIFT+ENTER (CSE) to confirm the formula instead of the normal Enter.

    Then the brackets automatic showed up (so don't type them manualy, that won't work).
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  8. #8
    Registered User
    Join Date
    01-05-2013
    Location
    United States
    MS-Off Ver
    Excel For Mac 2011
    Posts
    9

    Re: How to keep values from repeating

    I still cant get it to work. I dont understand how this formula works so when I try to apply it to my actual spreadsheet it doesnt work because the values and boxes are not in the same place. When I try to move them to fit, the arrays dont change...

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to keep values from repeating

    In that case you provide an excel example with the data in the same place.

  10. #10
    Registered User
    Join Date
    01-05-2013
    Location
    United States
    MS-Off Ver
    Excel For Mac 2011
    Posts
    9

    Re: How to keep values from repeating

    Could you explain how the formula he is using works? Maybe then I can apply to my scenario

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to keep values from repeating

    I changed the format of the cel H8 to 6 decimals.

    See the differance.
    Please Login or Register  to view this content.
    This part will made that there an no duplicated results in column B.

    So it finds the row of the unique value (in column B).

    Then it seeks the corresponding value (in the same row) in column A.

    Hope I explained it well enough.
    Attached Files Attached Files

  12. #12
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How to keep values from repeating

    In H2 Drag Across to J2, then Down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The above works without using Table H8:J11, but if you require this table, use this in H8, Drag Across to J8, then Down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See this workbook
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  13. #13
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: How to keep values from repeating

    in the sample workbook that you posted in post #3, put this formula in cell H1 and drag-fill right and then down.

    ARRAY entered:

    Please Login or Register  to view this content.
    or,

    non-array:

    Please Login or Register  to view this content.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

+ 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