Random Passphrase Formula or VBA

krisso

Active Member
Joined
Sep 16, 2005
Messages
291
Is there a way to generate a passphrase from a cell value either by formula or VBA. I have done a search this morning and cant find anything that fits what I would like. The cell value will be alphanumeric if this makes any difference

Thanks
Chris
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
You could generate a basic hash using the contents of the cell like this but I'm not sure if it's quite what you're after:


Book1
AB
1TextHash
2Wide Boy Dixon5C7D840
3krisso5456A1
4Mr. Excel Forum79791E4
5Random Passphrase Formula or VBA8365DA40
6wideboydixon4542964
Sheet1
Cell Formulas
RangeFormula
B2{=DEC2HEX(SUM(CODE(MID($A2,ROW(INDIRECT("1:"&LEN($A2))),1))*ROW(INDIRECT("1:"&LEN($A2))))^2)}
Press CTRL+SHIFT+ENTER to enter array formulas.


WBD
 
Upvote 0
Thanks for this WBD, I was looking for a random generation of the cell value so if for example A1 was Wideboydixon200180 then I would get a random value using these characters and numbers but your suggestion is one that if I am honest didnt even know about. So may work for what I need
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,873
Members
449,056
Latest member
ruhulaminappu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top