Is it possible to place the limited amount of same number/alphabet in a given numbers of cells?
For example I want to have 5 same alphabets to be placed randomly in 15 cells for the same row. Can it be done?
Is it possible to place the limited amount of same number/alphabet in a given numbers of cells?
For example I want to have 5 same alphabets to be placed randomly in 15 cells for the same row. Can it be done?
I'm a litle clueless as to what your trying to do, but maybe in B1 and copy down,
=if(rand() < 0.3, "a", "")
Entia non sunt multiplicanda sine necessitate
As in in 1 column i select 20 rows/cells in that column..i would like excel to place 5 A randomly in that 20 cells. Placing of the alphabet has to be done randomly.
Is that possible?
Last edited by Excript; 12-22-2008 at 12:59 AM.
Also a way in vba would be something like(in a standard module) :
If neither of these solutions are what you are after maybe some more clarification is needed..Please Login or Register to view this content.
Hope this helps!
You want to place exactly 5 a's in B1:B20 starting in B1?
In B1: =IF(RAND() <= 0.2, "a", "")
In B2 and copy down to B20: =IF(RAND() < (5 - COUNTIF(B$1:B1, "a") )/ (21 - ROW()), "a", "")
Shg Thanks for finding me that formula but I do have a question.
I noticed that the formula runs its course again when I filter the alphabets.
Is there anyway to fix it?
Like I would like to filter all the blank cells and show only the random alphabets but once i do that, it will randomly place it again.
Thanks.
Last edited by Excript; 12-22-2008 at 09:53 PM.
I'm sorry, I don't understand any of that.I noticed that the formula runs its course again when I filter the alphabets.
Is there anyway to fix it?
Like I would like to filter all the blank cells and show only the random alphabets but once i do that, it will randomly place it again.
Maybe you could add the formula, copy the results, and paste over itself as values.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks