+ Reply to Thread
Results 1 to 4 of 4

Select Random Records With Multiple Criteria

  1. #1
    Registered User
    Join Date
    10-24-2010
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Select Random Records With Multiple Criteria

    Please can somebody can help me.

    I am struggling to find examples of a formula that shows how to generate a random selection of records using multiple criteria, there are many for a single criteria using the RND Function.

    I want to randomly select 2 records of each Type (pavement, potholes, etc) for each of the Areas (Essex, Kent, etc).

    I have enclosed an example spreadsheet.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Select Random Records With Multiple Criteria

    hi, AlexRoberts, sort of that, check attachment, run code "test"
    Attached Files Attached Files
    Last edited by watersev; 10-03-2011 at 10:11 AM.

  3. #3
    Registered User
    Join Date
    10-24-2010
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Select Random Records With Multiple Criteria

    Watersev,

    Sort of is not the right word, perfect is.

    Thank you.

  4. #4
    Registered User
    Join Date
    10-24-2010
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Select Random Records With Multiple Criteria

    Watersev,

    Sorry, I have come across a couple of issues,

    1. the macro does not create a record for the last Area / Type combination,
    2. the macro hangs if the number of rows increases.

    Do you have any ideas what the problems may be.

    Thank you.

+ 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