Is there a VBA code that could convert initials to full names

Tara_A_Data

New Member
Joined
Sep 23, 2024
Messages
4
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Dear Mr Excel,
I have a huge spreadsheet that downloads from our data system with staff initials. I need to add all the actual names onto this (firstname, surname), is there a VBA code that I could use to assist with ease?
I would be very grateful if someone could assist me with this. Please let me know?
@Tara_A_Data

The Initials all pull from the database like this ($CAL) or $MSH - these are what I would like to convert to full names using a listing of sorts but ideally via a VBA code.

Wed
SK4L1/Lr ($CAL) ($BG) $MSH ($SHS) ($AJW) (#HALL)
SK4L1/Wi ($CAL) ($BG) $MSH ($SHS) ($AJW) (#MP3)
SK4L1/En ($CAL) ($BG) $MSH ($SHS) ($AJW) (#MP3)
SK4L1/Bc ($CAL) ($BG) $ACL ($SHS) ($AJW) (#MP3)
SK4L1/Ck ($CAL) $ME ($BG) ($SHS) ($KTL) ($AJW) (#01)
SK4L1/Ck ($CAL) $ME ($BG) ($SHS) ($KTL) ($AJW) (#01)
Pastoral
Wed
PreVc1/Hc ($EB) ($JEM) $ES ($LWS) (#GRDN);PreVc1/Bm $JPH (#GRG);PreVc1/Cb $ME ($KTL) (#01)
PreVc1/Hc ($EB) ($JEM) $ES ($LWS) (#GRDN);PreVc1/Bm $JPH (#GRG);PreVc1/Cb $ME ($KTL) (#01)
PreVc1/Cl ($CSW) ($JEM) (#OFF);PreVc1/Tt $JM (#13)
PreVc1/Cl ($CSW) ($JEM) (#OFF);PreVc1/Tt $JM (#13)
PreVc1/Cl ($CSW) ($JEM) (#OFF);PreVc1/Tt $JM (#13)
PreVc1/Cl ($CSW) ($JEM) (#OFF);PreVc1/Tt $JM (#13)
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Do you have a list of full names?
Please show the expected result for your sample data.
 
Upvote 0

Forum statistics

Threads
1,224,874
Messages
6,181,504
Members
453,048
Latest member
engkinooi

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