a sequence of characters Character? Letter Or number Or even - - PowerPoint PPT Presentation

a sequence of characters
SMART_READER_LITE
LIVE PREVIEW

a sequence of characters Character? Letter Or number Or even - - PowerPoint PPT Presentation

Basically, a sequence of characters Character? Letter Or number Or even blank space Each character has a position H I M O M 1 2 3 4 5 6 Anything can be interpreted as a string regardless of format In an


slide-1
SLIDE 1
slide-2
SLIDE 2

 Basically,

a sequence of characters

 Character?

› Letter › Or number › Or even blank space

slide-3
SLIDE 3

Each character has a position

H I M O M

1 2 3 4 5 6

slide-4
SLIDE 4

 Anything can be interpreted as a

string regardless of format

 In an expression (formula)

string must be inside double quotes!

› “this is a string” and this is not a string. › Remember to beware cut and paste

slide-5
SLIDE 5

 =IFERROR(A1,”Not Found”)  Now we’re going to learn to manipulate

them

slide-6
SLIDE 6

 TRIM: eliminate extra blank space  CLEAN: eliminate non-printing blanks  UPPER: force to upper case  LOWER: force to lower case

slide-7
SLIDE 7

 Remember “a ” and “a” aren’t the

same

 Trim gets rid of

› leading blanks › trailing blanks › extra blanks in middle

 “ a ” becomes “a”  Very useful when determining if strings

equal

 Or just eliminating extra whitespace

slide-8
SLIDE 8

 Does the same thing for non-printable

characters

 Need to use it when you get data from

the web

 Spaces are printable characters co

CLEAN does not remove them

 NEED TO USE BOTH  ORDER DOESN’T MATTER

slide-9
SLIDE 9

 UPPER – Changes to UPPERCASE

› “cookie” becomes “COOKIE”

 lower – Changes to lowercase

› “SHouT” becomes “shout”

 Useful for clean up  Not needed for comparing strings:

Excel = is case insensitive

slide-10
SLIDE 10

 Finds the length of a String  One of the most important functions  Relationship between length and

position?

H I M O M

1 2 3 4 5 6