Sunteți pe pagina 1din 3

7/9/2016

howtogeneraterandomletters?GoogleProductForums

Searchfortopics

Google Docs Help Forum

Actions

public

ADD A REPLY

how to generate random letters ?


by ween

4/3/12

Hello Dear Googlers


I'd like to autogenerate 4LETTERS and numbers as the two following
LETTER NUMBER LETTER NUMBER for example J4P2
or
selecting a number for in row A3= 3
then
LETTER NUMBER LETTER NUMBER + A3 that is to say for example : G6K3
Regards and thank you for help
Ween

Categories: Desktop - Other (please specify) Ask a "how-to" question Sheets

10 posts 943 views 1 expert reply

+1

Best Answer

anandvarma said:
4/3/12

Dear Ween,
are looking for something like this
=char(RANDBETWEEN(65,90))&char(RANDBETWEEN(48,57))&char(RANDBETWEEN(65,90))&char(
RANDBETWEEN(48,57))
anand varma

Marked best answer by ween

+1

Replies

ween said:
4/3/12

Maybe i can use random and Char right ?


regards
+1

anandvarma said:
4/3/12

Dear Ween,
are looking for something like this
=char(RANDBETWEEN(65,90))&char(RANDBETWEEN(48,57))&char(RANDBETWEEN(65,90))&char(
RANDBETWEEN(48,57))
anand varma

https://productforums.google.com/forum/#!topic/docs/Uq7x2kNkTk

+1

1/3

7/9/2016

howtogeneraterandomletters?GoogleProductForums
ween said:
4/3/12

Yes it more or less this ;)


In A2, i have the following :R20AF6B80B23R40Z5
IwanttocreateinB2arandomizedformulausingthelastnumber,ilikedoingthis
char(RANDBETWEEN(65,90))&char(RANDBETWEEN(48,57))&char(RANDBETWEEN(65,90)) and last right
number "5" in red of my A2 row
My second Problem is everytime i make on my sheet another random, B2 and all other random are recreated
!!!! SO my result is not stable.
Regards
Ween
+1

ween said:
4/3/12

I mean result should be something like Q2X5


regards
Ween
+1

ween said:
4/3/12

I have tried the following :char(RANDBETWEEN(65,90))&char(RANDBETWEEN(48,57))&char(RAN


DBETWEEN(65,90))&right(A2)
For the rst time it returns good, but when i use again a formula or when i refresh the spreadsheet, the result
change because it re-randomize again !!!
I don't have solution to make the result stable :(
regards
Ween
+1

anandvarma said:
4/3/12

Dear Ween,
the results will be unstable because of use of Randbetween function, however you canstabilizethis by
selecting the cell and go to paste special and select past values only.
anand varma
+1

ween said:
4/3/12

Hello Anand,
So you mean there is NO WAY to have a stable result ? Because if I past the cell everytime it's becomes hard
;).
I tried to make something likechar(RANDBETWEEN(48,57,1)) 1 meaning the number of time this cell should
refresh, but it doesn't change :( It's still unstable.
Someone should nd a function to arrange this right ? I've think of comparing 2 cells, but with the permanent
change it's still quasi impossible.
Regards,
Ween
+1

https://productforums.google.com/forum/#!topic/docs/Uq7x2kNkTk

2/3

7/9/2016

howtogeneraterandomletters?GoogleProductForums
HarbyNotts said:
4/3/12

You can do the following:


In one cell, e.g. Sheet1!D2 put inAnand's RANDBETWEEN function
In another cell e.g. B2 you can do the following:
select from the menu Data>Validation... Criteria : Items from a list : Create list from range [Sheet1!D2] Save
Then go to cell B2 and choose the value that appears. This will then be xed.
I have demonstrated this here:https://docs.google.com/spreadsheet/ccc?key=
0AvhOXv5OGFq6dFNsU0dHTDRfU05BcUtqX2RtODE5M2c
If you need to compute just one randbetween, then this idea is ne. If you need to compute many, then you
will have to do something similar but more complicated (basically creating an array of randomized values).
+1

ween said:
4/3/12

Dear Harby,
Your way to do is very interesting, thank you for your example. But even with all this... I had to change my
generating ticket system, because no real way to get an UNIQUE and stable data with it. Of course As you
explain if I copy and past the result and then use it, it's doable but it's still a kind of DIY... :(
I think google can make an optional extra parameter in this function like a comma with the number of time
we accept the system to randomise
RAND(;1) should mean just one time, andRANDBETWEEN(X,Y5)shouldmeanmaximumofchangingof
RANDBETWEENis5
I'msurprisebecauseuniqueRandomizationexistinallthecomputerlanguages,butimustadmitthatit's
noteasytostopitwhenonlinecalculationisfulltime.Moreover,thematterofkeepthecountofeach
randomizemayrequiremorememoryandservers
Manythanksforyourkindhelpandyourspreadsheet
Ween
+1

https://productforums.google.com/forum/#!topic/docs/Uq7x2kNkTk

3/3

S-ar putea să vă placă și