+ Reply to Thread
Results 1 to 7 of 7

display unique numbers only.

  1. #1
    Registered User
    Join Date
    07-01-2014
    Location
    florida, usa
    MS-Off Ver
    2016
    Posts
    16

    display unique numbers only.

    I have lottery numbers in cell a1:a10 in cell b1:b7 i have lottery numbers i need to find the 3 unique numbers that are missing in b1:b7
    a
    01 06 22 25 30
    01 06 22 25 31
    01 06 22 25 32
    01 06 22 25 33
    01 06 22 25 34
    01 06 22 25 35
    01 06 22 25 36
    01 06 22 26 27
    01 06 22 26 28
    01 06 22 26 29
    b
    01 06 22 25 30
    01 06 22 25 31
    01 06 22 25 33
    01 06 22 25 34
    01 06 22 25 35
    01 06 22 25 36
    01 06 22 26 29

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: display unique numbers only.

    v A B C D
    1 01 06 22 25 30* 01 06 22 25 30* =VLOOKUP(A1,$B$1:$B$7,1,0)
    2 01 06 22 25 31* 01 06 22 25 31* =VLOOKUP(A2,$B$1:$B$7,1,0)
    3 01 06 22 25 32* 01 06 22 25 33* =VLOOKUP(A3,$B$1:$B$7,1,0)
    4 01 06 22 25 33* 01 06 22 25 34* =VLOOKUP(A4,$B$1:$B$7,1,0)
    5 01 06 22 25 34* 01 06 22 25 35* =VLOOKUP(A5,$B$1:$B$7,1,0)
    6 01 06 22 25 35* 01 06 22 25 36* =VLOOKUP(A6,$B$1:$B$7,1,0)
    7 01 06 22 25 36* 01 06 22 26 29 =VLOOKUP(A7,$B$1:$B$7,1,0)
    8 01 06 22 26 27* =VLOOKUP(A8,$B$1:$B$7,1,0)
    9 01 06 22 26 28* =VLOOKUP(A9,$B$1:$B$7,1,0)
    10 01 06 22 26 29 =VLOOKUP(A10,$B$1:$B$7,1,0)

    Those cells returning N/A are the unique numbers in A that are not in B.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    07-01-2014
    Location
    florida, usa
    MS-Off Ver
    2016
    Posts
    16

    Re: display unique numbers only.

    Thank you! Now with that part done i will work on the next part. It is returning #na so in f1 how can i make it return the cell a1?
    Last edited by notmyday; 11-05-2016 at 04:42 PM.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: display unique numbers only.

    In F1, =IF(ISERROR(E1),A1,"") and copy down


    v A B C D E F
    1 01 06 22 25 30* 01 06 22 25 30* 01 06 22 25 30*
    2 01 06 22 25 31* 01 06 22 25 31* 01 06 22 25 31*
    3 01 06 22 25 32* 01 06 22 25 33* #N/A 01 06 22 25 32*
    4 01 06 22 25 33* 01 06 22 25 34* 01 06 22 25 33*
    5 01 06 22 25 34* 01 06 22 25 35* 01 06 22 25 34*
    6 01 06 22 25 35* 01 06 22 25 36* 01 06 22 25 35*
    7 01 06 22 25 36* 01 06 22 26 29 01 06 22 25 36*
    8 01 06 22 26 27* #N/A 01 06 22 26 27*
    9 01 06 22 26 28* #N/A 01 06 22 26 28*
    10 01 06 22 26 29 01 06 22 26 29
    Last edited by alansidman; 11-05-2016 at 06:02 PM.

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,910

    Re: display unique numbers only.

    Or try this ...

    =IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($A$1:$A$10)/(COUNTIF($B$1:$B$7,$A$1:$A$10)=0),ROWS($C$1:C1))),"")

  6. #6
    Registered User
    Join Date
    07-01-2014
    Location
    florida, usa
    MS-Off Ver
    2016
    Posts
    16

    Re: display unique numbers only.

    Thanks guys these work great!! Im smiling happy now my headache can go away. How do i mark this resolved please?

  7. #7
    Registered User
    Join Date
    07-01-2014
    Location
    florida, usa
    MS-Off Ver
    2016
    Posts
    16

    Re: display unique numbers only.

    Thanks these work great my headache can go away now thanks so much. Now how do i mark this thread solved?

+ 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. Replies: 8
    Last Post: 05-26-2016, 06:00 PM
  2. Replies: 4
    Last Post: 12-17-2015, 12:33 AM
  3. Replies: 0
    Last Post: 02-25-2015, 10:27 AM
  4. [SOLVED] search for all unique numbers down a column and print a list of those numbers in another
    By JJGF in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2014, 11:08 PM
  5. Replies: 1
    Last Post: 10-16-2013, 02:46 PM
  6. [SOLVED] create list of unique staff numbers with unique work codes
    By shaz0503 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-01-2013, 08:57 PM
  7. Replies: 2
    Last Post: 05-02-2006, 11:20 AM

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