Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 184
Default Return two random lines

I need to randomly select two lines per person listed on my report. How can
I do this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default Return two random lines

Jeremy wrote:
I need to randomly select two lines per person listed on my report. How can
I do this?


Without seeing what you are working with I cannot say exactly.

=INT(1+RND()*x)

will generate a random number between 1 and x.

If you are using Excel 2007 (or prior version with analysis toolpack)
you can use

=RANDBETWEEN(1,x)

Use such random numbers to pick the lines you want to inspect.
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 to return random non zero value to a particular cell? Oligo Excel Discussion (Misc queries) 6 October 26th 08 05:29 PM
Need macro for copying random lines of data FeFi Excel Discussion (Misc queries) 3 March 13th 08 06:47 PM
Random Selection of Some Lines in Excel Worksheet jeannie v Excel Worksheet Functions 3 December 14th 07 12:06 AM
can you assign random numbers to many different lines of row? random number generator Excel Worksheet Functions 3 February 28th 06 06:35 PM
Getting rid of random white lines in Excel lizzibet76 Excel Discussion (Misc queries) 2 September 27th 05 03:41 PM


All times are GMT +1. The time now is 07:16 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"