+ Reply to Thread
Results 1 to 5 of 5

Find Most Uncommon / Missing Numbers In A Column When Compared to A Set Range of Numbers

  1. #1
    Registered User
    Join Date
    10-17-2017
    Location
    P
    MS-Off Ver
    2016
    Posts
    2

    Find Most Uncommon / Missing Numbers In A Column When Compared to A Set Range of Numbers

    Hello Everyone,

    My querie is the following:

    I have three Columns of random numbers which will always range from 1 to 31. An additional row of random numbers (within the given range) will be added to these three columns routinely.

    Is it possible for excel to do two things:
    1) Give me a list of the most uncommon numbers in a single column.
    2) Give me a list of any numbers between 1 and 31 that aren't present in that same column.

    I hope my explanation is clear enough.

    Cheers

    Tom

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Find Most Uncommon / Missing Numbers In A Column When Compared to A Set Range of Numbe

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Find Most Uncommon / Missing Numbers In A Column When Compared to A Set Range of Numbe

    The three columns are to be treated separately?? So you want 3 sets of uncommon numbers and 3 sets of missing numbers???
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Find Most Uncommon / Missing Numbers In A Column When Compared to A Set Range of Numbe

    If so... here is one way, using 1 helper column per column of raw data to return the least common present numbers.

    Helper (E2):
    =IF(A2="","",SUM(IF(A2=A$2:A$30,1,0)))


    Least common, but present (I2 - array formula):
    =IFERROR(INDEX(A:A,SMALL(IF(E$2:E$30=MIN(E$2:E$30),ROW(E$2:E$30)),ROWS(I$2:I2))),"")

    Missing from column(M2 - array formula):
    =IFERROR(SMALL(IF(COUNTIF(A$1:A$30,ROW($1:$31))=0,ROW($1:$31),""),ROW(A1)),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-17-2017
    Location
    P
    MS-Off Ver
    2016
    Posts
    2

    Re: Find Most Uncommon / Missing Numbers In A Column When Compared to A Set Range of Numbe

    Hi Everyone,

    Thank you for your feedback and help on this. I will take a look at the attached file and try to understand it asap as im in work.

    Further more i will try and create a dummy spreadsheet to show what im trying to achieve.

    Cheers

    Tom

+ 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] Compare two numbers to in column and find which digits are missing
    By Karnik in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-16-2017, 10:34 AM
  2. [SOLVED] Find missing numbers in unsorted list of numbers
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-01-2015, 05:15 AM
  3. [SOLVED] Find missing numbers in a range
    By boboivan in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-11-2014, 04:55 PM
  4. Replies: 4
    Last Post: 07-29-2012, 08:40 AM
  5. Find missing numbers in a column
    By excelkeechak in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-26-2009, 12:04 AM
  6. A Macro to find missing serial numbers in a column
    By Khoshravan in forum Excel General
    Replies: 9
    Last Post: 08-06-2006, 05:40 AM
  7. to find missing serial numbers in randomly generated numbers
    By B.H. Hadi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-01-2005, 07:00 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