Please help this Newbie to copy certain Text

NewbieForeva

New Member
Joined
Jun 29, 2011
Messages
3
Please help

I have the following data field

HX -2894 _STA
XAS -2491B
AT -2891B1

What I need is to make 2 seperate column
First column will take just the HX, XAS, AT part
Second column will take just 2894, 2491B, and 2891B1

Can someone please help me on what to do with this?

Thanks
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Welcome to the board.

Try:
Code:
=TRIM(LEFT(A1,FIND("-",A1)-1))
For the left part and
Code:
=TRIM(RIGHT(A1,LEN(A1)-FIND("-",A1)))
 
Upvote 0
If it's always 4 digits long then:
Code:
=LEFT(TRIM(RIGHT(A1,LEN(A1)-FIND("-",A1))),4)
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,777
Members
452,942
Latest member
VijayNewtoExcel

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