To identify the position of the first alphabetic letter in a string and take all values before that letter

AnTIW

New Member
Joined
Aug 14, 2018
Messages
5
Hello,
I am trying to implement within a macro blow how to identify the position of the first alphabetic letter a string and take all values before that letter.
This is a part the macro below:
If xsplit Like "*,*" Then
For I = 1 to 100
'line below where I want to do that
Sheets("x").Cells(I,1) = Trim(Split(xsplit, ",")(I-1))
Next I

Example of the data in one cell:
1234 5679123 data sample, 123456789 data, 123456 12345678 data sample,

Thank you so much for your help
 
Would it be possible for one of you to try to implement it in the script that I posted above?
Without knowing what all your data is like, how it is laid out and exactly what you are trying to achieve, it is very difficult to try to read somebody else's code and from that work out exactly what it is trying to do.
 
Upvote 0

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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