Excel Text Functions 1. LEFT(text, [num_chars])) Returns the number of characters specified starting from the beginning of the text string Syntax Text:

Slides:



Advertisements
Similar presentations
CIS100 Test 2 Review REACH CRC © 2011 REACH CRC. All Rights Reserved.Spring 2011.
Advertisements

REACH CRC © 2011 REACH CRC. All Rights Reserved.Fall 2011.
REACH-CRC © 2013 REACH-CRC. All Rights Reserved.Spring 2013.
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.
MIS: Chapter 14 Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate ppt on REACH.louisville.edu) All.
CS1100: Computer Science and Its Applications Text Processing Created By Martin Schedlbauer
 Basically, it’s a sequence of characters.  Character? › Like… a letter. › Or a number. › Or even blank space (like spaces tabs and newlines).
CS&E 1111 Excel Database Features Using Excel as a database tool Objectives: Sorting data Filtering data Using Subtotals Pivot Tables Importing and Exporting.
Chapter 06: Lecture Notes (CSIT 104) 1 Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Copyright © 2008 Prentice-Hall. All rights reserved.
Lesson 5 MICROSOFT EXCEL PART 2 by Nguyễn Thanh Tùng Web:
Chapter 5 Basic Functions Copyright 2005 Radian Publishing Co.
Chapter 9 Creating Formulas that Manipulate Text Microsoft Office Excel 2003.
DAY 6: EXCEL CHAPTER 2 Tazin Afrin September 05,
EXCEL FUNCTIONS MIS THE BASICS  LEFT(), RIGHT(), MID()  Keep X characters from string  CONCATENATE()  Join two strings together  TRIM()  Drop.
REACH-CRC © 2013 REACH-CRC. All Rights Reserved.Spring 2013.
AGB 260: Agribusiness Information Technology Advanced Functions and Logic.
MIS: Chapter 7: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS All assigned.
REACH-CRC © 2012 REACH-CRC. All Rights Reserved.FALL 2012.
Advanced Excel for Finance Professionals A self study material from South Asian Management Technologies Foundation.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Jason Davidson Chapter 10 Imports, Web Queries,
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 9 More About Strings.
Revision Function in Spreadsheet. AVERAGE Returns the average (arithmetic mean) of the arguments. Syntax AVERAGE(number1,number2,...) Number1, number2,...
ASP.NET Programming with C# and SQL Server First Edition Chapter 5 Manipulating Strings with C#
MIS: Chapter 6,7,8,10: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate.
 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.
