Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
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?






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula to Replace or eliminate any sheetname(s) in formula string EagleOne Excel Discussion (Misc queries) 0 September 20th 06 06:36 PM
How do I replace last numeric string from a alphanumeric string? Christy Excel Discussion (Misc queries) 3 August 11th 06 12:17 AM
Position in a string [email protected] Excel Worksheet Functions 5 March 2nd 06 03:13 PM
find nth position of a string TUNGANA KURMA RAJU Excel Discussion (Misc queries) 6 October 18th 05 01:25 PM
find position of a number in a string fullers80 Excel Worksheet Functions 1 September 6th 05 03:47 PM


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

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

About Us

"It's about Microsoft Excel"