Download presentation
Presentation is loading. Please wait.
2
Basically, it’s a sequence of characters. Character? › Like… a letter. › Or a number. › Or even blank space (like spaces tabs and newlines).
3
Anything in your spreadsheet can be interpreted as a String, no matter what format it’s in when you refer to a cell. In an expression (aka after the equals sign), a string must be inside double quotes! › “this is a string” and this is not a string.
4
A substring is also a String A substring is a part of another string › “cake” is a substring of “birthday cake” › so are “day”, “thd”, and “y cake” › “they” is not, neither is “hello” or “dude”
5
Processing? › Performing operations on Strings such as: Searching! Replacing! Concatenating! Converting!
6
Click the function button Select Text They actually mean String, but whatever List of handy functions and other goodies
7
Find – case sensitive search › Cake ≠ cake Search – non-case sensitive search › Cake = cake
8
So why does it equal a number? › The number find/search gives you back is the position of your search term in the String HIMOM 123456
9
RIGHT – gives you the rightmost character in the String. LEFT – gives you the leftmost character in the String.
10
Substitute › This functions finds and replaces a substring with another String › For example, if your String = “the cake isn’t a lie” and you substitute “is” for “isn’t” the result is “the cake is a lie” Replace › Useful when you know the position of what you want to replace, i.e. the first four characters of a String
11
Huh? › It means combining two or more things into one thing & – Anything can be concatenated › “awe” & “some” = “awesome” › Whitespace only matters inside quotes “a” & “b” is the same as “a” & “b” “a ” & “b” is NOT the same as “a” & “b”
12
There is also a function called concatenate. It does the exact same thing as &. You can use whichever one you’re comfortable with.
13
UPPER – Changes stuff to UPPERCASE › “cookie” becomes “COOKIE” lower – Anybody wanna guess? › “DuH LoLoLoL” becomes “duh lololol” Proper – Every word starts with a capital letter › CAREFUL! For some reason “it’s” will become “It’S”
14
Trim › Remember when I said “a ” and “a” aren’t the same? › Trim gets rid of leading and trailing whitespace › “ a ” becomes “a” › Very useful when determining if things are equal › Or just making sure you don’t have extra whitespace › This one is probably important
15
Len › This doesn’t really fit in here, but it’s important, too › Finds the length of a String
16
Let’s do some stuff!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.