#1   Report Post  
Posted to microsoft.public.excel.misc
Miloann
 
Posts: n/a
Default A Sampling Program

Is there existing macros or functions that I can perform the following
sampling logic?

I have a file with 500K transactions. Would like to start with a number and
select one transaction every 30 records. The total number of selected
transactions are 2000.

Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default A Sampling Program

Response below posted to your multi-post in .worksheet.functions
(Pl refrain from multi-posting)
------
One way ..

Assume txn data is in col A, from A1 down to A65536

In B1 will be input the row start number, say: 3

Put in C1: =OFFSET(INDIRECT("A"&$B$1),ROW(A1)*30-30,)
Copy C1 down to C2000

C1:C2000 will return what's in: A3, A33, A63, ....
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Miloann" wrote in message
...
Is there existing macros or functions that I can perform the following
sampling logic?

I have a file with 500K transactions. Would like to start with a number

and
select one transaction every 30 records. The total number of selected
transactions are 2000.

Thanks.




  #3   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default A Sampling Program

Had presumed there was a typo (an extra zero?) in your line:
I have a file with 500K transactions.

(50K, not 500K <g)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help Initializing Excel Spreadsheet Program jb999 Excel Discussion (Misc queries) 0 November 7th 05 05:57 PM
Need Help Initializing Excel Spreadsheet Program jb999 Excel Discussion (Misc queries) 3 November 2nd 05 11:09 PM
How to display a form- to show status of the running program Joseph Excel Discussion (Misc queries) 2 May 31st 05 11:31 AM
Hyperlink in Excel opens the right program, but can't read file. Katydid Excel Discussion (Misc queries) 0 May 6th 05 04:16 PM
Charts causing program to crash Fysh Charts and Charting in Excel 1 December 16th 04 10:12 PM


All times are GMT +1. The time now is 11:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"