Right, Left, Mid

bschulze

Active Member
Joined
Jun 2, 2005
Messages
289
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

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Try

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

and

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

or use Data > Text to Columns with # as delimiter
 
Upvote 0
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)
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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