+ Reply to Thread
Results 1 to 5 of 5

Creating a new list based on conditions

  1. #1
    Registered User
    Join Date
    06-04-2008
    Posts
    8

    Creating a new list based on conditions

    Hi, first time poster here. I have a predicament that gives me extra headache every month, so I was wondering if I couldn't work around it by using some smart solution, and I was hoping to find it here...

    This is the situation:
    I have a list of between 10 000 - 20 000 rows, with different part numbers that are classified, and I would like to populate a new list using the info in that list but only the ones classified with an "A" in one list, "B" in another and so on.

    I want to be in cell A1, use this formula, and the first part number (which is the unique no that I then can do a Lookup with) with classification "A" should pop up. I can then fill the series until the list is complete.

    Today I have to Autofilter, copy - paste every one, which is really tedious..

    I have attached a simple example which shows what I mean...

    Best regards and thanks in advance,

    Dubbelito
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Creating a new list based on conditions

    Would you consider using a Pivot Table?

    Using your posted workbook...

    From the Excel Main Menu: <Data><Pivot Table>
    Use: Excel……Click [Next]
    Select your data……Click [Next]
    Click the [Layout] button

    PAGE: Drag the CRITERIA field here

    ROW: Drag the PARTNUM and VALUE fields here
    (Dbl-click each and set Subtotals to None)

    COLUMN: (Leave this empty)

    DATA: Drag the VALUE field here, too.
    (Dbl-click it and set Subtotals to COUNT)

    Click [OK]
    Select where you want the Pivot Table…Click [Finish].

    That will list each unique combination of
    PARTNUM and VALUE and the count of each.

    If you click the CRITERIA dropdown and select "A",
    only those records will display.

    To refresh the Pivot Table, just right click it and select Refresh Data

    Is that something you can work with?

    For more info on Pivot Tables:
    http://www.nickhodge.co.uk/gui/datam...ablereport.htm
    http://www.contextures.com/tiptech.html
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    11-23-2007
    Location
    Suffolk, UK
    Posts
    298
    Hi Dubbelito,

    i have attached your example, in order to list criteria "A", i've used a formula that i got from this forum, the formula give a unique rank subject to 2 columns, by concatenating the criteria "A" and the rank this gives an easy to use Vlookup table,

    hope it helps,

    thanks reg
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Create Reports Based On Criteria

    Take a look at the example attached.
    Select a criteria in Cell C32.
    I beleive it does what you want.
    Good Luck
    modytrane
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-04-2008
    Posts
    8

    Thumbs up Thank you!

    Thank you all three for your quick replies! In this case I must say that it was Modytrane who hit the bull's eye! I took a quick look at it and it seems to be exactly what I wanted!

    Reggie1000, your tip was also good and I will definetly add those formulas to my arsenal.

    Ron, the Pivot table is also good, though I don't use it so much. Dunno why, just don't like it as much as a normal table.

    Again, thank you very much!

    Best regards,
    Dubbelito


+ 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. List Box based on dynamic "Name"
    By ChrisMattock in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-26-2007, 06:06 PM
  2. Replies: 3
    Last Post: 01-31-2007, 03:34 PM
  3. Value based on list based on another list???
    By axslinger in forum Excel General
    Replies: 5
    Last Post: 12-23-2006, 03:58 PM
  4. locking a data validation list based upon cell value
    By abrazee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-18-2006, 04:46 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