Appendix 372
String Functions
A string is a series of characters. The string functions extract text
(including numbers) or return numbers based on text. For example, you
can extract the last four digits of a stock number that might identify the
manufacturer of a product.
Code numbers internally to represent each character. The CHAR and
CODE string functions convert Ensemble codes to characters and vice
versa. For a complete list of the Ensemble character codes, see next the
section, Character Codes.
Function
Description
Example
CHAR
(value)
Convertsa code number to characters
. You
can use values between 1 and 255. The function
of CHAR () is the opposite of CODE(). If the
value is out of the 32Ć255 range, CHAR returns a
#VALUE# error. For a list of character codes, see
next section.
=CHAR(65)
returns
A.
=CHAR(68)
returns
D.
CLEAN
(string)
Stripsunprintablecharacters
from a string.
Useful for removing non-printable characters
from imported text.
=CLEAN(CHAR(13)&text")
returns
text.
CODE
(string)
Convertsa character to its code number
=CODE(A")
returns
65.
=CODE(D")
returns
68.
=CODE(Now is the time")
returns
78.
EXACT
(string1,
string2)
Compares two strings for an
exact match
.
EXACT is case sensitive, meaning that April"
and april" are not considered an exact match. If
string1
and
string2
match, EXACT returns 1; if
they do not match, EXACT returns 0. Its action is
similar to the equals sign except the = is not
case-sensitive. This is particularly useful with IF
statements.
=EXACT(iteration","iteration")
returns
1.
=EXACT(iteration","Iteration")
returns
0.
=IF (EXACT(A5,Hotel"),1000,0)
returns
1000 if
A5 contains Hotel".
=IF(EXACT(A5=Hotel"),1000,0)
returns
1000 if
A5 contains Hotel" or hotel".
FIND
(substring,
string, start)
Searches within a string for a specific string
.
Returns the numeric position of the first
character of the
substring
. You can specify the
numeric position of the starting character for the
search with the
start
argument. The first
character in the string is in position 0.
=FIND(all","Now is the time for all good
men",0)
returns
20.
=FIND(i","Mississippi",3)
returns
4.
LEFT
(string, num)
Returns the characters in the leftmost
position in a string
.
Num
is the number of
characters to return. The first character in the
string is in position 0. A reference to cells
containing values produces an error. The RIGHT
function extracts characters beginning with the
rightmostcharacter, while LEFT extracts
beginning with the leftmost character, and MID
extracts from an internal position. See the
descriptions of the RIGHT and MID functions.
=LEFT(Hale",1)
returns
H".
=LEFT(12 items left",2)
returns
12".
Summary of Contents for Ensemble PDP-100J
Page 11: ......
Page 71: ...Getting Started 60 Optional Accessories Fax Modem Data Modem Scanner Cut Sheet Feeder ...
Page 72: ......
Page 83: ......
Page 152: ......
Page 217: ...Spreadsheet 203 The following dialog box appears ...
Page 219: ......
Page 262: ......
Page 269: ......
Page 284: ......
Page 301: ......
Page 306: ...Calculator 287 Cut and paste Handling Error or Overflow Conditions To clear an error ...
Page 308: ...Calculator 289 Converting Measurements S S S S S S To convert ...
Page 312: ......
Page 325: ......
Page 327: ...Book Reader 306 To close a book Using Information and Text To read a book ...
Page 330: ......
Page 333: ......
Page 337: ...Text File Editor 314 ...
Page 338: ......
Page 345: ......
Page 349: ...Scanner 324 What to do if an error occurs Error Condition Message Solution ...
Page 350: ......
Page 379: ......
Page 387: ...Appendix 360 Color Clip Art SNOWMAN TEA TIGER TURTLECA WANDFLOW WATERLIL ...
Page 396: ...Appendix 369 Print Functions Function Description Example ...
Page 405: ...Appendix 378 Fonts Occidental Font Symbols keyboard International keyboard Math Symbols ...
Page 406: ...Appendix 379 Ping Pong Font Pointer keyboard Numbers keyboard Symbols keyboard Other Symbols ...
Page 407: ...Appendix 380 Shattuck Avenue Font Symbols keyboard International keyboard Math Symbols ...
Page 408: ...Appendix 381 URW Mono Font Symbols keyboard International keyboard Math Symbols ...
Page 409: ...Appendix 382 URW Roman Font Symbols keyboard International keyboard Math Symbols ...
Page 410: ...Appendix 383 URW Sans Font Symbols keyboard International keyboard Math Symbols ...
Page 414: ......
Page 418: ...Glossary 390 ...
Page 420: ...Glossary 392 0 1 1 1 ...
Page 421: ...Glossary 393 text style sheet ...
Page 422: ...Glossary 394 ...
Page 423: ......
Page 428: ...Index 399 D cont d 1 0 1 1 1 1 0 1 0 1 1 0 2 1 0 0 0 1 0 ...
Page 430: ...Index 401 F cont d 1 1 0 0 1 0 0 0 0 0 0 0 0 0 G 1 0 1 ...
Page 436: ...Index 407 S cont d 1 3 3 1 1 0 1 4 0 3 0 0 1 1 3 1 3 1 0 1 1 1 0 1 3 1 0 1 2 ...
Page 440: ......