MS Excel and Visual Basic Applications.pptx

surekha1287 231 views 66 slides Feb 24, 2024
Slide 1
Slide 1 of 66
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50
Slide 51
51
Slide 52
52
Slide 53
53
Slide 54
54
Slide 55
55
Slide 56
56
Slide 57
57
Slide 58
58
Slide 59
59
Slide 60
60
Slide 61
61
Slide 62
62
Slide 63
63
Slide 64
64
Slide 65
65
Slide 66
66

About This Presentation

Microsoft Excel


Slide Content

Microsoft Excel and Visual Basic for Applications Sub. Code: 21CV382

Course Outcomes At the end of the course the student will be able to: 1. Solve Trigonometric, Logarithmic, Exponential, Statistical problems and perform Matrix operations. 2. Solve civil engineering problems using VB as a tool. 3. Design structural elements by integrating excel and VB.

MODULE 1 Introduction to Microsoft Excel, Workbooks, Worksheets, User Interface – navigating the interface, entering data, implicit data types, setting cell data types, Basic operations – copy/cut, paste, paste special, row and cell references, using cell names, Simple built-in formulae, Copying and pasting formulae Built-in formulae – Trigonometric, Logarithmic, Exponential, Statistical, Matrix operations such as transpose, multiplication, inverse etc. Plotting charts of different types, bar and pie charts, scatter plots, legend, Using Log and Semilog scales, Customizing chart axes, Using multiple axes, Preparing contour plots, Annotating charts.

Introduction to Microsoft Excel, Microsoft Excel is a spreadsheet developed by Microsoft for Windows, macOS , Android and iOS . It features calculation, graphing tools, pivot tables, and a macro programming language called Visual Basic for Applications.

Early History Microsoft originally marketed a spreadsheet program called Multiplan in 1982. Multiplan became very popular on CP/M systems, but on MS-DOS systems it lost popularity to Lotus 1-2-3. Microsoft released the first version of Excel for the Macintosh on September 30, 1985, and the first Windows version was 2.05 (to synchronize with the Macintosh version 2.2) in November 1987. Lotus was slow to bring 1-2-3 to Windows and by the early 1990s, Excel had started to outsell 1-2-3 and helped Microsoft achieve its position as a leading PC software developer.

Microsoft EXCEL is excellent for storage Data on your computer! This presentation will cover the basic steps for the- DATA CHART P I O V A T TABLE 2

Excel is an electronic spreadsheet program that can be used for storing, organizing and manipulating data.  It has a number of built in features and tools, such as functions, formulas, charts, and data analysis INTRODUCTION 3

INTRODUCTION (Cont.…)  Microsoft excel consists of workbooks. Within each workbook, there is an infinite number of worksheets.  Each worksheet contains Columns (256-XFD) and Rows (10,48,576).  Where a column and a row intersect is called a cell. For e.g. cell D5 is located where column D and row 5 meet.  The tabs at the bottom of the screen represent different worksheets within a workbook. You can use the scrolling buttons on the left to bring other worksheets into view. 4

Features of Excel  It allows organization, tabulation, search, and exploration of data of large sizes.  I t all o w s t he d e s i gn o f p r o f e ss io n a ll y l ook i n g c h a rts 3 -D e f f ec t s, shadowing , transparency.  Data can be filtered and sorted.  Based on the values entered in different cells in the spreadsheet, formulas can be defined, which automatically perform calculation.  Formatting of spreadsheet allows changing the font color, and font M S s E x t c e y l ,R P l A T e C , . 5/ 2/201 8 5

Application of Excel  To mange name list of data records.  To perform mathematical calculation easily in daily business.  Inventory management  Create forms and consolidate results  Analytical tools  MS Ex c C e l ,R P o A T C r , p 5/ 2 o /2 r 1 8 a t e bu d ge ting 6

STARTING EXCEL 7

OFFICE BUTTON CONTAI . N . S NEW-TO OPEN NEW WORKBOOK. (CTRL+N) OPEN-TO OPEN EXISTING DOCUMENT (CTRL+O) SAVE-TO SAVE A DOCUMENT. (CTRL+S) SAVE A-STO SAVE COPY DOCUMENT. (F12) PRINT-TO PRINT A DOCUMENT. (CTRL+P) PREPARE-TO PREPARE DOCUMENT FOR DISTRIBUTION. SEND-TO SEND A COPY OF DOCUMENT TO OTHER PEOPLE. PUBLISH-TO DISTRIBUTE DOCUMENT TO OTHER PEOPLE. MS Excel,RPATC,05/02/2 C 018 LOSE-TO CLOSE A DOCUMENT (CTRL+W). 8

