# Right, Left, Mid

#### bschulze

##### Active Member
I am looking for a right, left, mid function that goes up a a certain variable. For instance, I have a cell that needs to be broken out into two cells, The seperation indicator is "#". I have been playing around with it and can not get this to work. I know that it is simple but my brain is not functioning today.

Example:
Column A Column B
111#2222 I need 111 2222
3#1 I need 3 1

Sorry I am wasteing a post on this.

### Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

#### barry houdini

##### MrExcel MVP
Try

=LEFT(A1,FIND("#",A1)-1)

and

=REPLACE(A1,1,FIND("#",A1),"")

or use Data > Text to Columns with # as delimiter

#### Asala42

##### Well-known Member
Data/Text to Columns can do it if you don't mind a non-formula approach.

Formula Wise I'd go with a left(find) kind of thing:

=LEFT(A2,FIND("#",A2)-1)
=RIGHT(A2,LEN(A2)-LEN(B2)-1)

#### bschulze

##### Active Member
it works great...thanks for your help

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,018
Messages
5,834,973
Members
430,330
Latest member
drAli77

### 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.

### Which adblocker are you using?

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

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