Computer Science & Engineering 2111 Text Functions 1CSE 2111 Lecture-Text Functions.

Slides:



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

© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 7Automating Repetitive Tasks.
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.
Java Programming Strings Chapter 7.
MIS: Chapter 14 Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate ppt on REACH.louisville.edu) All.
Developing an Excel Application
Tutorial 8: Developing an Excel Application
Microsoft Office Excel 2013 Core Microsoft Office Excel 2013 Core Courseware # 3253 Lesson 8: Macros, Importing and Exporting Data.
Objectives Understand the software development lifecycle Perform calculations Use decision structures Perform data validation Use logical operators Use.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
 Basically, it’s a sequence of characters.  Character? › Like… a letter. › Or a number. › Or even blank space (like spaces tabs and newlines).
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Adding Automated Functionality to Office Applications.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Exploring Microsoft Excel 2002 Chapter 8 Chapter 8 Automating Repetitive Tasks: Macros and Visual Basic for Applications By Robert T. Grauer Maryann Barber.
Computer Science & Engineering 2111 Data Validation and Macros 1 CSE 2111 Lecture-Data Validation and Macros.
Chapter 06: Lecture Notes (CSIT 104) 1 Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Copyright © 2008 Prentice-Hall. All rights reserved.
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 2 BACKNEXTEND 2-1 LINKS TO OBJECTIVES Naming Ranges Functions COUNT, COUNTA, COUNTIF, COUNTIFS.
Chapter 9 Creating Formulas that Manipulate Text Microsoft Office Excel 2003.
DAY 6: EXCEL CHAPTER 2 Tazin Afrin September 05,
MIS: Chapter 7: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS All assigned.
Advanced Excel for Finance Professionals A self study material from South Asian Management Technologies Foundation.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 22 Macros.
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 7 BACKNEXTEND 7-1 LINKS TO OBJECTIVES Record & run a macro Record & run a macro Save as a macro-
Tutorial 11 Using and Writing Visual Basic for Applications Code
Miscellaneous Excel Combining Excel and Access. – Importing, exporting and linking Parsing and manipulating data. 1.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Microsoft Office Excel Copyright © 2008 Pearson Prentice Hall. All rights reserved
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Computer Science & Engineering 2111 Lecture 9 Data Validation, Worksheet Protection, and Macros 1CSE Data Validation and Macros.
Intro to Excel - Session 7.31 Tutorial 7 - Session 7.3 Developing an Excel Application.
 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.
Copyright © 2008 Pearson Prentice Hall. All rights reserved Chapter 6 Data Tables and Amortization Tables Exploring Microsoft Office Excel 2007.
Oracle 11g: SQL Chapter 10 Selected Single-Row Functions.
Computer Science & Engineering 2111 Lecture 2 Basic Functions, Common Excel Errors, Cell Addressing 1 CSE 2111 Lecture 2-Basic Functions and Cell Addressing.
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter Eight String Manipulation.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
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,
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
CSC 1010 Programming for All Lecture 3 Useful Python Elements for Designing Programs Some material based on material from Marty Stepp, Instructor, University.
1 CSE Computer Use: Fundamentals Week 5: Glade Manual Chapter 4 Gates and Circuits (Dale & Lewis Ch. 4)
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Chapter 4 Getting Started with VBA. Subroutines Subroutine is the logical section of code that performs a particular task. Subroutine is also called a.
An Introduction to Programming with C++ Sixth Edition Chapter 13 Strings.
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.
8 1 String Manipulation CGI/Perl Programming By Diane Zak.
1 Inside Module 8 Extracting Data Page n Using the Extract command2 n Coercion3 n $-functions4 n Extract from a table7.
DAY 4,5,6: EXCEL CHAPTERS 1 & 2 Rohit January 27 th to February 1 st
CSC 162 Visual Basic I Programming. String Functions LTrim( string ) –Removes leading spaces from the left side of string RTrim( string ) –Removes trailing.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
Excel Tutorial 8 Developing an Excel Application
Lesson 3: Using Formulas
Logical Functions Excel Lesson 10.
Excel STDEV.S Function.
Miscellaneous Excel Combining Excel and Access.
Data Validation and Protecting Workbook
Excel REPT Function.
Analyzing Data Using Formulas
Microsoft Excel 2003 Illustrated Complete
Data Validation, Worksheet Protection, and Macros
Exploring Microsoft Excel
RAHUL KAVI SEPTEMBER 05, 2013 Day 6: Excel Chapters 3 & 4 RAHUL KAVI SEPTEMBER 05, 2013.
Python Strings.
REACH Computer Resource Center
Microsoft Excel 2007 – Level 2
Presentation transcript:

Computer Science & Engineering 2111 Text Functions 1CSE 2111 Lecture-Text Functions

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 CSE 2111 Lecture-Text Functions2

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 CSE 2111 Lecture-Text Functions3

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 CSE 2111 Lecture-Text Functions4

CONCATENATE(text1,[text2],…) Joins up to 255 text strings into one text string Syntax Text1: The first text item to be concatenated Text2: The second text item to be concatenated--optional CSE 2111 Lecture-Text Functions5

TRIM(text) Removes all spaces from text except for single spaces between words CSE 2111 Lecture-Text Functions6

LEN(text) Returns the number of characters in a text string. CSE 2111 Lecture-Text Functions7

UPPER(text), LOWER(text) Converts text to uppercase/lowercase CSE 2111 Lecture-Text Functions8

PROPER(text) Capitalizes the first letter of each word CSE 2111 Lecture-Text Functions9

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. CSE 2111 Lecture-Text Functions10

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 CSE 2111 Lecture-Text Functions11

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 CSE 2111 Lecture-Text Functions12

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. (Case sensitive) 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 CSE 2111 Lecture-Text Functions13

Data Validation Controls the type of data or the values input in a cell Reduces input errors Multiple criterion can be applied to a cell CSE 2111 Lecture-Data Validation and Macros 14 Display a message dialog boxRestrict input to a whole number within limits Restrict input to values in a drop down listRestrict input to a decimal number within limits Restrict input to a certain time frame. (either date, time, or both) Restrict text to a specified length Calculate what is allowed based on the value in another cell Use a formula to calculate what is valid

Macro A series of commands and functions that are stored in a Microsoft Visual Basic module Automates your keystrokes and actions in Excel Use these when you complete the same tasks repetitively When you create a macro VBA program code is automatically generated CSE 2111 Lecture-Data Validation and Macros 15

Record Macro CSE 2111 Lecture-Text Functions16 Click on Developer Click on Record Macro

Macro Walk Through CSE 2111 Lecture-Text Functions17 Step 1: Delete the information in cells B1 and B2 Step 2: In Cell B1, Input the following Function =CONCATENATE(LEFT(A1,3),”-”, MID(A1,4,3),”-”,MID(A1.7,4)) Step 3: In Cell B2, Input the following Function =LEFT(A1,3) Step 3: See next Slide

Macro Walk Through CSE 2111 Lecture-Text Functions18 Step 4: Display Message: File has been Updated! Click on View Click on Project Explorer Double click on Module1

CSE 2111 Lecture-Text Functions19 Type this line at the beginning of the VBA Code Type these two lines at the end of the VBA Code Click on Stop Recording