+ Reply to Thread
Results 1 to 6 of 6

extract specific values from list

  1. #1
    Registered User
    Join Date
    09-10-2009
    Location
    Morrison, Colorado
    MS-Off Ver
    Excel 2016
    Posts
    10

    extract specific values from list

    Hi, I've got a list of numerical values ranging from 1 to 111, in random order. What I need done is to create another list from the original list, but have it exclude any value over 100.

    Current List

    2
    56
    33
    108
    12
    18
    101
    78

    Need a new list in a different column that only shows the values under 100. This new list cannot have any blank cells in between the remaining numbers.

    2
    56
    33
    12
    18
    78

    I know an advanced filter can do something similar to this, but the issue for me is that the list of original numbers cannot have a header on it. The list I am trying to extract from is actually on the end of a much longer list.

    Can this be done with just a formula and without VB? Thanks.
    Last edited by mcm1009; 10-15-2010 at 03:39 PM. Reason: add additional info.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: extract specific values from list

    How about with advanced filter!

    http://www.contextures.com/xladvfilter01.html#ApplyAF

    Sorry, just re-read your post...no advanced filter.
    HTH
    Regards, Jeff

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: extract specific values from list

    here.. they are already sorted:

    =IF(ROWS($A$1:A1)<=COUNTIF(A:A,"<"&100),SMALL(A:A,ROWS($A$1:A1)),"")
    Last edited by zbor; 10-15-2010 at 03:55 PM.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: extract specific values from list

    Hi mcm1009,

    If it "is on the end" simply put 2 blank rows just above your data. Put headers in the lower blank and use Advanced Filters to another sheet. Remove the headers and you have a solutions.

    I hope that all makes sense. Advanced filters take a little getting used to but the method will work.

    I hope that helps.

  5. #5
    Registered User
    Join Date
    09-10-2009
    Location
    Morrison, Colorado
    MS-Off Ver
    Excel 2016
    Posts
    10

    Re: extract specific values from list

    Hi, thanks for all the quick replies, but I'm still having trouble. And I'm sure it's because of my explanation. So, here's a spreadsheet that shows what I'm trying to do.
    Please reference the attached spreadsheet.

    In Cells A3:A113, I have numbers 1 through 111 listed. Next to each is a rand() function. This allows me to randomly list the numbers in Column A by sorting on the random numbers in Column B. I've set up macros so this is done with the push of a button.

    When I push the Random button, the numbers in Column A rearrange themselves "randomly" based on the number in Column B.

    The new values in Cells A3:A72 are being used in a different spreadsheet. So what I would like to do is to take the remaining numbers ... those in Cells A73:A113 and extract only the numbers that are below the value of 100. I would like to take those remaining numbers and put them in a different column, for instance Column D .. The new list cannot contain blank cells in between the remaining numbers.

    I hope this makes a bit more sense. Thanks.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-10-2009
    Location
    Morrison, Colorado
    MS-Off Ver
    Excel 2016
    Posts
    10

    Re: extract specific values from list

    zbor - Thank you very much for your formula. I'm pretty sure I got it to work like it's supposed to and it's exactly what I needed done.. Much appreciated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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