ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Pull a Sample from a Population (https://www.excelbanter.com/excel-worksheet-functions/152763-pull-sample-population.html)

dzd&confused

Pull a Sample from a Population
 
I need a statistically valid, randomly selected breakout of transactions from
a total population of all transactions. Would like to have Excel generate a
statistically valid list from a total population of about 38K transactions.
All 38K transactions, regardless of dollar value, are subject to review
through random selection based on the n of total population. The list should
also incude any transaction = $5,000. The listing should include all data
elements of the select transactions.

Possible? How?

Bernie Deitrick

Pull a Sample from a Population
 
Dazed,

Insert a column of formulas, like this (assumes that the amount is in column D, for example)

=OR(D2=5000,(Rand()*100)99)

Change the 99 to a lower number to choose a greater # of items randomly... Then filter your
database based on the column of formulas, and choose to show TRUE. The transactions still visible
are those that should be reviewed.

HTH,
Bernie
MS Excel MVP


"dzd&confused" wrote in message
...
I need a statistically valid, randomly selected breakout of transactions from
a total population of all transactions. Would like to have Excel generate a
statistically valid list from a total population of about 38K transactions.
All 38K transactions, regardless of dollar value, are subject to review
through random selection based on the n of total population. The list should
also incude any transaction = $5,000. The listing should include all data
elements of the select transactions.

Possible? How?




dzd&confused[_2_]

Pull a Sample from a Population
 
Got it! Thanks! Jon

"Bernie Deitrick" wrote:

Dazed,

Insert a column of formulas, like this (assumes that the amount is in column D, for example)

=OR(D2=5000,(Rand()*100)99)

Change the 99 to a lower number to choose a greater # of items randomly... Then filter your
database based on the column of formulas, and choose to show TRUE. The transactions still visible
are those that should be reviewed.

HTH,
Bernie
MS Excel MVP


"dzd&confused" wrote in message
...
I need a statistically valid, randomly selected breakout of transactions from
a total population of all transactions. Would like to have Excel generate a
statistically valid list from a total population of about 38K transactions.
All 38K transactions, regardless of dollar value, are subject to review
through random selection based on the n of total population. The list should
also incude any transaction = $5,000. The listing should include all data
elements of the select transactions.

Possible? How?





squenson via OfficeKB.com

Pull a Sample from a Population
 
I would create a new column with the formula in row 2: =IF(D25000,0,RAND())
(assuming that D is the column with the transaction amounts), then copy it
down till the row 38,000. Then I would select the entire column, press Ctrl-C,
then right-click, select Paste Special and click on Value. This way, this new
column has a set of random numbers (or 0's) and it is frozen.

Then, I would use AutoFilter to filter on this column, use Custom and select
all the values less than 0.05 if I want 5% of the transactions, or less than
0.23 if I want 23% of the transactions. As transactions above $5,000 have a
value 0, they are always selected. Then, you can copy the filtered range
somewhere else and perform the review of the transactions.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200708/1



All times are GMT +1. The time now is 01:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com