Is there a formula that will separate numbers from text from a cell, I know how to use Left, Right and Mid formulas but they will not work

jcaptchaos2

Well-known Member
Joined
Sep 24, 2002
Messages
1,032
Office Version
  1. 365
Platform
  1. Windows
Here is a couple of examples and the data changes all the time so I can't go in and change the number of characters left or right.

Here are some examples
5452121-699 Red and Blue - Need 545211-699 in one cell and Red and Blue in another
5452121 Red and Blue - Need 545211 in one cell and Red and Blue in another
2881797-02 Red and Blue - Need 2881797-02 in one cell and Red and Blue in another.

Any help would be appreciated.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

If you have 365 another option is
Fluff.xlsm
ABC
1
25452121-699 Red and Blue5452121-699Red and Blue
35452121 Red and Blue5452121Red and Blue
42881797-02 Red and Blue2881797-02Red and Blue
Main
Cell Formulas
RangeFormula
B2:B4B2=TEXTBEFORE(A2," ",1)
C2:C4C2=TEXTAFTER(A2," ",1)
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

If you have 365 another option is
Fluff.xlsm
ABC
1
25452121-699 Red and Blue5452121-699Red and Blue
35452121 Red and Blue5452121Red and Blue
42881797-02 Red and Blue2881797-02Red and Blue
Main
Cell Formulas
RangeFormula
B2:B4B2=TEXTBEFORE(A2," ",1)
C2:C4C2=TEXTAFTER(A2," ",1)
Will do Thanks for the reminder
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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