PC Review


Reply
Thread Tools Rate Thread

how do I delete all text before or after a symbol?

 
 
=?Utf-8?B?VG9ueQ==?=
Guest
Posts: n/a
 
      26th Jan 2007
I have columns populated as follows:
variable length characters = variable length characters
for example,
TVPosPctSP = 0.00 percent
I want to copy the entire column,
then in the 1st column delete all of the characters in each cell that
precede the equal sign,
and in the second column delete all of the characters in each cell that
follow the equal sign. (and I can include the equal sign in one of those
passes)
is there a wildcard character that identifies everything before an
associated parameter, such as the equal sign? (or everything after an
associated parameter, such as the equal sign?)
thank you
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9obiBCdW5keQ==?=
Guest
Posts: n/a
 
      26th Jan 2007
If info is in column A
column B =LEFT(A1,FIND("=",A1))
column C =RIGHT(A1,FIND("=",A1))
--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"Tony" wrote:

> I have columns populated as follows:
> variable length characters = variable length characters
> for example,
> TVPosPctSP = 0.00 percent
> I want to copy the entire column,
> then in the 1st column delete all of the characters in each cell that
> precede the equal sign,
> and in the second column delete all of the characters in each cell that
> follow the equal sign. (and I can include the equal sign in one of those
> passes)
> is there a wildcard character that identifies everything before an
> associated parameter, such as the equal sign? (or everything after an
> associated parameter, such as the equal sign?)
> thank you

 
Reply With Quote
 
=?Utf-8?B?VG9ueQ==?=
Guest
Posts: n/a
 
      26th Jan 2007
Excellent ! Thank you John. That just saved me alot of keystrokes.
appreciate the answer.

"Tony" wrote:

> I have columns populated as follows:
> variable length characters = variable length characters
> for example,
> TVPosPctSP = 0.00 percent
> I want to copy the entire column,
> then in the 1st column delete all of the characters in each cell that
> precede the equal sign,
> and in the second column delete all of the characters in each cell that
> follow the equal sign. (and I can include the equal sign in one of those
> passes)
> is there a wildcard character that identifies everything before an
> associated parameter, such as the equal sign? (or everything after an
> associated parameter, such as the equal sign?)
> thank you

 
Reply With Quote
 
Alan
Guest
Posts: n/a
 
      27th Jan 2007
Hello John,

After reading your message, I decided to try your code as a replacement for
my REPLACE code. I am separating "QUANTITY: X". X is a variable integer
between 1 and 100. My goal is to extract the quantity as a number. When I
try your code, column B results in "QUANTITY:" as expected. Column C results
in:

when X =
1-9: ANTITY: X
10-99: NTITY: X
100: TITY: X

I don't understand the results I am getting and was wondering if you might
possibly know. Is the colon the problem? I tried a space between the quotes
and that gave even more unexpected results.

I would appreciate your feedback,

Thanks,

Alan


"John Bundy" <(E-Mail Removed)(remove)> wrote in message
news:AA06A8E9-7E52-4376-AB3C-(E-Mail Removed)...
> If info is in column A
> column B =LEFT(A1,FIND("=",A1))
> column C =RIGHT(A1,FIND("=",A1))
> --
> -John Northwest11
> Please rate when your question is answered to help us and others know what
> is helpful.
>
>
> "Tony" wrote:
>
>> I have columns populated as follows:
>> variable length characters = variable length characters
>> for example,
>> TVPosPctSP = 0.00 percent
>> I want to copy the entire column,
>> then in the 1st column delete all of the characters in each cell that
>> precede the equal sign,
>> and in the second column delete all of the characters in each cell that
>> follow the equal sign. (and I can include the equal sign in one of those
>> passes)
>> is there a wildcard character that identifies everything before an
>> associated parameter, such as the equal sign? (or everything after an
>> associated parameter, such as the equal sign?)
>> thank you



 
Reply With Quote
 
=?Utf-8?B?Sm9obiBCdW5keQ==?=
Guest
Posts: n/a
 
      27th Jan 2007
The left is easy and straightforward, right is a little tougher, you need to
subtract the length
=RIGHT(A16,LEN(A16)-FIND(" ",A16))
this finds the blank before the number, or you could do this
=RIGHT(A16,LEN(A16)-FIND(":",A16))


--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


"Alan" wrote:

