LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 230
Default strange randomization

User enters any array of numbers beginning in any cell: Example

A15 23
A16 11
A17 5
. .
. .
. .
A172 145
A173 220


Required: Formula (not VBA, but perhaps array-entered) which will:

1) return a RANDOM number from AMONG the items in the list
2) Not require that the list start, list end, or # of items in the
list be fixed (only col A is fixed).
3) not require that the list be in ascending or descending order
3) be entered in cell B1

I started something involving INDEX and the ROW() of the starting and ending
item, but I want it to be more dynamic. Then I tried to use MATCH to tell me
the start or end values, by using 0.001 and 1,000,000 and matching with
Match_Type = 1, or -1, but that required the items be in ascending or
descending order. So, I am stuck... can it be done?


 
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 - randomization with certain criteria Alen Paliska Excel Worksheet Functions 3 May 16th 07 06:41 PM
Data Randomization Hannie1004 Excel Worksheet Functions 2 February 16th 06 06:50 PM
Very-2 strange Amiit Mangla Excel Discussion (Misc queries) 4 December 21st 05 12:26 PM
Something Strange ame9 Setting up and Configuration of Excel 2 July 5th 05 10:31 PM
Randomization of Multiple Columns and Sequences Sandy Pasdak Excel Programming 1 July 30th 03 04:54 AM


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

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"