Genrate random number without repeat in one formula

sohaila

New Member
Joined
Oct 25, 2015
Messages
31
Office Version
  1. 365
Platform
  1. Windows
hello
I want Generate random number in given number number without duplication in three cells in one formula
like give number
2 result
5 60
10 5
60 40
11 with out duplication
40
16
Is it possible?
thanks
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
How about
+Fluff 1.xlsm
ABC
1
2260
352
41040
560
611
740
816
Main
Cell Formulas
RangeFormula
C2:C4C2=INDEX(SORTBY(A2:A8,RANDARRAY(ROWS(A2:A8))),{1;2;3})
Dynamic array formulas.
 
Upvote 0
Thanks for your replay is it possiable without sortby and randarray function
 
Upvote 0
Not that I know with a single formula. Why?
 
Upvote 0
is it possiable without sortby and randarray function
Like this?

22 01 25.xlsm
ABC
1
2260
352
4105
560
611
740
816
9
Random
Cell Formulas
RangeFormula
C2:C4C2=INDEX(A$2:A$8,AGGREGATE(15,6,((ROW(A$2:A$8)-ROW(A$2)+1)/ISNA(MATCH(A$2:A$8,C$1:C1,0))),RANDBETWEEN(1,ROWS(A$2:A$8)-COUNT(C$1:C1))))
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,016
Messages
6,122,700
Members
449,092
Latest member
snoom82

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