Choose randbetween

macrospivot

Spammer
Joined
Jul 20, 2010
Messages
30
I have a number of forumals that look like the following, My issue is I am using Openoffice.org and the limit is “choose” 30

Any suggestions ??

please help.
Sorry No I can not install Office that has a larger limit.



CHOOSE(RANDBETWEEN(1;36);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B12;C12;D12;E12;F12;G12)
<TABLE border=0 rules=none cellSpacing=0 frame=void cols=1><COLGROUP><COL width=78></COLGROUP><TBODY><TR><TD height=51 vAlign=bottom width=78 align=left SDNUM="1033;1033;General">Err:508</TD></TR></TBODY></TABLE>




all have errors ---- Err:508


=CHOOSE(RANDBETWEEN(1;30);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B15;C15;D15;E15;F15;G15)
=CHOOSE(RANDBETWEEN(1;36);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B9;C9;D9;E9;F9;G9)
=CHOOSE(RANDBETWEEN(1;42);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B9;C9;D9;E9;F9;G9)

=CHOOSE(RANDBETWEEN(1;12);0;0;0;0;0;0;B16;C16;D16;E16;F16;G16)

=CHOOSE(RANDBETWEEN(1;18);0;0;0;0;0;0;0;0;0;0;0;0;0;B16;C16;D16;E16;F16;G16)
=CHOOSE(RANDBETWEEN(1;24);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B16;C16;D16;E16;F16;G16)



=CHOOSE(RANDBETWEEN(1;30);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B16;C16;D16;E16;F16;G16)

=CHOOSE(RANDBETWEEN(1;36);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B10;C10;D10;E10;F10;G10)

=CHOOSE(RANDBETWEEN(1;42);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B10;C10;D10;E10;F10;G10)

=CHOOSE(RANDBETWEEN(1;22);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B17;C17;D17;E17;F17;G17;B18;C18;D18;E18;F18;G18)

=CHOOSE(RANDBETWEEN(1;44);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B11;C11;D11;E11;F11;G11;B12;C12;D12;E12;F12;G12)

=CHOOSE(RANDBETWEEN(1;55);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B11;C11;D11;E11;F11;G11;B12;C12;D12;E12;F12;G12)



=CHOOSE(RANDBETWEEN(1;66);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B11;C11;D11;E11;F11;G11;B12;C12;D12;E12;F12;G12)
=CHOOSE(RANDBETWEEN(1;77);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B11;C11;D11;E11;F11;G11;B12;C12;D12;E12;F12;G12)
=CHOOSE(RANDBETWEEN(1;88);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B11;C11;D11;E11;F11;G11;B12;C12;D12;E12;F12;G12)

=CHOOSE(RANDBETWEEN(1;50);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B13;C13;D13;B16;C16;G16;B17;C17;D17;E17;F17;G17;B18;C18;D18;E18;C19;D19;E19;F19;G19;C20;F20;G20;B21)

=CHOOSE(RANDBETWEEN(1;75);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B13;C13;D13;B16;C16;G16;B17;C17;D17;E17;F17;G17;B18;C18;D18;E18;C19;D19;E19;F19;G19;C20;F20;G20;B21)

=CHOOSE(RANDBETWEEN(1;100);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B13;C13;D13;B16;C16;G16;B17;C17;D17;E17;F17;G17;B18;C18;D18;E18;C19;D19;E19;F19;G19;C20;F20;G20;B21)



=CHOOSE(RANDBETWEEN(1;125);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B13;C13;D13;B16;C16;G16;B17;C17;D17;E17;F17;G17;B18;C18;D18;E18;C19;D19;E19;F19;G19;C20;F20;G20;B21)

=CHOOSE(RANDBETWEEN(1;150);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B13;C13;D13;B16;C16;G16;B17;C17;D17;E17;F17;G17;B18;C18;D18;E18;C19;D19;E19;F19;G19;C20;F20;G20;B21)

=CHOOSE(RANDBETWEEN(1;175);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;B13;C13;D13;B16;C16;G16;B17;C17;D17;E17;F17;G17;B18;C18;D18;E18;C19;D19;E19;F19;G19;C20;F20;G20;B21) 0 0 0









Looking for a replacement forumla ???


.
 
Last edited:

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi

Since the 0's are always at the beginning you can group them.

For ex. this formula has 36 0's at the beginning:

=CHOOSE(RANDBETWEEN(1,42),0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,B9,C9,D9,E9,F9,G9)

Grouping them you get:

=CHOOSE(1+MAX(RANDBETWEEN(1,42)-36,0),0,B9,C9,D9,E9,F9,G9)
 
Upvote 0
Have you tried

Because I used

=CHOOSE(1+MAX(RANDBETWEEN(1,44)-36,0),0,$B10,$C10,$D10,$E10,$F10,$G10)

ALSO Tried
=CHOOSE(RANDBETWEEN(1,40)-36,0);0;$E10;$F10;$G10)

I seem to get the ERR508


HOW CAN I get a random (20:40) ?????


.... please help with this :)

-- again openoffice (very sad I have to use)
 
Last edited:
Upvote 0
What is ERR508?

What are the formulas actually meant to do?
 
Upvote 0
pgc's suggestion works for me - looks like you need ; instead of , in your version, does this work?

=CHOOSE(1+MAX(RANDBETWEEN(1;42)-36,0);0;B9;C9;D9;E9;F9;G9)
 
Upvote 0
responding to the first post first ... God thank you for responding ....

I am trying to select a "value" from 30 - 40 from 1 rows
 
Last edited:
Upvote 0
pgc's suggestion works for me - looks like you need ; instead of , in your version, does this work?

=CHOOSE(1+MAX(RANDBETWEEN(1;42)-36,0);0;B9;C9;D9;E9;F9;G9)

what version are you using ... Question the beloved Microsoft ?



I have this formula and WORKS below 30
=CHOOSE(RANDBETWEEN(20;29);0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 ;$B10;$C10;$D10;$E10;$F10;$G10)


however does NOT work above 30.

Question how do I select from a row of 6 column one random number from $B10;$C10;$D10;$E10;$F10;$G10)
 
Last edited:
Upvote 0
I'm a bit confused, and I'm no formula expert, but why all the 0s if you want to select values from 30-40.

Or do you mean there are 30-40 values to choose from? Even then why the 0s?

PS In some 'versions' of Excel, don't know about OpenOffice, the , is the delimiter not ;. It's an 'international' thing.:)
 
Upvote 0
Hi

Since the 0's are always at the beginning you can group them.

For ex. this formula has 36 0's at the beginning:

=CHOOSE(RANDBETWEEN(1,42),0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,B9,C9,D9,E9,F9,G9)

Grouping them you get:

=CHOOSE(1+MAX(RANDBETWEEN(1,42)-36,0),0,B9,C9,D9,E9,F9,G9)



THANK YOU SIR ... for your help. but it does not work maybe because I am using openoffice.





.
 
Upvote 0
I'm a bit confused, and I'm no formula expert, but why all the 0s if you want to select values from 30-40.

Or do you mean there are 30-40 values to choose from? Even then why the 0s?

PS In some 'versions' of Excel, don't know about OpenOffice, the , is the delimiter not ;. It's an 'international' thing.:)


The 0000's I hope someone can explain.

the , is the delimiter not ;. It's an 'international' thing. ???? or is it an OPENOFFICE issue ????

thank you and NOTED.

But as posted I am trying to get a random value
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,834
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top