itsmevic
asked on
Excel: Add Asterisk to the End
Hi Experts,
I have a column that contains domain names:
Example:
abc.com
xyz.com
321.net
456.ru
213.mine.com
mydomain.123.hellokitty.ne t
and so on...
I'd like to remove everything past the last dot "." and replace it with an asterisk so that the end result looks like this:
http://abc*
https://abc*
http://xyz*
https://xyz*
http://321*
https://321*
http://213.mine*
https://213.mine*
http://mydomain.123.hellokitty*
https://mydomain.123.hellokitty*
1.) drops everything after the lost dot (.)
2.) replaces the last dot and everything after that last dot with an asteriks (*)
3.) creates two entries on that cells value e.g. http://mydomain.123.hellokitty* and https://mydomain123.hellokitty* (This way it captures both HTTP:// protocols)
Any help with this is GREATLY APPRECIATED!
I have a column that contains domain names:
Example:
abc.com
xyz.com
321.net
456.ru
213.mine.com
mydomain.123.hellokitty.ne
and so on...
I'd like to remove everything past the last dot "." and replace it with an asterisk so that the end result looks like this:
http://abc*
https://abc*
http://xyz*
https://xyz*
http://321*
https://321*
http://213.mine*
https://213.mine*
http://mydomain.123.hellokitty*
https://mydomain.123.hellokitty*
1.) drops everything after the lost dot (.)
2.) replaces the last dot and everything after that last dot with an asteriks (*)
3.) creates two entries on that cells value e.g. http://mydomain.123.hellokitty* and https://mydomain123.hellokitty* (This way it captures both HTTP:// protocols)
Any help with this is GREATLY APPRECIATED!
ASKER
Hi byundt! I haven't seen that name in a while...lol! Hope you are doing well during all this craziness! So, I ran the macro, but it seems to be choking on line 27 "ReDim Preserve vResults(1 To k) for some reason.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window