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

S

Seaq

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?
 
T

T. Valko

Try it like this:

~*sum(...)

In Edit>Replace 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 ~.
 
S

Seaq

Very useful, thanks a lot!

T. Valko said:
Try it like this:

~*sum(...)

In Edit>Replace 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 ~.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top