Hey guys,
I want the rand between funcution will do only unique names and not duplicate.
My code:
=INDEX($G$13:$G$21,RANDBETWEEN(1,9))
Tnx ahead, Daniel.
Hey guys,
I want the rand between funcution will do only unique names and not duplicate.
My code:
=INDEX($G$13:$G$21,RANDBETWEEN(1,9))
Tnx ahead, Daniel.
C2
=SMALL(IF(ISNA(MATCH(COLUMN($A$1:INDEX($1:$1,9)),$B2:B2,)),COLUMN($A$1:INDEX($1:$1,9))),RANDBETWEEN(1,9-COUNT($B2:B2))) as array formula, pull right
sry didnt understand
Did not understand what?
Last edited by tim201110; 10-07-2017 at 06:59 AM.
its duplicate man..
Use an array formula as a helper column, here shown in K13:
=LARGE(ROW($1:$9)*NOT(COUNTIF($K$12:K12,ROW($1:$9))),RANDBETWEEN(1,10-ROW(A1)))
Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.
You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.
Don't type the curly brackets yourself - it won't work...
Then use this in L13:
=INDEX($G$13:$G$21,K13)
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU
But how i use that without the "Helper" I dont need it..
You might not want it, but you do need it, I think. It can be hidden, or even be on another sheet... but couldn't think of a simple way of getting rid of it.
OK. It came to me...
It's a bit of a monster formula but it works. To make it look a bit simpler (and to ease the typing hassle) I created a Named Range, imaginatively called "List" (CTRL-F3 to view) which covers your input cells. Then use this array formula , here used in I13:
=INDEX(List,LARGE((ROW(List)-MIN(ROW(List))+1)*(COUNTIF($I$12:I12,List)<>COUNTIF(List,List)),RANDBETWEEN(1,SUM(--(COUNTIF($I$12:I12,List)<>COUNTIF(List,List))))))
Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.
You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.
Don't type the curly brackets yourself - it won't work...
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks