Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Trying to randomly choose a number from a set list of numbers

I'm trying to get Excel to randomly choose a number from a set of 58
different numbers using this formula:
=IF(AU2=1,CHOOSE(RANDBETWEEN(1,58),5,24,25,28,35,4 3,53,58,66,90,121,139,177,185,213,220,226,230,232, 233,256,265,288,290,297,304,
310,314,336,178,179,180,181,182,183,184,214,215,21 6,217,218,219,
337,354,364,369,379,383,398,404,421,423,442,446,45 9,463,467,484)))

but it says "More arguments have been specified for this function than are
allowed in the current file format."

I'm wondering why it'd say this since the CHOOSE function can choose between
1 and 254 values. If anyone knows how I can get this to work properly,
please let me know (on a side note, it will let me only choose from up to 29
values and no more than that for some reason).

Thanks,

RJ
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Trying to randomly choose a number from a set list of numbers

The index within CHOOSE should be upto 29. Try with 29 numbers and it will
work.

If this post helps click Yes
---------------
Jacob Skaria


"RJTheDestroyer" wrote:

I'm trying to get Excel to randomly choose a number from a set of 58
different numbers using this formula:
=IF(AU2=1,CHOOSE(RANDBETWEEN(1,58),5,24,25,28,35,4 3,53,58,66,90,121,139,177,185,213,220,226,230,232, 233,256,265,288,290,297,304,
310,314,336,178,179,180,181,182,183,184,214,215,21 6,217,218,219,
337,354,364,369,379,383,398,404,421,423,442,446,45 9,463,467,484)))

but it says "More arguments have been specified for this function than are
allowed in the current file format."

I'm wondering why it'd say this since the CHOOSE function can choose between
1 and 254 values. If anyone knows how I can get this to work properly,
please let me know (on a side note, it will let me only choose from up to 29
values and no more than that for some reason).

Thanks,

RJ

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
randomly pick a number from a set of predetermined numbers Ram Excel Discussion (Misc queries) 6 September 11th 07 09:49 PM
Randomly Choose Two Numbers dennis Excel Discussion (Misc queries) 2 September 7th 06 04:43 AM
How do I sort randomly a list of 22 numbers Deal or No Deal game simulation Excel Discussion (Misc queries) 3 May 21st 06 10:27 AM
Randomly Choose Cells from Colum/Row J New Users to Excel 2 November 19th 05 02:22 AM
How to generate a list of randomly selected numbers within a range Bob Excel Worksheet Functions 2 November 7th 05 06:09 PM


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