ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I select a number from a specific group of numbers? (https://www.excelbanter.com/excel-worksheet-functions/106756-how-do-i-select-number-specific-group-numbers.html)

motol

How do I select a number from a specific group of numbers?
 
I need to randomly select one of the numbers out of the following
group: 1, 5, 7, 8.

Is there a formula I can use?


Sandy Mann

How do I select a number from a specific group of numbers?
 
try:

=--CHOOSE(INT(RAND()*4)+1,"1","5","7","8")

--
HTH

Sandy
In Perth, the ancient capital of Scotland


with @tiscali.co.uk


"motol" wrote in message
ups.com...
I need to randomly select one of the numbers out of the following
group: 1, 5, 7, 8.

Is there a formula I can use?




motol

How do I select a number from a specific group of numbers?
 
Works perfectly! Thanks!



All times are GMT +1. The time now is 05:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com