+ Reply to Thread
Results 1 to 6 of 6

Automatic convert of initials to Full name

  1. #1
    Forum Contributor
    Join Date
    11-06-2021
    Location
    Tripoli
    MS-Off Ver
    Still using 2007 in 2023
    Posts
    289

    Red face Automatic convert of initials to Full name

    Hello everyone,
    I hope you're all well. I have a simple Excel task I'd like help with through vba.

    I want any initials I write in column A to automatically convert to the corresponding names in column D.

    Importantly, the names populated in column A should not change, even if the content in columns C or D is deleted.

    The list in columns C and D only goes up to row 100.

    If the initials written in column A are not found in column C, I would like the cell in column A to display "not found."

    Thank you for your assistance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,359

    Re: Automatic convert of initials to Full name

    Please Login or Register  to view this content.
    I created named range "In_Names" (100 rows)
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Automatic convert of initials to Full name

    Hi there,

    Take a look at the attached version of your workbook and see if it does what you need. It uses the following code:

    Please Login or Register  to view this content.
    The highlighted values may be altered to suit your requirements.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    11-06-2021
    Location
    Tripoli
    MS-Off Ver
    Still using 2007 in 2023
    Posts
    289

    Re: Automatic convert of initials to Full name

    When working with both Greg and John, all codes operate absolutely fine. However, I've noticed that when Excel suggests a predictive full name and I press Enter, it returns 'not found,' even though I intended to select that predictive name. In essence, I want the code also to recognize the predictive name when I press Enter for it, considering it as true in such cases. So if i start to type "at" and predictive text pop up to be "Ahmad tarraf", then I may automatically click enter to return "Ahmad tarraf", and not to be bounded by inserting only initials in that case. Thanks a lot

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,359

    Re: Automatic convert of initials to Full name

    Please Login or Register  to view this content.
    Last edited by JohnTopley; 12-12-2023 at 03:54 PM. Reason: Changed code for test of predictive text

  6. #6
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Automatic convert of initials to Full name

    Hi again,

    Many thanks for your feedback and also for the Reputation increase - much appreciated!

    Glad I was able to help.

    Best regards,

    Greg M

+ 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. From full names to initials
    By shir02 in forum Excel General
    Replies: 1
    Last Post: 09-04-2017, 04:18 PM
  2. Get Initials out of Full Name
    By Accusoft in forum Excel General
    Replies: 1
    Last Post: 04-01-2014, 03:05 PM
  3. Type Initials, Auto Fills Full Name
    By woolyflick in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-29-2013, 03:51 PM
  4. Find all initials in Full Name...?
    By question.maker in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2013, 04:08 PM
  5. [SOLVED] Formula to Convert First/Last Name to 1st Letter of 1st Name + Full Last Name
    By jordan1214 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-28-2013, 02:17 AM
  6. [SOLVED] Formula required for initials of names and combining initials with other text
    By iDarkAngel in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-07-2012, 11:22 AM
  7. how do i convert names to initials in excel
    By dave glynn in forum Excel General
    Replies: 2
    Last Post: 09-26-2005, 12:05 PM

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