ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How can I control the length of characters a code will return? (https://www.excelbanter.com/excel-discussion-misc-queries/82127-how-can-i-control-length-characters-code-will-return.html)

Tayo

How can I control the length of characters a code will return?
 
After generating random characters using this command given by a member of
this discussion group:

=MID(A1,5+INT(RAND()*LEN(A1)),5),

how do I correct the following outputs?

(1) How can I make sure that the characters generated are not repeated in
any of the cells?

(2) Some cells returns null characters while some others return characters
whose length is less than the specified length in LEN (5 in this case). How
can I control the length of characters the code will return?



All times are GMT +1. The time now is 03:23 PM.

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