MS-Excel XP Lesson 6. NOW Function 1.Returns the current date and time formatted as a date and time. 2.A1  =NOW() 3.A2  Select Insert menu Select Function.
Copyright © 2008 Pearson Prentice Hall. All rights reserved Chapter 6 Data Tables and Amortization Tables Exploring Microsoft Office Excel 2007.
CIS300 TEST REVIEW EXAM 2- PROF. ZURADA & PROF. GUAN REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 24 The String Section.
Functions. Types of Functions Built-in functions: –Financial –Date & time –Math & statistical –Database –Lookup –Logical –Information:IsBlank, IsNumber,
Instructor: Craig Duckett Lecture 08: Thursday, October 22 nd, 2015 Patterns, Order of Evaluation, Concatenation, Substrings, Trim, Position 1 BIT275:
String Manipulation By Felix Thompson, Jerzy Griffiths and Joel Sutcliffe.
Page 1 Excel Text Functions MGMI 311. Page 2 Data Structure Text is Excel = Array of Characters = String (when coding) Text Function  Array Operation.
DAY 4: EXCEL CHAPTERS 1 & 2 Rohit August 31 st,
CSI 3125, Preliminaries, page 1 String. CSI 3125, Preliminaries, page 2 String Class Java provides the String class to create and manipulate strings.
CS1100: Computer Science and Its Applications Text Parsing in Excel Martin Schedlbauer, Ph.D.
Processing Text Excel can not only be used to process numbers, but also text. This often involves taking apart (parsing) or putting together text values.
An Introduction to Programming with C++ Sixth Edition Chapter 13 Strings.
RevisionRevision Function in Spreadsheet DATE Returns the serial number of a particular date. Syntax –DATE(year,month,day) year is a number from 1900.
1 CSE 2337 Chapter 7 Organizing Data. 2 Overview Import unstructured data Concatenation Parse Create Excel Lists.
Computer Programming 2 Lab (1) I.Fatimah Alzahrani.
8 1 String Manipulation CGI/Perl Programming By Diane Zak.
Tutorial 8: Manipulating Strings1 Tutorial 8 Manipulating Strings.
DAY 4,5,6: EXCEL CHAPTERS 1 & 2 Rohit January 27 th to February 1 st
Strings PART I STRINGS, DATES, AND TIMES. FUNDAMENTALS OF CHARATERS AND STRINGS VB represents characters using American National Standards Institute(ANSI)
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.
AGB 260: Agribusiness Information Technology Advanced Functions and Logic.
AGB 260: Agribusiness Data Literacy
Using Advanced Formulas
Excel AVERAGEIF Function
Contents Introduction Text functions Logical functions
Logical Functions Excel Lesson 10.
TRACKER Contents Intro Excel 101 Math Operations Formulas 101.
Excel STDEV.S Function.
Excel REPT Function.
Analyzing Data Using Formulas
Strings Part 1 Taken from notes by Dr. Neil Moore
RAHUL KAVI SEPTEMBER 05, 2013 Day 6: Excel Chapters 3 & 4 RAHUL KAVI SEPTEMBER 05, 2013.
Microsoft Excel Chapters 2 &3
Microsoft Visual Basic 2005: Reloaded Second Edition
CS 1111 Introduction to Programming Spring 2019
Topic 6 Lesson 1 – Text Processing
Topics Basic String Operations String Slicing
Introduction to Computer Science
Topics Basic String Operations String Slicing
REACH Computer Resource Center
Strings Taken from notes by Dr. Neil Moore & Dr. Debby Keen
Topics Basic String Operations String Slicing
Presentation transcript:

Excel Text Functions 1

LEFT(text, [num_chars])) Returns the number of characters specified starting from the beginning of the text string Syntax Text: The text that contains the characters you want to extract num_chars: Specifies the number of characters you want to extract starting from the leftmost character. – Default: 1 2 More… Cell A1 contains the text string "James Bond“: =LEFT(A1,7) Returns "James B", which are the first 7 characters. Note that space is counted as a distinct character. =LEFT(A1,15) Returns "James Bond“ (all A1 chars), because the number 15 exceeds the string length of 10 characters. =LEFT(A1) Returns "J", a single character. Not specifying the number of characters, will default to 1.

RIGHT(text, [num_chars]) Returns the number of characters specified starting from the end of the text string Syntax Text: The text that contains the characters you want to extract num_chars: Specifies the number of characters you want to extract starting from the rightmost character. – Default: 1 3 More… Cell A1 contains the text string "James Bond“: =RIGHT(A1,7) Returns "es Bond", which are the last 7 characters. Note that space is counted as a distinct character. =RIGHT(A1,15) Returns "James Bond“ (all A1 chars) because the number exceeds the string length of 10 characters. =RIGHT(A1) Returns "d", a single character. Not specifying the number of characters, will default to 1.

MID(text, start_num, num_chars) Returns a specific number of characters from a text string, starting at the position you specify, based on the numbers you specify Syntax Text: The text that contains the characters you want to extract Start_num: The position of the first character you want to extract in the text. Num_chars: Specifies the number of characters you want mid to display 4 More… Cell A1 contains the text string "James Bond“: =MID(A1,2,6) Returns "ames B". Specifies that 6 characters be returned starting from the second character, "a". =MID(A1,2,15) Returns "ames Bond". Returns all characters starting from the second character of "a", because the specified characters number 15 plus start number 2 (ie. total of 17) exceed the string length of 10 characters. =MID(A1,12,2) Returns empty text (), because the start number of 12 exceeds the string length of 10 characters. =MID(A1,0,7) Returns the #VALUE! error value, because the start number (ie. zero) is less than 1.

