A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Return two random lines



 
 
Thread Tools Display Modes
  #1  
Old April 21st, 2009, 05:01 PM posted to microsoft.public.excel.worksheet.functions
jeremy
external usenet poster
 
Posts: 265
Default Return two random lines

I need to randomly select two lines per person listed on my report. How can
I do this?
  #2  
Old April 22nd, 2009, 03:16 AM posted to microsoft.public.excel.worksheet.functions
smartin
external usenet poster
 
Posts: 780
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.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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