Using an Asterisk "*" Character in Replace CommandLast reviewed: October 31, 1994Article ID: Q29999 |
The information in this article applies to:
SUMMARYAfter I typed the following formula, I attempted to replace "*1000" with an empty "With" field:
=IF(SUM(M4:M6)<1,NA(),M8*1000)Doing this should have changed the formula to the following:
=IF(SUM(M4:M6)<1,NA(),M8)However, when the replacement formula was executed, Microsoft Excel deleted everything but the last ")."
MORE INFORMATIONMicrosoft Excel uses the asterisk (*) as a wildcard character that can take the place of one or more characters in a string. In the above Replace command, Microsoft Excel correctly interpreted the "*" as one or more characters preceding the "1000". It replaced these characters with the contents of the "With" field, which in this case was empty. To have Microsoft Excel interpret the "*" as a regular character in a string instead of as a wildcard character, precede the "*" with a tilde character (~). The correct form to remove "*1000" from the formula is "~*1000" (without the quotation marks).
|
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |