+ Reply to Thread
Results 1 to 8 of 8

Make a List from a table with multiple criteria

  1. #1
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Make a List from a table with multiple criteria

    I have a table , Country, Cities , Sales and Items.
    I want to make a List depending some criteria as Country and first "n" rows of City.("n" is Criteria of how many rows to be listed.
    With formula if possible or macro (if no remedy).
    In attached file you can see all detail and explanation.

    Thanks in advance for any reply and help.
    Regards,
    turist
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: Make a List from a table with multiple criteria

    What should happen if the criteria is greater than the "rows to be listed" ?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Make a List from a table with multiple criteria

    Thanks for your kind interest.
    If criteria number of a city > rows of city in sheet 1 then all rows of city will be listed at "LIST"page.
    If rows of city in sheet 1 > criteria number of a city > then only criteria numbe rows of city will be listed at "LIST"page.

    This conditions explanied in the Sheets of the attached file. You can look at.
    Regards,
    turist

  4. #4
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Make a List from a table with multiple criteria

    I solved it with a macro (VBA)
    On sheet LIST press button: Generate List
    et voila..........
    Attached Files Attached Files
    Kind regards,
    Piet Bom

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Make a List from a table with multiple criteria

    I'm a little confused by what you want exactly. I have limited the return of records by summing the criteria in sheet2 for each country. Any data that exceeds that count will just be dumped.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Make a List from a table with multiple criteria

    Quote Originally Posted by PietBom View Post
    I solved it with a macro (VBA)
    On sheet LIST press button: Generate List
    et voila..........
    Dear PietBom,
    Thanks a lot.
    Working godd.
    Still waiting for a solution by formula.
    Regards
    turist

  7. #7
    Forum Contributor
    Join Date
    11-10-2012
    Location
    istanbul
    MS-Off Ver
    Excel 2013
    Posts
    297

    Re: Make a List from a table with multiple criteria

    Quote Originally Posted by newdoverman View Post
    I'm a little confused by what you want exactly. I have limited the return of records by summing the criteria in sheet2 for each country. Any data that exceeds that count will just be dumped.
    Dear newdoverman,
    Thanks for reply,
    But it is not what I wanted.
    If you can check the PietBom's macro solution, it is running by to fit my explanation and results.

    Regards,
    turist

  8. #8
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Make a List from a table with multiple criteria

    @turist,
    I would be highly surprised if somebody came up with a working formula.
    But then again, I was suprised before at this forum

+ 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. Make same selection for multiple drop down list and clear all for all dropdown list
    By salomip13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2014, 01:34 PM
  2. [SOLVED] Generate List of Records that Match Multiple Criteria from Data Table
    By trandle in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-10-2014, 04:43 PM
  3. [SOLVED] Make a list for the particular criteria!
    By devpp in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-13-2013, 01:50 AM
  4. Make List from Criteria
    By NTB in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-20-2011, 08:08 PM
  5. Make list from criteria
    By virtualdark in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-19-2011, 02:39 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