 Basically, it’s a sequence of characters.  Character? › Like… a letter. › Or a number. › Or even blank space (like spaces tabs and newlines).

Slides:



Advertisements
Similar presentations
1 So, what happens here? ABCDE =(A5+B4)*A7 9 =(B2+C1)*B4.
Advertisements

1. Write an Excel text function in cell Company Data!A4, which may be copied down, to string together the first and last name with only the first letter.
Computer Science & Engineering 2111 Text Functions 1CSE 2111 Lecture-Text Functions.
CS0007: Introduction to Computer Programming Console Output, Variables, Literals, and Introduction to Type.
1 Chapter 2 Introduction to Java Applications Introduction Java application programming Display ____________________ Obtain information from the.
 Basically, a sequence of characters  Character? › Like… a letter › Or a number › Or even blank space.
 Just the word will find too many instances  Searching for blanks on both sides loses start and end  How to solve? › See last Thursday examples.
Week 2: Primitive Data Types 1.  Programming in Java  Everything goes inside a class  The main() method is the starting point for executing instructions.
Scalar Variables Start the file with: #! /usr/bin/perl –w No spaces or newlines before the the #! “#!” is sometimes called a “shebang”. It is a signal.
 UPPER – Changes stuff to UPPERCASE › “cookie” becomes “COOKIE”  lower – Anybody wanna guess? › “DuH LoLoLoL” becomes “duh lololol”  Valuable for checking.
Characters and Strings. Characters In Java, a char is a primitive type that can hold one single character A character can be: –A letter or digit –A punctuation.
String Escape Sequences
Exponents Scientific Notation
Binary “There are 10 types of people in the world… those that understand binary and those that don’t.”
1.
Computer Science 1000 Spreadsheets II Permission to redistribute these slides is strictly prohibited without permission.
Chapter 9 Creating Formulas that Manipulate Text Microsoft Office Excel 2003.
DAY 6: EXCEL CHAPTER 2 Tazin Afrin September 05,
Input/Output Chapters 7 & 9. Output n Print produces output > (print 100) n It also returns the value it printed –that’s where the second 100 came.
Miscellaneous Excel Combining Excel and Access. – Importing, exporting and linking Parsing and manipulating data. 1.
Strings The Basics. Strings can refer to a string variable as one variable or as many different components (characters) string values are delimited by.
 Agenda: 4/24/13 o External Data o Discuss data manipulation tools and functions o Discuss data import and linking in Excel o Sorting Data o Date and.
Intro to More Controls in C#. C# Demonstration We already touched on labels and buttons Ad-hoc demo of controls – Textboxes Multiline – Checkbox – Radiobutton.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 24 The String Section.
Instructor: Craig Duckett Lecture 08: Thursday, October 22 nd, 2015 Patterns, Order of Evaluation, Concatenation, Substrings, Trim, Position 1 BIT275:
REGEX. Problems Have big text file, want to extract data – Phone numbers (503)
Working with Forms and Regular Expressions Validating a Web Form with JavaScript.
Regular Expressions What is this line all about? while (!($search =~ /^\s*$/)) { It’s a string search just like before, but with a huge twist – regular.
More Strings CS303E: Elements of Computers and Programming.
Validation final steps Stopping gaps being entered in an input.
JavaScript VARIABLES AND DATA TYPES. OUTPUT WITHOUT ALERT OR FORM CONSOLE.LOG();
Variables and Strings. Variables  When we are writing programs, we will frequently have to remember a value for later use  We will want to give this.
Chapter 2 print / println String Literals Escape Characters Variables / data types.
Excel Text Functions 1. LEFT(text, [num_chars])) Returns the number of characters specified starting from the beginning of the text string Syntax Text:
1 CSE 2337 Chapter 7 Organizing Data. 2 Overview Import unstructured data Concatenation Parse Create Excel Lists.
CSCI 1100/1202 January 14, Abstraction An abstraction hides (or ignores) the right details at the right time An object is abstract in that we don't.
Chapter 23 The String Section (String Manipulation) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Strings Characters and Sentences 1.Overview 2.Creating Strings 3.Slicing Strings 4.Searching for substrings 1.
Strings PART I STRINGS, DATES, AND TIMES. FUNDAMENTALS OF CHARATERS AND STRINGS VB represents characters using American National Standards Institute(ANSI)
-Joseph Beberman *Some slides are inspired by a PowerPoint presentation used by professor Seikyung Jung, which was derived from Charlie Wiseman.
17-Mar-16 Characters and Strings. 2 Characters In Java, a char is a primitive type that can hold one single character A character can be: A letter or.
Winter 2016CISC101 - Prof. McLeod1 CISC101 Reminders Quiz 3 this week – last section on Friday. Assignment 4 is posted. Data mining: –Designing functions.
Strings in Python String Methods. String methods You do not have to include the string library to use these! Since strings are objects, you use the dot.
ENGINEERING 1D04 Tutorial 2. What we’re doing today More on Strings String input Strings as lists String indexing Slice Concatenation and Repetition len()
Logical Functions Excel Lesson 10.
Excel STDEV.S Function.
String Methods Programming Guides.
Miscellaneous Excel Combining Excel and Access.
Variables and Data Types
Excel REPT Function.
Intro to CS Nov 13, 2017.
Strings Part 1 Taken from notes by Dr. Neil Moore
Intro to PHP & Variables
SQL Text Manipulation Farrokh Alemi, Ph.D.
Manipulating Text In today’s lesson we will look at:
Tonga Institute of Higher Education
Coding Concepts (Data- Types)
Microsoft Excel Chapters 2 &3
Python Programming Language
CS 1111 Introduction to Programming Spring 2019
String Processing 1 MIS 3406 Department of MIS Fox School of Business
String Processing 1 MIS 3406 Department of MIS Fox School of Business
Introduction to Computer Science
String methods 26-Apr-19.
Python Strings.
Exam Prep.
Switch, Strings, and ArrayLists in Java
REGEX.
Strings Taken from notes by Dr. Neil Moore & Dr. Debby Keen
What We Want To Do User enters: Mary Smith
Presentation transcript:

 Basically, it’s a sequence of characters.  Character? › Like… a letter. › Or a number. › Or even blank space (like spaces tabs and newlines).

 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.

 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”

 Processing? › Performing operations on Strings such as:  Searching!  Replacing!  Concatenating!  Converting!

Click the function button Select Text  They actually mean String, but whatever  List of handy functions and other goodies

 Find – case sensitive search › Cake ≠ cake  Search – non-case sensitive search › Cake = cake

 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

 RIGHT – gives you the rightmost character in the String.  LEFT – gives you the leftmost character in the String.

 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

 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”

 There is also a function called concatenate. It does the exact same thing as &. You can use whichever one you’re comfortable with.

 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”

 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

 Len › This doesn’t really fit in here, but it’s important, too › Finds the length of a String

 Let’s do some stuff!