String Manipulation

poleary2000

Active Member
Joined
Apr 1, 2002
Messages
354
All,

I have the following situation.

I have ranges named the following:

2002.03.01!Monday2
2002.03.01!Thursday
2002.03.01!Friday
2002.03.01!SaturdayWO2
etc.

Is there anyway I can capture all information to the right of the ! and set it equal to a variable? I have been trying Left and Right with no success.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
If your data is in cell A1,

=MID(A1,FIND("!",A1)+1,1000)

this will isolate everything after the !.
You can then refer to this result in other formulas.
(If the data after the ! is likely to be longer than 1000 characters, increase the number)
 
Upvote 0
On 2002-04-09 06:37, poleary2000 wrote:
Thanks! I was actually trying just that!

How about using data>text to columns, select delimited, click next and as delimiter choose
other and put an Exclamation mark in the other box, click next, click in the left column, select "do not import column (skip)", click Finish..

No need for formulas

Regards,

Peo Sjoblom
 
Upvote 0

Forum statistics

Threads
1,214,403
Messages
6,119,308
Members
448,886
Latest member
GBCTeacher

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