CONCATENATE(text1,[text2],…) Joins up to 255 text strings into one text string Concatenate operator  & (other use: function “criteria”) Syntax Text1: The first text item to be concatenated Text2: The second text item to be concatenated--optional 5

TRIM(text) TRIM strips extra spaces from text, leaving only single spaces between words and no space characters at the start or end of the text. TRIM only removes the ASCII space character (32) from text. 6

LEN(text) Returns the number of characters in a text string. 7

UPPER(text), LOWER(text) Converts text to uppercase/lowercase 8

PROPER(text) Capitalizes the first letter in a text string and any other letters in text that follow any character other than a letter. Converts all other letters to lowercase letters. 9

EXACT(text1, text2) Compares two text strings and returns TRUE if they are exactly the same, FALSE otherwise. EXACT is case-sensitive but ignores formatting differences. 10

REPLACE(old_text,start_num,num_chars,new_text) Replaces part of a text string, based on the number of characters you specify with a different text string. Syntax Old_text: Text which you want to replace some characters Start_num: The position of the character in old_text you want to replace Num_chars: The number of characters in the old_text that you want to replace with the new_text New_text: The text that will replace the characters in the old_text 11

SUBSTITUTE(text, old_text, new_text, [instance_num]) Substitutes new_text for old_text in a text string. Syntax text: Text or reference to a cell containing text for which you want to substitute characters Old_text: The text you want to replace New_text: The text you want to replace old_text with Instance_num: Specifies which occurrence of old_text you want to replace with new_text. If you specify instance_num, only that instance of old_text is replaced. Otherwise, every occurrence of old_text in text is changed to new_text. 12 More… Cell A2 contains the text string “Australia”: =SUBSTITUTE(A2,"ia","Asia") Returns "AustralAsia". Substitutes "ia" with "Asia". Cell A4 contains the text string "Tue, Feb 01, 2011". =SUBSTITUTE(A4,1,2,3) Returns "Tue, Feb 01, 2012". Substitutes the third instance of "1" with "2". =SUBSTITUTE(A4,1,2) Returns "Tue, Feb 02, 2022". Substitutes all instances of "1" with "2".

FIND(find_text, within_text, [start_num]) Locates one text string within a second text string and displays the starting position of the first text string from the first character of the second text string… IS case sensitive (along with CONVERT) Syntax Find_text: The text you want to find Within_text: The text containing the text you want to find Start_num: Specifies the character at which to start the search – Default 1 13 More… Cell A2 contains the text string "Australia“: =FIND("a",A2) Returns 6, which is the position of the first small cap character "a" in the string. =FIND("A",A2) Returns 1, which is the position of the first large cap character "a" in the string. =FIND("A",A2,7) Returns the #VALUE! error value, because text "A" is not found in the string. =FIND("a",A2,7) Returns 9, which is the position of the first small cap character "a" in the string, starting from character #7. The answer is NOT 4 since the function is defined to say “displays the starting position of the first argument from the first character of the second argument”

Finds one text string (find_text) within another text string (within_text), and returns the number of the starting position of find_text, from the first character of within_text. – Can use the MID or REPLACE functions to change the text (see examples) You can use the wildcard characters — question mark (?) and asterisk (*) in find_text. A question mark matches any single character; an asterisk matches any sequence of characters. If you want to find an actual question mark or asterisk, type a tilde (~) before the character. Differences between FIND and SEARCH: – FIND is case sensitive and SEARCH is not case sensitive – FIND doesn't allow wildcard characters but SEARCH does allow wildcard characters 14 SEARCH(find_text, within_text, [start_num])

SEARCH wildcard examples 15

Functions with Case Sensitive issues Case-sensitive – EXACT – CONVERT – FIND Effect case – PROPER – UPPER – LOWER 16