 UPPER – Changes stuff to UPPERCASE › “cookie” becomes “COOKIE”  lower – Anybody wanna guess? › “DuH LoLoLoL” becomes “duh lololol”  Valuable for checking.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Computer Science & Engineering 2111 Text Functions 1CSE 2111 Lecture-Text Functions.
Strings Testing for equality with strings.
MIS: Chapter 14 Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate ppt on REACH.louisville.edu) All.
 Working backwards  Do any of the phrases appear in the string?  Check for each phrase independently  If any appears, condition is TRUE  If TRUE,
 Basically, it’s a sequence of characters.  Character? › Like… a letter. › Or a number. › Or even blank space (like spaces tabs and newlines).
 Option 1 › Separate entries and hide fields › Hide columns or use separate spreadsheets  Option 2 › Build them up in pieces › Use parentheses if you.
 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.
 CHOOSE › Index and list of options › Example: alternative to grade translation.
1 String processing Samuel Marteck © A character in a string can be accessed by indicating its subscript, also called index. For instance, how.
Geography 465 Assignments, Conditionals, and Loops.
Chapter 9 Creating Formulas that Manipulate Text Microsoft Office Excel 2003.
Importing Data Text Data Parsing Scrubbing Data June 21, 2012.
Programming Languages -1 (Introduction to C) arrays Instructor: M.Fatih AMASYALI
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.
COMPUTER PROGRAMMING I Objective 7.04 Apply Built-in String Functions (3%)
Lists and More About Strings CS303E: Elements of Computers and Programming.
Productivity Programs Common Features and Commands.
1 Data Comparisons and Switch Data Comparisons Switch Reading for this class: L&L 5.3,
 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.
How to check the equivalence of two regular expressions using JFLAP One of the questions in the previous HW involved converting an NFA to a regular expression.
Chapter 4 Financial Functions, Data Tables, and Amortization Schedules
Chapter 3: Formatted Input/Output Copyright © 2008 W. W. Norton & Company. All rights reserved. 1 Chapter 3 Formatted Input/Output.
Chapter 3: Formatted Input/Output Copyright © 2008 W. W. Norton & Company. All rights reserved. 1 Chapter 3 Formatted Input/Output.
Lesson 4-2: Solving Systems – Substitution & Linear Combinations
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:
Copyright Curt Hill Variables What are they? Why do we need them?
More Strings CS303E: Elements of Computers and Programming.
Agenda Character representation Numerical Conversions ASCII EBCDIC
ELEMENT DETECTIVES !!! Remember :Two or more element make up compound. O NaCl O How many elements do you see here ?
Chapter 3A Strings. Using Predefined Classes & Methods in a Program To use a method you must know: 1.Name of class containing method (Math) 2.Name of.
Excel Text Functions 1. LEFT(text, [num_chars])) Returns the number of characters specified starting from the beginning of the text string Syntax Text:
8 1 String Manipulation CGI/Perl Programming By Diane Zak.
Microsoft Access Prepared by the Academic Faculty Members of IT.
Chapter 23 The String Section (String Manipulation) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Enhanced Business Name Registration System (EBNRS) Policies Implemented Internal to the System (19 August 2011)
Chapter 3: Formatted Input/Output 1 Chapter 3 Formatted Input/Output.
CSC 162 Visual Basic I Programming. String Functions LTrim( string ) –Removes leading spaces from the left side of string RTrim( string ) –Removes trailing.
Nested Loops CS303E: Elements of Computers and Programming.
Introduction to programming in java
 Read o Identify facts and clue words o Identify the question o Understand the vocabulary.
Logical Functions Excel Lesson 10.
String Methods Programming Guides.
Objective 7.04 Apply Built-in String Functions (3%)
More Sophisticated Behavior
CS 240 – Computer Programming I Lab
MID, CONCANTENATE, FIND, SUBTITUTE, LOWER, UPPER, DATE, NOW
Excel REPT Function.
Analyzing Data Using Formulas
Chapter 4: Making Decisions.
Using local variable without initialization is an error.
String Manipulation Part 2
C Arrays.
Tonga Institute of Higher Education
The compareTo interface
CEV208 Computer Programming
Microsoft Excel Chapters 2 &3
Absolute Value.
Guess the letter!.
JavaScript.
Simultaneous Equations starter
String.
String Processing 1 MIS 3406 Department of MIS Fox School of Business
Have you signed up (or had) your meeting?
MapInfo SQL String Functions
Exam Prep.
Math and Literacy optional homework month of August
What We Want To Do User enters: Mary Smith
Presentation transcript:

 UPPER – Changes stuff to UPPERCASE › “cookie” becomes “COOKIE”  lower – Anybody wanna guess? › “DuH LoLoLoL” becomes “duh lololol”  Valuable for checking equivalence › Check UPPER (or lower) of string if you want to compare not case sensitive  Exercise: Change UNC to Tar Heel

 Last parameter identifies the instance to replace  Very valuable feature  How can you find the LAST word?  Exercise: Last word

 Trim › 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  Exercise: test equivalence

 Proper – Every word starts with a capital letter  CAREFUL! “it’s” will become “It’S”  How to fix? › Find the ‘ › Fix the next character  Let’s do it!

1. Process each format › Okay to have errors in intermediate steps › BECAUSE you can hide them 2. Determine which format and select it 1. Identify the format that has a unique characteristic 2. If not that one, what is a unique characteristic for one of the remaining options 3. …

 Possible formats › Last, First › Last, First M › Last, First Middle › First Last › First M Last › First Middle Last › Last