Extracting text from a cell based on conditions

aavvijit

Board Regular
Joined
Mar 23, 2009
Messages
75
I am trying to write a piece of VB or a formula that will enable me to extract a text from a alphanumeric field. For example,
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p> </o:p>
A1 : WHYTEHALL CLASSIC 375ML CIVIL
A2 : SAV 750ML CIVIL
<o:p> </o:p>
Now I want to have my result as to extract all text characters until the beginning of numbers in a cell. (Example : “WHYTEHALL CLASSIC” for cell A1 and “SAV” for cell A2)
<o:p> </o:p>
To add to the problem is the fact that the position of the 1<SUP>st</SUP> number in the cell is not always the same - i.e. some cells contain number in 8 position and some in 10 position)<o:p></o:p>
<o:p> </o:p>
I've tried various methods but to no avail,
Hope someone can help<o:p></o:p>
<o:p> </o:p>
Thanks in advance.
Abhijit<o:p></o:p>
<o:p> </o:p>
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Dear Colin,

Excellent, Hope my association with your forum will be really enchanting experience.

Thanks, Abhijit
 
Upvote 0

Forum statistics

Threads
1,203,269
Messages
6,054,467
Members
444,727
Latest member
Mayank Sharma

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