> Hello John,
>
> After reading your message, I decided to try your code as a replacement for
> my REPLACE code. I am separating "QUANTITY: X". X is a variable integer
> between 1 and 100. My goal is to extract the quantity as a number. When I
> try your code, column B results in "QUANTITY:" as expected. Column C results
> in:
>
> when X =
> 1-9: ANTITY: X
> 10-99: NTITY: X
> 100: TITY: X
>
> I don't understand the results I am getting and was wondering if you might
> possibly know. Is the colon the problem? I tried a space between the quotes
> and that gave even more unexpected results.
>
> I would appreciate your feedback,
>
> Thanks,
>
> Alan
>
>
> "John Bundy" <(E-Mail Removed)(remove)> wrote in message
> news:AA06A8E9-7E52-4376-AB3C-(E-Mail Removed)...
> > If info is in column A
> > column B =LEFT(A1,FIND("=",A1))
> > column C =RIGHT(A1,FIND("=",A1))
> > --
> > -John Northwest11
> > Please rate when your question is answered to help us and others know what
> > is helpful.
> >
> >
> > "Tony" wrote:
> >
> >> I have columns populated as follows:
> >> variable length characters = variable length characters
> >> for example,
> >> TVPosPctSP = 0.00 percent
> >> I want to copy the entire column,
> >> then in the 1st column delete all of the characters in each cell that
> >> precede the equal sign,
> >> and in the second column delete all of the characters in each cell that
> >> follow the equal sign. (and I can include the equal sign in one of those
> >> passes)
> >> is there a wildcard character that identifies everything before an
> >> associated parameter, such as the equal sign? (or everything after an
> >> associated parameter, such as the equal sign?)
> >> thank you

>
>
>

 
Reply With Quote
 
Alan
Guest
Posts: n/a
 
      27th Jan 2007
Thanks John,

I need to read up on LEN.

Alan


"John Bundy" <(E-Mail Removed)(remove)> wrote in message
news:582A64AD-BB45-49F3-9102-(E-Mail Removed)...
> The left is easy and straightforward, right is a little tougher, you need
> to
> subtract the length
> =RIGHT(A16,LEN(A16)-FIND(" ",A16))
> this finds the blank before the number, or you could do this
> =RIGHT(A16,LEN(A16)-FIND(":",A16))
>
>
> --
> -John Northwest11
> Please rate when your question is answered to help us and others know what
> is helpful.
>
>
> "Alan" wrote:
>
>> Hello John,
>>
>> After reading your message, I decided to try your code as a replacement
>> for
>> my REPLACE code. I am separating "QUANTITY: X". X is a variable integer
>> between 1 and 100. My goal is to extract the quantity as a number. When I
>> try your code, column B results in "QUANTITY:" as expected. Column C
>> results
>> in:
>>
>> when X =
>> 1-9: ANTITY: X
>> 10-99: NTITY: X
>> 100: TITY: X
>>
>> I don't understand the results I am getting and was wondering if you
>> might
>> possibly know. Is the colon the problem? I tried a space between the
>> quotes
>> and that gave even more unexpected results.
>>
>> I would appreciate your feedback,
>>
>> Thanks,
>>
>> Alan
>>
>>
>> "John Bundy" <(E-Mail Removed)(remove)> wrote in message
>> news:AA06A8E9-7E52-4376-AB3C-(E-Mail Removed)...
>> > If info is in column A
>> > column B =LEFT(A1,FIND("=",A1))
>> > column C =RIGHT(A1,FIND("=",A1))
>> > --
>> > -John Northwest11
>> > Please rate when your question is answered to help us and others know
>> > what
>> > is helpful.
>> >
>> >
>> > "Tony" wrote:
>> >
>> >> I have columns populated as follows:
>> >> variable length characters = variable length characters
>> >> for example,
>> >> TVPosPctSP = 0.00 percent
>> >> I want to copy the entire column,
>> >> then in the 1st column delete all of the characters in each cell that
>> >> precede the equal sign,
>> >> and in the second column delete all of the characters in each cell
>> >> that
>> >> follow the equal sign. (and I can include the equal sign in one of
>> >> those
>> >> passes)
>> >> is there a wildcard character that identifies everything before an
>> >> associated parameter, such as the equal sign? (or everything after an
>> >> associated parameter, such as the equal sign?)
>> >> thank you

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to delete paragraph symbol Los Gatos Gal Microsoft Outlook Contacts 0 9th Feb 2010 01:58 AM
Delete anything with # symbol in field =?Utf-8?B?U3VwZQ==?= Microsoft Access 4 7th Nov 2007 10:06 PM
USING EXCEL, delete all text right of the "!" symbol =?Utf-8?B?Ym95ZA==?= Microsoft Excel Worksheet Functions 5 23rd Sep 2006 07:52 PM
How do I replace a 'symbol' with another 'symbol' in a large text =?Utf-8?B?Y2hpbGxlcnR3aXN0MjU=?= Microsoft Word Document Management 2 30th Jan 2006 01:39 PM
Delete all file using * symbol Pujo Aji Microsoft C# .NET 2 18th Jan 2005 08:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:03 PM.