+ Reply to Thread
Results 1 to 16 of 16

Problem with ignoring duplicates in a list of numbers

  1. #1
    Registered User
    Join Date
    04-16-2019
    Location
    Sleaford
    MS-Off Ver
    O365
    Posts
    78

    Problem with ignoring duplicates in a list of numbers

    Good morning, im having a problem to ignore duplicates in a list down below where im looking for ORDER NUMBER for certain Customer.
    The list is changing every day so i can't know in which cells that customer is going to be.

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Formula what im using to get Customer order number is :
    Please Login or Register  to view this content.

    So just because i have 2 different order numbers for same customer then i can't find it with the same formula as above. So i tried many times to use index match formula which works but always not ignoring duplicates so showing always the first order number.
    Just need to ignore first order number and give next unique order number.

  2. #2
    Registered User
    Join Date
    04-16-2019
    Location
    Sleaford
    MS-Off Ver
    O365
    Posts
    78

    Re: Problem with ignoring duplicates in a list of numbers

    just to add to my previous info. i require this formula to look through the list of order numbers and show me each individual order number for each customer... this can be up to 3/4 order numbers per customer and as stated before vlookup always finds the first . of cours if i manually add a 1 to the end for example or change the name in some way then it will find it but this is not effecient and idealy i need it to be automatic

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,893

    Re: Problem with ignoring duplicates in a list of numbers

    Why don't you use a filter?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    04-16-2019
    Location
    Sleaford
    MS-Off Ver
    O365
    Posts
    78

    Re: Problem with ignoring duplicates in a list of numbers

    Well Ali, that was first thing what i was thinking to do. But as my list is taken from another document i can't use filter on that one. Because the list is changing every day then if i will use filter then i will remove duplicated cells which i can't do.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,893

    Re: Problem with ignoring duplicates in a list of numbers

    Why would filtering the data remove duplicates? I don't understand your comment, sorry.

  6. #6
    Registered User
    Join Date
    04-16-2019
    Location
    Sleaford
    MS-Off Ver
    O365
    Posts
    78

    Re: Problem with ignoring duplicates in a list of numbers

    Then i was thinking about other thing. Sorry my bad. I was looking for solutions and saw a post where you can remove duplicates, so i was thinking you are suggesting that one
    Can you describe how that filtering data feature works please.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,893

    Re: Problem with ignoring duplicates in a list of numbers

    Just click on the data filter button on the Data ribbon (it looks like a funnel) and then use the filters that appear at the top of the page to filter on whichever column you choose. If you need to, you can copy and paste filtered data to another sheet.

  8. #8
    Registered User
    Join Date
    04-16-2019
    Location
    Sleaford
    MS-Off Ver
    O365
    Posts
    78

    Re: Problem with ignoring duplicates in a list of numbers

    Thanks for suggestion but this not quite exactly what im looking for. Maybe there is a way how to deal with it automatically?
    Some formula. I assume that would do something with index and match formulas..

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,893

    Re: Problem with ignoring duplicates in a list of numbers

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.

  10. #10
    Registered User
    Join Date
    04-16-2019
    Location
    Sleaford
    MS-Off Ver
    O365
    Posts
    78

    Re: Problem with ignoring duplicates in a list of numbers

    Attached a file for a example Hope this helps to understand it more
    Attached Files Attached Files

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,893

    Re: Problem with ignoring duplicates in a list of numbers

    In B12:

    =IFERROR(INDEX($E$2:$E$5, MATCH(0,COUNTIF($B$11:$B11,$E$2:$E$5)+IF($B$2:$B$5<>$A$12,1,0),0)),"")

    ... confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Once confirmed, drag copy down.

  12. #12
    Registered User
    Join Date
    04-16-2019
    Location
    Sleaford
    MS-Off Ver
    O365
    Posts
    78

    Re: Problem with ignoring duplicates in a list of numbers

    Thank you Ali. It works great. Just because the list of orders is changing every day then i can't know where the actuall cells of that customer is going to be. One day it might be $E$2:$E$5, other day it can be $E$25:$E$37
    So is there a way to put some vlookup formula in there to find it first in the list and then array the order number?
    I would be thankfull for that Ali.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,893

    Re: Problem with ignoring duplicates in a list of numbers

    It doesn't matter where the customer is - the formula will find where their entries start.

    Make the arrays in the formula as long as the full data table.

    Excel 2016 (Windows) 32 bit
    B
    12
    =IFERROR(INDEX($E$2:$E$9, MATCH(0, COUNTIF($B$11:$B11,$E$2:$E$9)+IF($B$2:$B$9<>$A$12,1,0),0)),"")
    Sheet: example

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    1
    ID Customer Resource Description Order number Date
    2
    O00105 CUSTOMER2 3811800 EXTRA TASTY RIB UK-19-031860 16/04/2019
    3
    O00105 CUSTOMER2 3784300 WB 1.6 UK-19-031875 16/04/2019
    4
    O00105 CUSTOMER1 6756000 BBQ BOURBON UK-19-031871 16/04/2019
    5
    O00105 CUSTOMER1 6765400 FIRECRACKER UK-19-031871 16/04/2019
    6
    O00105 CUSTOMER1 3811800 EXTRA TASTY RIB UK-19-031869 16/04/2019
    7
    O00105 CUSTOMER1 3784300 WB 1.6 UK-19-031869 16/04/2019
    8
    O00105 CUSTOMER1 6756000 BBQ BOURBON UK-19-031871 16/04/2019
    9
    O00105 CUSTOMER1 6765400 FIRECRACKER UK-19-031871 16/04/2019
    10
    Here im having a formula which looks what is the order number for customer
    11
    12
    CUSTOMER1 UK-19-031871
    13
    CUSTOMER1 UK-19-031869 <<--- Here I want it to ignore the duplicate order number and show the next unique order number of the customer
    Sheet: example
    Last edited by AliGW; 04-16-2019 at 05:16 AM.

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,893

    Re: Problem with ignoring duplicates in a list of numbers

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  15. #15
    Registered User
    Join Date
    04-16-2019
    Location
    Sleaford
    MS-Off Ver
    O365
    Posts
    78

    Re: Problem with ignoring duplicates in a list of numbers

    Thank you very much! Saved me a lot of time. Have a nice day

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,893

    Re: Problem with ignoring duplicates in a list of numbers

    Glad to have helped.

+ 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. [SOLVED] How to find the nth highest/lowest value from a list ignoring duplicates
    By Funky Gibbon in forum Excel General
    Replies: 7
    Last Post: 11-04-2018, 05:38 PM
  2. Ramon numbers from a list with no duplicates
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-21-2015, 02:13 PM
  3. [SOLVED] Creating a dynamic top 10 list and ignoring duplicates
    By justmill in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-23-2014, 04:24 PM
  4. [SOLVED] Random selection of names with no duplicates and ignoring a predetermined name list
    By iain.excel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-16-2012, 06:51 PM
  5. [SOLVED] ranks a list of numbers however ranking whilst ignoring + or - signs
    By ZenobiaAnkou in forum Excel General
    Replies: 7
    Last Post: 04-18-2012, 05:32 PM
  6. Consecutive number list ignoring duplicates
    By jalexand in forum Excel General
    Replies: 6
    Last Post: 10-05-2010, 12:36 PM
  7. Replies: 1
    Last Post: 02-17-2009, 10:25 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