Skip to Main Content
Computing with Excel and VBA
book

Computing with Excel and VBA

by S.I. Krishan
August 2008
Beginner to intermediate content levelBeginner to intermediate
298 pages
10h 49m
English
Jones & Bartlett Learning
Content preview from Computing with Excel and VBA
Chapter 6 Working with Text, Dates, and Times132
function also replaces substrings; however, it does so by going to the indicated position.
As an example, consider the following formula:
=REPLACE(“Half this game is ninety percent mental”,19,4,
“seven”)
This will return the string “Half this game is seventy percent mental”. The
second argument, 19 in the above formula, specifies the beginning position for replace-
ment. The third argument, 4 in the above formula, specifies how many characters
should be replaced. The last argument in the REPLACE function, “seven” in the above
example, specifies the replacement substring.
Try It
Copy a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Excel Programming with VBA Starter

Excel Programming with VBA Starter

Robert F Martin
Programming Excel with VBA and .NET

Programming Excel with VBA and .NET

Jeff Webb, Steve Saunders

Publisher Resources

ISBN: 9780763756680