+ Reply to Thread
Results 1 to 3 of 3

Generating password by Appending characters to the end of a cell based on length.

  1. #1
    Registered User
    Join Date
    03-09-2015
    Location
    Indiana, Pennsvlania
    MS-Off Ver
    2010
    Posts
    2

    Generating password by Appending characters to the end of a cell based on length.

    I hope that title was descriptive enough, as I don't really know what this would entail.

    I work as the IT Specialist at a small school and am trying to make adding users into our system a little easier using excel formulas. The problem I'm having is creating a formula to make passwords for our users. The usernames are first letter of first name + full last name. The passwords though, are their usernames and if that is less than 8 characters long we add numbers in sequential order. For example: Jim Brown = jbrown12, Tim Bob = tbob1234, Lacey Smithers = lsmithers, etc.

    I already have formulas to get the first initial and last name concatenated and I think I'm on the right track for the password as I can get the length of the name, but I'm having issues with adding the numbers to the end of the string.

    I'm using an =IF() statement right now: =IF(LEN(E2)<8,E2,??)

    Thank you so much to any help at all!

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Generating password by Appending characters to the end of a cell based on length.

    Assuming your first and last names are both contained in cell A1, separated by a space, try this:

    Please Login or Register  to view this content.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Registered User
    Join Date
    03-09-2015
    Location
    Indiana, Pennsvlania
    MS-Off Ver
    2010
    Posts
    2

    Re: Generating password by Appending characters to the end of a cell based on length.

    Thank you so much!! That definitely did the trick. You've definitely saved me much time!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Disallow special characters & have cell length
    By kpxxx in forum Excel General
    Replies: 4
    Last Post: 04-23-2014, 02:27 PM
  2. [SOLVED] Shorten string length if exceeds 31 characters (max sheet name length)
    By r2fro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-03-2014, 05:57 AM
  3. Length of a cell with fixed characters including spaces
    By treboll in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-19-2013, 02:59 PM
  4. [SOLVED] Cell length VBA to add trailing characters until a specified length is reached
    By bkeller83 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2013, 10:43 PM
  5. Replies: 3
    Last Post: 03-08-2012, 03:52 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1