+ Reply to Thread
Results 1 to 8 of 8

Generate a list based on meeting a criteria

  1. #1
    Registered User
    Join Date
    07-02-2015
    Location
    Toronto, ONtairo
    MS-Off Ver
    Office 2013
    Posts
    4

    Generate a list based on meeting a criteria

    Hi all, this is my first post here. Hoping you all can help !

    I'm currently running a large data pull and am trying to come up with a convenient way to generate a list of all the items in the table that meet a certain criteria. What would be the best way to do this? / What would be the appropriate code to do this.

    If a cell is greater than 80, than report the class, day and % total

    TABLE/INPUT

    DAY#
    Class 1 2 3 4 5
    A 76 33 91 107 52
    B 23 5 104 72 33
    C 52 88 86 95 97

    OUTPUT:

    Class Day %total
    C 2 88
    A 3 91
    B 3 104
    C 3 86
    A 4 107
    C 4 95
    C 5 97

    Book1.xlsx
    Last edited by nekomi15; 07-02-2015 at 01:27 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Generate a list based on meeting a criteria

    Hi, welcome to the forum

    You could probably do this with INDEX/MATCH, but I would need to see a sample workbook, cant work with pics. upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Generate a list based on meeting a criteria

    Hi, welcome to the forum

    You could probably do this with INDEX/MATCH, but I would need to see a sample workbook, cant work with pics. upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

  4. #4
    Registered User
    Join Date
    07-02-2015
    Location
    Toronto, ONtairo
    MS-Off Ver
    Office 2013
    Posts
    4

    Re: Generate a list based on meeting a criteria

    Hi, Thanks for the welcome and quick reply. I've edited the main post with the attachment Thanks!

  5. #5
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Generate a list based on meeting a criteria

    Try this:-
    Based on your File Data
    Results start "M1".
    Please Login or Register  to view this content.
    Regards Mick
    Last edited by MickG; 07-02-2015 at 01:37 PM.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Generate a list based on meeting a criteria

    Another:

    Please Login or Register  to view this content.
    Results underneath your Output data

  7. #7
    Registered User
    Join Date
    07-02-2015
    Location
    Toronto, ONtairo
    MS-Off Ver
    Office 2013
    Posts
    4

    Re: Generate a list based on meeting a criteria

    Mick & John, gave both codes a go, and both worked.

    Thanks a lot for the help everyone

  8. #8
    Registered User
    Join Date
    07-02-2015
    Location
    Toronto, ONtairo
    MS-Off Ver
    Office 2013
    Posts
    4

    Re: Generate a list based on meeting a criteria

    As FDibbins mentioned, is there a way to do this via INDEX/MATCH?

+ 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. Excel 2007 : How to generate a list based on criteria
    By fraggle in forum Excel General
    Replies: 7
    Last Post: 05-20-2015, 04:41 AM
  2. Generate Unique List Meeting Criteria
    By ictodd in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-22-2014, 03:06 AM
  3. Generate list of names based on multiple criteria
    By mattadler22 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-03-2013, 06:02 PM
  4. Replies: 2
    Last Post: 03-30-2011, 08:05 PM
  5. Record Symbols from Changing List Based on Meeting Various Criteria in Other Cells
    By DrSues02 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-18-2007, 05:20 PM

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