Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Varun
 
Posts: n/a
Default How do I select multiple rows randomly in MS Excel?

How do I select multiple rows randomly in MS Excel?
  #2   Report Post  
Michael
 
Posts: n/a
Default

Hi
Select your first row and then hold down the Ctrl key while selecting the
others.

HTH
Michael

"Varun" wrote:

How do I select multiple rows randomly in MS Excel?

  #3   Report Post  
Max
 
Posts: n/a
Default

"Varun" wrote
How do I select multiple rows randomly in MS Excel?


Just another angle to the post's interp ..
(with emphasis on "randomly")

Here's an example set-up to play with ..

Assume we have 6 rows of data below
in Sheet1's A1:C6:

Data1 Text1 Desc1
Data2 Text2 Desc2
Data3 Text3 Desc3
Data4 Text4 Desc4
Data5 Text5 Desc5
Data6 Text6 Desc6

In an empty col to the right, say col E?
Put in E1: =RAND()
Copy down to E6

In Sheet2
-----------
Let's say we want to randomly select
any 3 rows from the 6 in Sheet1

Put in A1
=INDEX(Sheet1!A:A,MATCH(SMALL(Sheet1!$E:$E,ROWS($A $1:A1)),Sheet1!$E:$E,0))

Copy across to C1, fill down to C3

A1:C3 will return the desired random selection of 3 rows

Tapping the F9 key will re-generate another random selection

Freeze the results elsewhere
with a copy paste special values

And if more random selections are needed,
just fill down A1:C1 further to C4 or C5 or
to C6 which returns a full shuffle of all the 6 rows in Sheet1

Adapt to suit ..
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----


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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
How do I import data into Excel that exceeds 70000 rows? Claudia Phelps Excel Discussion (Misc queries) 2 March 25th 05 11:33 PM
Finding common data in multiple columns and rows in Excel sparham Excel Worksheet Functions 3 February 12th 05 04:11 AM
Sum with multiple conditions in Excel 2000 Magnus Oskarsson Excel Worksheet Functions 2 December 16th 04 04:09 PM
How do I get a specific list of rows out of a much larger excel s. larkindale Excel Worksheet Functions 2 December 7th 04 09:55 PM


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