TABS : T HERE ARE SEVEN TABS ACROSS THE TOP OF THE EXCEL WINDOW. GROUPS : GROUPS ARE SETS OF RELATED COMMANDS,DISPLAYED ON TABS . 1 2 THE THREE PARTS OF THE RIBBON ARE R I B B O N S TABS GROUPS COMMANDS CO M M A N D S A B O X WH E R E YO U E N T E R I N F O R M A T I ON: A COMMAND IS A BUTTON,A MENU 9

Resize worksheet rows and columns There are a number of methods for altering row height and column width using the mouse or menus:  Click the dividing line on the column or row, and drag the dividing line to change the width of the column or height of the row  Double-click the border of a column heading, and the column will increase in width to match the length of the longest entry in the column 14

“ Cell” option in the Format Menu  General Formatting.  To highlight a series of cells click and drag the mouse over the desired area.  To move a highlighted area, click on the border of the box and drag the box to the desired location. CELL FORMAT 15

Change The Font Size Add a Boarder FONT FORMAT Change The Font Color 1 2

INSERT/DELETE ROW/COLUMN: Note The new row always appears above the selected row. The new column always appears to the left of the selected column. TO INSERT ROWS: Select the row below where you want the new row to appear. Click the Insert command in the Cells group on the Home tab. The row will appear. To Insert Columns: MS E x S c e l , e R P l A e T C c ,0 5 t / t 2 / h 2 e 1 8 colu m n to the r ight of w here y ou w ant the colu m n to a p 1 p 3 e a r . C l ick the Insert command in the Cells group on the Home tab. The column will appear.

CELL FORMAT (CONT….)  You can change the view of your work so that it is page by page.  You can insert Headers and Footers to your work.  Y o u c a n a d d a co mm en ts a b o u t specific cell for future reference.  T o chan g e the o r d e r of w o r ks h e e t s, click and drag the worksheet tab to the desired order 1 4

Entering Data into a Worksheet  To enter data, first make the cell in which you want to enter the data active by clicking it.  Enter the data (text, formulas, dates, etc.) into the active cell.  Use the Alt+Enter key combination to enter text on multiple lines within the same cell.  Use TAB key, arrow keys, or ENTER key to navigate among the 15 cells .

 IN THE LOWER RIGHT HAND CORNER OF THE ACTIVE CELL IS EXCEL’S “FILL HANDLE”.WHEN YOU HOLD YOUR MOUSE OVER THE TOP OF IT, YOUR CURSOR WILL TURN TO A CROSSHAIR  IF YOU HAVE JUST ONE CELL SELECTED, IF YOU CLICK AND DRAG TO FILL DOWN A COLUMN OR ACROSS A ROW, IT WILL COPY THAT NUMBER OR TEXT TO EACH OF THE OTHER CELLS  IF YOU HAVE TWO CELLS SELECTED, EXCEL WILL FILL IN A SERIES. IT WILL COMPLETE THE PATTERN.FOR EXAMPLE,IF YOU PUT 4 AND 8 IN TWO CELLS SELECT THEM,CLICK AND DRAG THE FILL HANDLE ,EXCEL WILL CONTINUE THE PATTERN WITH 12,16,20.ETC.  EXCEL CAN ALSO AUTO- FILL SERIES OF DATES, TIMES, DAYS OF THE WEEK, MONTHS EDDITING FILL 1 6

Selecting a Group of Cells A group of selected cells is called a range. The range is identified by its range reference, for example, A3:C5 Range Two Types: Adjacent & Non-Adjacent  In an adjacent range, all cells touch each other and form a rectangle. To select an adjacent range, click the cell in a corner of the range, drag the pointer to the cell in the opposite corner of the range, and release the mouse button.  A non adjacent range includes two or more adjacent ranges and selected cells. To select a nonadjacent range, select the first adjacent range or cell, press the Ctrl key as you select the other cells or ranges you want to include, and then release the Ctrl key and the mouse button 21

Selecting a Group of Cells 22

 Select the cell or cells you wish to copy/cut .  Click the Copy command in the Clipboard group on the Home tab.  Select the cell or cells where you want to paste the information.  Click the Paste command.  The copied/cut information will now appear in the new cells TO COPY/CUT AND PASTE CONTENTS: 23

TO SORT IN ALPHABETICAL ORDER: Select a cell in the column you want to sort (In this example, we choose a cell in column Q). Click the Sort & Filter command in the Editing group on the Home tab. Select Sort A to Z . Now the information in the Category column is organized in alphabetical order. TO SORT FROM SMALLEST TO LARGEST: Select a cell in the column you want to sort (In this example, we choose a cell in column Q). Click the Sort & Filter command in the Editing group on the Home tab. Select From Smallest to Largest . Now the information is organized from the smallest to largest amount. SORTING & FILTERING 24

Freezing pane If you need the information in one column to freeze, while still being able to scroll through the rest of the data follow these instructions: Step 1: Highlight a specific column. Step 2: Go to the Window Menu and click “Freeze Panes.” Step 3: The cells to the left of the highlighted column should be frozen while you are still able to scroll about the rest of the worksheet (Notice that column A remains while column H is next to it). 25

T o u p d a t e y o u r w orksh e e t s , y ou can u s e the f ind a n d replace action (under the Edit Menu). FIND AND REPLACE: 26

TO APPLY CONDITIONAL FORMATTING: Select the cells you would like to format. Select the Home tab. Locate the Styles group. Click the Conditional Formatting command. A menu will appear with your formatting options. TO REMOVE CONDITIONAL FORMATTING: Click the Conditional Formatting command. Select Clear Rules . Choose to clear rules from the entire worksheet or the selected cells . CONDITIONAL FORMATING: 27

TO APPLY NEW FORMATTING: Click the Conditional Formatting command. Select New Rules from the menu. There are different rules, you can a M p S E p xc e l l y ,R P A t T C h , e 5/ s 2 / e 20 1 r 8 u l es to dif f e r entiate particular cell. CONDITIONAL FORMATING: TO MANAGE CONDITIONAL FORMATTING: Click the Conditional Formatting command. Select Manage Rules from the menu. The Conditional Formatting Rules Manager dialog bo x w il l a p pear. F r o m here y o u c 2 4 an e d i t a r u l e, delete a rule, or change the order of rules.

When entering numerical data, you can command Excel to do any mathematical function .  Start each formula with an equal sign (=). To enter the same formulas for a range of cells, use the colon sign “:”  ADDITION FORMULAS To add cells together use the “+” sign.  SUBTRACTION FORMULAS To subtract cells, use the “-” sign.  DIVISION FORMULAS To divide cells, use the “/” sign  MULTIPLICATION FORMULAS To multiply cells, use the “*” sign 29 ENTERING FORMULA

A RELATIVE CELL REFERENCE AS ( A1) IS BASED ON THE RE L A T IVE POSITION OF THE CELL. IF THE POSITION OF THE CELL THAT CONTAINS THE REFERENCE CHANGES, THE REFERENCE ITSELF IS CHANGED. IN CELL (C1) SUM FUNCTION IS USED. THEN FUNCTION FROM CELL (C1) IS COPY TO CELL (D3). WHEN THE POSITION OF THE CELL IS CHANGED FROM (C1) TO (D3),THEN THE REFERENCE IS ALSO CHANGED FROM (A1,B1) TO (B3,C3). CELL REFERENCING 30

AN ABSOLUTE CELL R EFE R E NCE AS ($A$1) ALWAYS REFERS TO A CELL IN A SPECIFIC LOCATION. IF THE POSITION OF THE CELL THAT CONTAINS THE FORMULA CHANGES, THE ABSOLUTE REFERENCE REMAINS THE SAME. IN CELL (C1) SUM FUNCTION IS USED. THEN FUNCTION FROM CELL (C1) IS COPY TO CELL (D3). WHEN THE POSITION OF THE CELL IS CHANGED FROM (C1) TO (D3),THEN THE ABSOLUTE REFERENCE REMAINS THE SAME(A1,B1). $ IS USED FOR CONSTANT ROW OR COLUMN . CELL REFERENCING 31

IN CELL (C1) SUM FUNCTION IS USED. THEN FUNCTION FROM CELL (C1) IS COPY TO CELL (D3). WHEN THE POSITION OF THE CELL IS CHANGED FROM (C1) TO (D3),THEN ROW REFERENCE IS CHANGED(FROM 1 TO 3) BUT COLUMN REFERENCE REMAINS SAME(A,B). CELL REFERENCING A MIXED REFERENCE HAS EITHER AN ABSOLUTE COLUMN AND RELATIVE ROW OR ABSOLUTE ROW AND RELATIVE COLUMN. AN ABSOLUTE COLUMN REFERENCE TAKES THE FORM $A1, $B1.AN ABSOLUTE ROW REFERENCE T AK E S 2 8 T H E F O R M A$1, B$1.

= = = = = = SYNTAX OF DATEDIF =DATEDIF(START_DATE,END_DATE,”IN)TERVAL” START DAT - E Date from which u want to calculate difference. END DATE - Date up to which u want to calculate difference. INTERVA - L Form in which u want to calculate difference. This says that I am 19 years 6 months & 18 days old FUNCTION “D” - DAYS “M ” - M ON T HS “Y” - YEARS MS Ex c e l ,R PA T C , “ 5 / Y 2/ 2 M 01 8 ” - M ON T HS OV E R Y E AR “MD” - DAYS OVER MONTH 2 9

FUNCTION (CONT….) = = SYNTAX OF SUMIF =SUMIF(RANGE,CRITERIA,SUM_RANGE) RANGE- Range of cells on which conditions are applied. CRITERIA- Condition that defines which cell or cells will be added. SUM RANGE- Actual cells to sum. NOTE:- If sum range is not used then range is used for sum. WITHOUT S UM_RA N GE 3

SYNTAX OF IF =IF(LOGICAL TEXT, VALUE IF TRUE, VALUE IF FALSE) LOGICAL TEXT- Any value or expression that can be evaluated to TRUE or FALSE. VALUE IF TRUE- Value that is returned if logical text is TRUE. VALUE IF FALSE- Value that is returned if logical text is FALSE. IN COLUMN B DIFFERENT CONDITIONS ARE USED AND BASED ON THIS, IN COLUMN C DIFFERENT RESULTS ARE SHOWN. = = = = = = = FUNCTION 3 1

TEXT FUNCTIONS SYNTAX OF FUNCTIONS  LOWER F UN C T ION = L OW E R( T E X T )  UPPER F UN C T ION =U PP E R ( T E X T)  PROPER F UN C T ION = P RO PE R( T E X T ) FUNCTION 3 2

FUNCTION 37  How to Make Connection  How to Consolidate Data  Link/Hyperlink  Track Change  Protect sheet  LOOKUP formula  Advance Filtering  Macro

= = = = = N O W RETURNS CURRENT DATE AND TIME. T OD A Y RETURNS CURRENT DATE ONLY. M OD RETURNS THE REMAINDER AFTER A NO. IS DIVIDED BY A DIVISOR. LE N RETURNS THE NO. OF CHARACTERS IN A TEXT STRING. S UM ADD ALL THE NUMBERS. USES OF FUNCTIONS OTHER FUNCTIONS 38

CHART/GRAPH 39

CREATING CHART OR GRAPH information about the chart you want to generate  Charts, or graphs, provide visual representations of the workbook data.  A chart may be embedded in an existing worksheet, or can be created on a separate chart sheet, with its own tab in the workbook.  You can use Excel’s Chart Wizard to quickly and easily create charts.  The Chart Wizard is a series of dialog boxes that prompt you for 3 6

Create a chart using the Chart Wizard 41 With the Excel program you can create charts with the “Chart Wizard.” Step 1: Choose a chart type. Step 2: Highlight the data that you wish to be included in the chart. Step 3: Change chart options. Here you can name the chart and the axes, change the legend, label the data points, and many other options. Step 4: Choose a location for the chart.

Choose a chart type and view examples of that type in dialog box 1. Choose which type of chart you want in this pane. Select a sub-type of that chart in this pane. Click and hold this button down to see a preview of your chart. STEP-1 42

• 43 You can alter the data source during step 2 of the Chart Wizard and also choose whether to organize the data source by rows or by columns. The data source is organized into a collection of data series. A data series consists of data values, which are plotted on the chart's vertical, or Y-axis The data series’ category values, or X values, are on the horizontal axis, called the X-axis A chart can have several data series all plotted against a common set of category values. • • Step-2:Choosing a data series

During the second step of the Chart Wizard, you specify the data to be displayed in the chart, which is also known as the chart's data source. Specify the cell range and whether the data series is in rows or columns. Step-2:Choosing a data series 44

Step-3:Change Chart Type Option 45

PIOVIT TABLE 46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

To Print a worksheet, you can use:  A menu  The Print button on the standard toolbar  The Ctrl-P keystroke to initiate a printout of the worksheet Excel uses the same basic methods for printing as other Windows and Microsoft Office applications. PRINT A WOORKBOOK 66
Tags