Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How can I choose every nth name in a spreadsheet?

I need to take a random sample of names from a spreadsheet. I would like to
choose every Nth name in the sheet. Does anyone know how to do that?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default How can I choose every nth name in a spreadsheet?

Add a helper column with a formula of

=ROW()=INT(ROW()/n)*n

and copy down.

Filter on the TRUE values

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Rechnem" wrote in message
...
I need to take a random sample of names from a spreadsheet. I would like to
choose every Nth name in the sheet. Does anyone know how to do that?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default How can I choose every nth name in a spreadsheet?

try
Sub selectnrows()
'n = 3
'or
n = InputBox("how many")
Rows.Hidden = False
For i = 1 To Cells(Rows.Count, "a").End(xlUp).Row Step n
Cells(i, "a").Resize(n - 1, 1).EntireRow.Hidden = True
'MsgBox i
Next i
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Rechnem" wrote in message
...
I need to take a random sample of names from a spreadsheet. I would like to
choose every Nth name in the sheet. Does anyone know how to do that?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default How can I choose every nth name in a spreadsheet?

Use a helper cell, number from 1 to N down the rows, select the 1 to N
cells, and copy, then Paste in starting at the first blank cell after N,
now sort on that column and then pick a group randomly, any number 1
through N.

Rechnem wrote:

I need to take a random sample of names from a spreadsheet. I would like to
choose every Nth name in the sheet. Does anyone know how to do that?


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
How can 0 be used in the Choose function Max Excel Worksheet Functions 3 June 16th 07 09:41 PM
How do I choose first value greater than 0? jagruc Excel Worksheet Functions 2 August 26th 06 10:18 PM
Choose Function UD 9 Excel Discussion (Misc queries) 1 November 25th 05 09:22 PM
can i get excel to choose every 10th entry in a spreadsheet whaler Excel Worksheet Functions 2 June 9th 05 10:34 PM
Choose. Rodney New Users to Excel 2 May 2nd 05 04:59 AM


All times are GMT +1. The time now is 05:29 AM.

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

About Us

"It's about Microsoft Excel"