0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

コピペ用Excelでランダム文字列ワンライナー

Posted at

どこかのセルに文字種や文字数をまとめておくと参照できるのだけど、
セル固定なども考えずに数式コピペ→オートフィル→範囲選択コピー→値貼り付け→保存ってやりたいとき、あるよね…。

というわけで、半角英数大小とハイフン、アンダーバーを、5-16文字出力したいときの例

MS Excel関数
=CONCAT(MID("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",RANDARRAY(RANDBETWEEN(5,16),,1,LEN("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_"),TRUE),1))

文字種は2か所にペースト(数えるのが面倒なのでLENにもコピペする)
RANDBETWEEN(5,16)で文字数を制御

参考: いきなり答える備忘録 -(Excel)ランダムなパスワードを作成する

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?