Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Select random records by two conditions
I need help. I have several hundred records representing transactions
within a particular month. I want to select two random samples for each client for each day of the month. In other words, select random samples based on two conditions or criteria. One problem I have encountered is when there are no examples for a client for a particular day I get an error. I think the pseudo-code or algorithm might go a little something like this . . . swing it boys. Create a collection of dates Create a collection of names Create an array to hold records For the first date For the first name For records 1 to infinity Select a random record Test for duplication Add to array Loop Write array of records to another sheet Next name Next date I already have some chunks of the code but it doesn’t work as a whole because I think I have the order of execution wrong. Any help would be appreciated. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
select random sample of records in a filtered list | Excel Discussion (Misc queries) | |||
Selecting Random Records From an Excel Sreadsheet | Excel Worksheet Functions | |||
select multiple records in database given conditions | Excel Worksheet Functions | |||
draw 999 x 8 random records from file with 8614 records | Excel Programming | |||
selecting random records | Excel Programming |