I would like to replace part of the name by ***
For example,
Justin Backham -> J***** B******
Kim Jong Un -> K** J*** U*
but I have no idea how to do this with a formula...could you guys give me a hand pls....
Thank you all!
I would like to replace part of the name by ***
For example,
Justin Backham -> J***** B******
Kim Jong Un -> K** J*** U*
but I have no idea how to do this with a formula...could you guys give me a hand pls....
Thank you all!
How to install your new code
- Copy the Excel VBA code
- Select the workbook in which you want to store the Excel VBA code
- Press Alt+F11 to open the Visual Basic Editor
- Choose Insert > Module
- Edit > Paste the macro into the module that appeared
- Close the VBEditor
- Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)
Please Login or Register to view this content.
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
Thank you so much Sixthsense!
Would you mind to explain the VBA a bit? I would like to learn the logic behind this if you don't mind...thanks!
Another way...
Assuming your string is in A2, try the above UDF on the Sheet like this...Please Login or Register to view this content.
Please Login or Register to view this content.
Regards
sktneer
Treat people the way you want to be treated. Talk to people the way you want to be talked to.
Respect is earned NOT given.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks