A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to replace a formula string with * in the leading position?



 
 
Thread Tools Display Modes
  #1  
Old June 11th, 2009, 06:13 AM posted to microsoft.public.excel.worksheet.functions
Seaq
external usenet poster
 
Posts: 9
Default How to replace a formula string with * in the leading position?

It's convenient to use Edit -- Replace tool to change part of a formula
string with repeated characters, but strings that starting leading by the
asterisk mark (*) seem to be an exception, for instance, if your want to
replace a selected area with something like b7*sum(....) to b7/sum(...), you
input find "*sum(...)" replace by "/sum(...)", all you can get is "/sum(...)"

Maybe (*) is reserved by Excel, but are there ways to solve this problem?
  #2  
Old June 11th, 2009, 07:15 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default How to replace a formula string with * in the leading position?

Try it like this:

~*sum(...)

In EditReplace Excel thinks the asterisk is a wildcard. You need to tell it
that the asterisk is the literal asterisk character. You do that by
preceding the asterisk or any other wildcard like the question mark ? with
the tilde character ~.

--
Biff
Microsoft Excel MVP


"Seaq" wrote in message
...
It's convenient to use Edit -- Replace tool to change part of a formula
string with repeated characters, but strings that starting leading by the
asterisk mark (*) seem to be an exception, for instance, if your want to
replace a selected area with something like b7*sum(....) to b7/sum(...),
you
input find "*sum(...)" replace by "/sum(...)", all you can get is
"/sum(...)"

Maybe (*) is reserved by Excel, but are there ways to solve this problem?



  #3  
Old June 12th, 2009, 09:39 AM posted to microsoft.public.excel.worksheet.functions
Seaq
external usenet poster
 
Posts: 9
Default How to replace a formula string with * in the leading position

Very useful, thanks a lot!

"T. Valko" wrote:

Try it like this:

~*sum(...)

In EditReplace Excel thinks the asterisk is a wildcard. You need to tell it
that the asterisk is the literal asterisk character. You do that by
preceding the asterisk or any other wildcard like the question mark ? with
the tilde character ~.

--
Biff
Microsoft Excel MVP


"Seaq" wrote in message
...
It's convenient to use Edit -- Replace tool to change part of a formula
string with repeated characters, but strings that starting leading by the
asterisk mark (*) seem to be an exception, for instance, if your want to
replace a selected area with something like b7*sum(....) to b7/sum(...),
you
input find "*sum(...)" replace by "/sum(...)", all you can get is
"/sum(...)"

Maybe (*) is reserved by Excel, but are there ways to solve this problem?




  #4  
Old June 12th, 2009, 04:45 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default How to replace a formula string with * in the leading position

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Seaq" wrote in message
...
Very useful, thanks a lot!

"T. Valko" wrote:

Try it like this:

~*sum(...)

In EditReplace Excel thinks the asterisk is a wildcard. You need to tell
it
that the asterisk is the literal asterisk character. You do that by
preceding the asterisk or any other wildcard like the question mark ?
with
the tilde character ~.

--
Biff
Microsoft Excel MVP


"Seaq" wrote in message
...
It's convenient to use Edit -- Replace tool to change part of a formula
string with repeated characters, but strings that starting leading by
the
asterisk mark (*) seem to be an exception, for instance, if your want
to
replace a selected area with something like b7*sum(....) to
b7/sum(...),
you
input find "*sum(...)" replace by "/sum(...)", all you can get is
"/sum(...)"

Maybe (*) is reserved by Excel, but are there ways to solve this
problem?






 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:20 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.