VBA to remove characters until first letter?

Coyotex3

Active Member
Joined
Dec 12, 2021
Messages
496
Office Version
  1. 365
Platform
  1. Windows
Hello guys, This one has me stumped. I'm trying to create a code that will allow me to remove all the characters up to the first letter found.

Here is what the original data looks like on Column A and the Expected Results in Column C

Book3
ABC
11001-OO-BoomOO-Boom
2
31005-AA-BangAA-Bang
4
51009 - AA-Boom BangAA-Boom Bang
6
71002 - EE-BoonEE-Boon
8
90099-II-BeenII-Been
10
111001-OO-BoomOO-Boom
12
131005-AA-BangAA-Bang
14
151009 - AA-Boom BangAA-Boom Bang
16
171002 - EE-BoonEE-Boon
18
190099-II-BeenII-Been
20
211001-OO-BoomOO-Boom
22
231005-AA-BangAA-Bang
24
251009 - AA-Boom BangAA-Boom Bang
26
271002 - EE-BoonEE-Boon
28
290099-II-BeenII-Been
Sheet1


Any ideas on the best way to achieve this?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Heres a possible assuming always the - between.

=IFERROR(TRIM(MID(A1,FIND("-",A1)+1,99)),"")
 
Upvote 0
Solution
Another option if you have the new functions
Excel Formula:
=IF(A1="","",TEXTAFTER(A1,"-",1))
 
Upvote 0
Another option if you have the new functions
Excel Formula:
=IF(A1="","",TEXTAFTER(A1,"-",1))
Fluff on it again. I wish I knew all the new functions like you!!! Thanks for sharing
 
Upvote 0
This one works as well, this one show "#Value" if the cells are empty.
 
Upvote 0

Forum statistics

Threads
1,215,584
Messages
6,125,677
Members
449,248
Latest member
wayneho98

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