31
MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty [email protected] Aug 31,2015

MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty [email protected] Aug 31,2015 [email protected]

Embed Size (px)

Citation preview

Page 1: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

MICROSOFT EXCEL – CHAPTER 2 CONTD.MICROSOFT EXCEL – CHAPTER 10

Sravanthi [email protected] 31,2015

Page 2: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

MICROSOFT EXCEL - CHAPTER 2 CONTD.

Page 3: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

LOOKUP FUNCTIONS

• Lookup functions are used to look up values in a table to perform calculations or display results

• A Lookup table is a range that contains data for the basis of the lookup and data to be retrieved.

Page 4: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

VLOOKUP

• Used to gauge an entered value against a range of corresponding results

• Well suited for large tables of data, such as tax tables• Also to convert the number grades into letter grades• Has three mandatory arguments

Page 5: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

VLOOKUP(CONTD.)

• Syntax =VLOOKUP(lookup value , lookup table , column index

number , [range lookup])

• The lookup value ─ value to look up in a reference table • The lookup table ─ a range of cells containing the

reference table• The column index number ─ the column number in the

lookup table that contains return values

Page 6: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

EXAMPLE

Converting the

Number grades to

the letter grades

Breakpoint Grade NamesFinal Score

Letter Grade

0 F Abbott 85 B60 D Carter 69 D70 C Hon 90 A80 B Jackson 74 C90 A Miller 80 B

Nelsen 78 C

Grading Scale Partial Grade Book

Page 7: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

HLOOKUP FUNCTION

• The HLOOKUP function is used when the breakpoints and return data are placed in rows

• The third argument now lists the row index

Page 8: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

FINANCIAL FUNCTIONS

• Used for decisions involving payments, investments, interest rates, etc.

• Allows you to consider several alternatives • PMT

Page 9: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

PMT FUNCTION

• Used to calculate loan payments• Has three arguments:

– the interest rate per period– the number of periods– the amount of the loan

• Computes the associated payment on a loan

Page 10: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

PMT(CONTD.)

• Syntax:

Pmt( interest_rate, number_payments, PV, [FV],[Type] )

• Example:– Pmt(7%/12, 2*12, 5000, 0, 0)– returns the monthly payment on a $5,000 loan

at an annual rate of 7%. The loan is paid off in

2 years (ie: 2 x 12).– E2 - 7% ; E3 - 24 ; E4 - $5,000.00 – PMT ( E2/12 , E3 , - E4 )

Page 11: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

RANGE NAMES

• A range name is a word or phrase used to identify a cell or cell range

• Range names make formulas easier to read• Range names use the following rules:

– 1to 255 characters– Begin with a letter or underscore (_)– Contain letters, digits, period, underscore.

Page 12: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

CREATING AND MAINTAINING A RANGE NAME

• Type the range name in the Name Box area• Enter the name using New Name dialog box• Name Manager dialog box is used to edit or delete a

range name• Insert a table of Range Names ( Use in Formula ->

Paste Names)

Page 13: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

RANK FUNCTION

• The RANK function is useful for producing a ranking by using a formula

• Syntax=RANK(number, range, order)

number: the number/cell for which you want to find the ranking within the “range”

range: range of numbers/cells within which the “number” will be ranked

order: not really required for our purposes. Leave it blank do not put anything.

Page 14: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

CONDITIONAL FORMATTING

• Formats the data in excel sheet if and only if the data satisfies the condition.

• We wish to apply conditional formatting for the values in column3

• Select all the values in column3->Click on conditional formatting in styles group

->Select the type of condition which you want to give

->Give the condition

Page 15: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

MICROSOFT EXCEL – CHAPTER 10

Page 16: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

IMPORTING

• Importing –Inserting data from one application or file into another.

• Text, CSV, XML and Database files are the commonly imported files.

• Before importing we have to check if we want to manage the data as a separate entity in Excel or you want a connection to the original data source/application.

Page 17: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

XML FILES

• XML is eXtensible Markup Language• Files can contain a significant amount of machine

readable data and allow us to easily import it into Microsoft Office to work with

• Steps to import– Go to Data tab->From Other Sources->From XML Data Import– Choose the XML file and click OK.– Choose the cell from where you want the data to be inserted

from the XML file.

Page 18: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

TEXT FILES

• The text file has .txt extension and contains only text (alphabets, numbers and symbols).

• We must choose a delimiter for importing. Ex: Space, tab or Comma etc

• Columns align according to the delimiters.

Page 19: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

CSV FILES

• CSV abbreviated as Comma-Separated Values• Text file with comma as delimiter.• Excel imports the text between the commas in the text

file into individual cells.

Page 20: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

IMPORTING A TEXT FILE

• ->Data Ribbon->Click “from text” which is in External data group

->Browse the location of text file

->Open the text file

• Text import wizard (3 steps)– Select the type that describes the data– Select the type of delimiter in your data– Select the format of column data– Select the location (where to import the data in your

sheet)

Page 21: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

IMPORTING AN ACCESS DATABASE TABLE OR QUERY

• ->Data ribbon->Click “from access” in External data group

->Browse the location of file

->Open the file

• Import Wizard– Select the table in database which you want to import

into your sheet– Select the location where you want to place the

imported data

Page 22: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

IMPORTS

• Import data from other sourcesSource Definition

SQL Server Create a connection to an SQL server table and import data as a table or PivotTable.

Analysis Services Create a connection to an SQL server analysis services cube, and import data as a table or PivotTable

XML Data Import Open or map an XML file into Excel

Data Connection Wizard Import data for an unlisted format by using the Data Connection Wizard and OLEDB.

Microsoft Query Import data for an unlisted format by using the Microsoft Query Wizard and ODBC.

Page 23: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

CREATE A WEB QUERY

• A Web query enables Excel to go to a particular Web site to obtain information

• Web queries let you extract data from tables on a Web page • We need this to display live stock prices, traffic reports,

airport delays etc.• If the Web address changes, you must change the Web query

and URL to ensure you have the most accurate information and citation

• If you have to log in to the Web site, the query generally will not work

Page 24: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

24

CREATE A WEB QUERY

• Select “FROM WEB” in Get External Data column.• Specify the ULR in ADDRESS ( u can see the page by

clicking GO )• Select IMPORT• Select cells where to put data

Page 25: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

CREATE A WEB QUERY

Page 26: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

MANAGE CONNECTIONS

• When you import data using the options in the Get External Data group, Excel creates a link to the original data source

• Refresh connections periodically to ensure you have the most up-to-date and accurate information

• View or remove existing connections through the Workbook Connections dialog box

Page 27: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

• Refresh Connections• Display Connections• Set Connection Properties

Page 28: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

MANAGE CONNECTIONS

Page 29: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

CONVERT TEXT TO COLUMNS

• In the imported data, the data may not be structured in a way that meets your needs.

• If data is displayed in one column, use the Text to Columns command to separate the data into multiple columns

• Convert Text to Columns Wizard guides you through the process of separating data and choosing a delimiting character

Page 30: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu

CONVERT TEXT TO COLUMNS

Page 31: MICROSOFT EXCEL – CHAPTER 2 CONTD. MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty salakkimsetty@mix.wvu.edu Aug 31,2015 salakkimsetty@mix.wvu.edu