Use Of Ms Excel

Posted on  by 



-->

Example #1 – Simple Spreadsheet for a Sales Report in Excel. Let’s assume a user has some sales data for the last one year and wants to make it more attractive and easier to analyze the data in Excel. Let’s see how an MS spreadsheet can help here to solve a user problem. Step 1: Open MS Excel from the Start Menu, click on the Excel app.

Automate any Excel related activity

  • Specify whether to open a New Excel document, or an existing one: Document path: No: File: The full path of the existing Excel document to open: Make instance visible: N/A: Boolean value: True: Specify whether to make the Excel window visible or hide it: Password: Yes: Encrypted value: The password on the Excel document, if it is password.
  • At this point, you’ve familiarized yourself with Excel’s interface and are already flying around your spreadsheets faster than Harry Potter on his Nimbus 2000. Let’s dive into the core use case for the software: Excel formulas. Excel can help you do simple arithmetic like adding, subtracting, multiplying, or dividing any of your data.
  • Use Excel when you: Require a flat or nonrelational view of your data instead of a relational database that uses multiple tables, and when your data is mostly numeric. Frequently run calculations and statistical comparisons on your data. Want to use PivotTable reports to view hierarchical data in a compact and flexible layout.
  • 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 (VBA).
Run Excel Macro
Get active Excel worksheet
Get all Excel worksheets
Delete Excel worksheet
Rename Excel worksheet
Activate Cell in Excel Worksheet
Select cells in Excel worksheet
Get selected cell range from Excel worksheet
Copy cells from Excel worksheet
Paste cells to Excel worksheet
Insert row to Excel worksheet
Delete row from Excel worksheet
Insert column to Excel worksheet
Delete column from Excel worksheet
Get first free row on column from Excel worksheet
Launch Excel
Attach to running Excel
Read from Excel worksheet
Save Excel
Write to Excel worksheet
Close Excel
Set active Excel worksheet
Add new worksheet
Get first free column/row from Excel worksheet

Advanced

Advanced Excel automation actions

Run Excel Macro

Runs a specified macro on the document of an Excel instance

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceThe Excel instance to work with. This variable must have been previously specified in a Launch Excel action
MacroNoText valueThe macro to run. The text should consist of the name of the macro, followed by any arguments (optional), all separated by semicolons
Variables Produced
  • This action doesn't produce any variables
Exceptions
ExceptionDescription
Failed to run macroIndicates a problem running the specified macro

Get active Excel worksheet

Retrieves an Excel document's active worksheet

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceThe Excel instance to work with. This variable must have been previously specified in a Launch Excel action
Variables Produced
ArgumentTypeDescription
SheetNameText valueThe name of the active worksheet
SheetIndexNumeric valueThe index of the active worksheet
Exceptions
ExceptionDescription
Failed to retrieve active worksheetIndicates a problem retrieving the active worksheet

Get all Excel worksheets

Retrieves all worksheet names of an Excel document

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceSpecify the Excel instance. This variable must have been previously specified in a Launch Excel action
Variables Produced
ArgumentTypeDescription
SheetNamesList of Text valuesThe names of all worksheets
Exceptions
ExceptionDescription
Failed to retrieve all worksheet namesIndicates a problem retrieving the names of the Excel worksheet

Delete Excel worksheet

Deletes a specific worksheet from an Excel instance

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceThe Excel instance to work with. This variable must have been previously specified in a Launch Excel action
Delete worksheet withN/AIndex, NameNameWhether to find the worksheet by name or index
Worksheet indexNoNumeric valueThe Index number of the worksheet to delete. The numbering starts from 1, meaning that the index of the fist worksheet is 1, the second one is 2 etc.
Worksheet nameNoText valueThe name of the worksheet to delete
Variables Produced
  • This action doesn't produce any variables
Exceptions
ExceptionDescription
Can't find worksheetIndicates that a worksheet with the specified name could not be found
Failed to delete worksheetIndicates a problem deleting the specified worksheet

Rename Excel worksheet

Renames a specific worksheet of an Excel instance

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceSpecify the Excel instance. This variable must have been previously specified in a Launch Excel action
Rename worksheet withN/AIndex, NameNameSpecify whether to find the worksheet by name or index
Worksheet indexNoNumeric valueThe index of the worksheet to rename. The numbering starts from 1, meaning that the index of the fist worksheet is 1, of the second is 2 etc.
Worksheet nameNoText valueThe name of the worksheet to rename
Worksheet new nameNoText valueThe new name of the worksheet
Variables Produced
  • This action doesn't produce any variables
Exceptions
ExceptionDescription
Can't find worksheetIndicates that a worksheet with the specified name could not be found
Failed to rename worksheetIndicates a problem renaming the specified worksheet

Activate Cell in Excel Worksheet

Activate a cell in the active worksheet of an Excel instance, by providing column, row and offset

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceSpecify the Excel instance to work with. This variable must have been previously specified in a Launch Excel action
ActivateN/AAbsolutely specified cell, Relatively specified cellAbsolutely specified cellSelect whether to specify the cell to activate absolutely, or relatively, by using an offset distance being the number of cells between the currently activated reference cell and the actual cell activate
ColumnNoText valueThe numeric value or letter of the cell column
DirectionN/ALeft, Right, Above, BelowLeftSelect offset direction. Select where to look for the cell to activate based on the position of the currently active cell
Offset from active cellNoNumeric valueThe distance in cells between the currently active cell and the desired cell. The numbering starts from 0
RowNoNumeric valueThe numeric value of the cell row. The numbering starts from 1
Variables Produced
  • This action doesn't produce any variables
Exceptions
ExceptionDescription
Failed to activate cellIndicates a problem activating an Excel cell

Select cells in Excel worksheet

Selects a range of cells in the active worksheet of an Excel instance

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceThe Excel instance to work with. This variable must have been previously specified in a Launch Excel action
SelectN/AAbsolutely specified cell, Relatively specified cellAbsolutely specified cellSpecify whether to select an explicitly specified range of cells or a range of cells relatively to the currently active cell
X Axis DirectionN/ALeft, RightLeftThe X-axis offset direction. Where to look along the horizontal axis, based on currently activated cell's position
Start columnNoText valueThe index or letter of the first column
X OffsetNoNumeric valueThe X-axis offset
Start rowNoNumeric valueThe first row number. The numbering starts from 1
End columnNoText valueThe index or letter of the last column
Y Axis DirectionN/AAbove, BelowAboveThe Y-axis offset direction. Where to look along the vertical axis, based on the position of the currently active cell
End rowNoNumeric valueThe last row number. The numbering starts from 1
Y OffsetNoNumeric valueThe Y-axis offset
Variables Produced
  • This action doesn't produce any variables
Exceptions
ExceptionDescription
Failed to select cellsIndicates a problem selecting the specified cells

Get selected cell range from Excel worksheet

Retrieve the selected range of cells in a structure consisting of first column, first row, last column and last row

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceThe Excel instance to work with. This variable must have been previously specified in a Launch Excel action
Variables Produced
ArgumentTypeDescription
FirstColumnIndexNumeric valueThe numeric value of the range's first column
FirstRowIndexNumeric valueThe numeric value of the range's first row
LastColumnIndexNumeric valueThe numeric value of the range's last column
LastRowIndexNumeric valueThe numeric value of the range's last row
Exceptions
ExceptionDescription
Failed to retrieve the selected range of cellsIndicates a problem retrieving the selected range of cells

Copy cells from Excel worksheet

Copies a range of cells from the active worksheet of an Excel instance

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceThe Excel instance to work with. This variable must have been previously specified in a Launch Excel action
Copy modeN/ASingle Cell's Values, Values from a Range of Cells, Values from SelectionSingle Cell's ValuesSpecify whether to copy a single cell, a range of cells or the current selection of cells
Start columnNoText valueThe index or letter of the first column
Start rowNoNumeric valueThe index of the first row
End columnNoText valueThe index or letter of the last column
End rowNoNumeric valueThe index of the last row
Variables Produced
  • This action doesn't produce any variables
Exceptions
ExceptionDescription
Failed to copy cellsIndicates a problem copying the cells from the Excel document

Paste cells to Excel worksheet

Pastes a range of cells to the active worksheet of an Excel instance

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceSpecify the Excel instance. This variable must have been previously specified in a Launch Excel action
Paste modeN/AOn specified cell, On currently active cellOn specified cellSpecify whether to paste on a specified cell or the currently active cell
ColumnNoText valueThe index or letter of the cell column
RowNoNumeric valueThe row number
Variables Produced
  • This action doesn't produce any variables
Exceptions
ExceptionDescription
Failed to paste cellsIndicates a problem pasting the specified cells

Insert row to Excel worksheet

Inserts a row above a selected row of an Excel instance

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceThe Excel instance to work with. This variable must have been previously specified in a Launch Excel action
Row indexNoNumeric valueThe index of the row to add a new row above. The numbering starts from 1
Variables Produced
  • This action doesn't produce any variables
Exceptions
ExceptionDescription
Can't find rowIndicates that a row with the specified index could not be found
Failed to insert rowIndicates a problem inserting a row at the specified Excel instance

Delete row from Excel worksheet

Deletes a selected row from an Excel instance

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceThe Excel instance. This variable must have been previously specified in a Launch Excel action
Delete rowNoNumeric valueThe Index number of the row to delete. The numbering starts from 1
Variables Produced
  • This action doesn't produce any variables
Exceptions
ExceptionDescription
Can't find rowIndicates that a row with the specified index could not be found
Failed to delete rowIndicates a problem deleting the specified row

Insert column to Excel worksheet

Inserts a column to the left of a selected column of an Excel instance

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceThe Excel instance to work with. This variable must have been previously specified in a Launch Excel action
ColumnNoText valueThe column's index number or letter. A new column will appear on the left side of the column indicated
Variables Produced
  • This action doesn't produce any variables
Exceptions
ExceptionDescription
Can't find columnIndicates that a column with the specified name could not be found
Failed to insert columnIndicates a problem inserting a column at the specified Excel instance

Delete column from Excel worksheet

Deletes a selected column from an Excel instance

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceThe Excel instance to work with. This variable must have been previously specified in a Launch Excel action
Delete columnNoText valueThe index number or letter of the column to delete
Variables Produced
  • This action doesn't produce any variables
Exceptions
ExceptionDescription
Can't find columnIndicates that a column with the specified name could not be found
Failed to delete columnIndicates a problem deleting the specified column

Get first free row on column from Excel worksheet

Retrieve the first free row, given the column of the active worksheet

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceSpecify the Excel instance. This variable must have been previously specified in a Launch Excel action
ColumnNoText valueThe index or letter that identifies the column. Column numbering starts from index 1
Variables Produced
ArgumentTypeDescription
FirstFreeRowOnColumnNumeric valueThe numeric value of the given column's first fully empty row
Exceptions
ExceptionDescription
Failed to retrieve first free rowIndicates a problem retrieving the first free row of an Excel instance

Launch Excel

Launches a new Excel instance or opens an Excel document

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Launch ExcelN/Awith a blank document, and open the following documentwith a blank documentSpecify whether to open a New Excel document, or an existing one
Document pathNoFileThe full path of the existing Excel document to open
Make instance visibleN/ABoolean valueTrueSpecify whether to make the Excel window visible or hide it
PasswordYesEncrypted valueThe password on the Excel document, if it is password protected
Open as ReadOnlyN/ABoolean valueFalseSpecify whether to open the stored document in read-only mode or not
Load add-ins and macrosN/ABoolean valueFalseSpecify whether to load add-ins and macros into the new Excel instance
Variables Produced
ArgumentTypeDescription
ExcelInstanceExcel instanceThe specific Excel instance for use with later Excel actions. This allows the user to specify which of possibly several Excel spreadsheets to access
Exceptions
ExceptionDescription
Failed to launch ExcelIndicates a problem launching an Excel instance
Failed to open Excel documentIndicates a problem opening the specified Excel document

Attach to running Excel

Attaches to an Excel document that's already open

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Document nameNoFileThe name or the path of the Excel document to attach to
Variables Produced
ArgumentTypeDescription
ExcelInstanceExcel instanceThe Excel instance this action has attached to for use with later Excel actions
Exceptions
ExceptionDescription
Specified Excel document not foundIndicates that the specified Excel document could not be found
Failed to attach to Excel documentIndicates a problem attaching to the Excel document

Read from Excel worksheet

Reads the value of a cell or a range of cells from the active worksheet of an Excel instance

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceThe Excel instance to work with. This variable must have been previously specified in a Launch Excel action
RetrieveN/ASingle Cell's Values, Values from a Range of Cells, Values from SelectionSingle Cell's ValuesWhether to retrieve the value of a single cell or a table from a range of cells
Start columnNoText valueThe cell column (single cell's value) or first column as a numeric value or a letter
Start rowNoNumeric valueThe cell row (single cell's Value) or first row number
End columnNoText valueThe last column as a numeric value or a letter
End rowNoNumeric valueThe last row number
Get Cell Contents as TextN/ABoolean valueFalseSpecify whether to retrieve the content of the cell(s) purely as text or as the closest matching type such as Date Time for dates, Numeric for numbers and so on
First line of range contains column namesN/ABoolean valueFalseSpecify whether to consider the first row as column names. In this case, the names won't be read as data into the table and later actions can search the data by column names
Variables Produced
ArgumentTypeDescription
ExcelDataGeneral valueThe value of the single cell
ExcelDataDatatableThe value of the range of cells as a DataTable
Exceptions
ExceptionDescription
Failed to read cell value(s)Indicates a problem reading the value(s) of the specified Excel cell(s)
Use Of Ms Excel

Save Excel

Saves a previously launched Excel instance

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceThe Excel instance to save. This variable must have been previously specified in a Launch Excel action
Save modeN/ASave document, Save document asSave documentHow to save the document of this instance
Document formatN/ADefault (From Extension), Excel Workbook (.xlsx), Excel Workbook Macro Enabled (.xlsm), Excel 97-2003 Workbook (.xls), Web Page (.htm, .html), Excel Template (.xltx), Excel Template Macro Enabled (.xltm), Excel 97-2003 Template (.xlt), Text (.txt), Unicode Text (.txt), Text Macintosh (.txt), Text DOS (.txt), XML Spreadsheet (.xml), Excel 95 (.xls), CSV (.csv), DIF (.dif), SYLK (.slk), Excel Add-In (.xlam), Excel 97-2003 Add-In (.xla), Strict Open XML Workbook (.xlsx), OpenDocument Spreadsheet (.ods)Default (From Extension)The format to save the document as
Document pathNoFileThe full path to save the document as
Variables Produced
  • This action doesn't produce any variables
Exceptions
ExceptionDescription
Failed to save Excel documentIndicates a problem saving the Excel document

Write to Excel worksheet

Writes a value into a cell or a range of cells of an Excel instance

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceThe Excel instance to work with. This variable must have been previously specified in a Launch Excel action
Value to writeNoGeneral valueEnter the text, number or variable to insert. If the variable contains a table, it will fill in cells to the right and below writing over other cell data if need be and a list will fill in cells below
Write modeN/AOn specified cell, On currently active cellOn specified cellWhether to write into a specified cell or the currently active cell
ColumnNoText valueThe column number or letter for the cell to write to
RowNoNumeric valueThe row of the cell to write to. The numbering starts from 1, meaning that the index of the fist worksheet is 1, of the second is 2 etc.
Variables Produced
  • This action doesn't produce any variables
Exceptions
ExceptionDescription
Failed to write value to ExcelIndicates a problem writing the specified value to the Excel instance

Close Excel

Closes an Excel instance

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceThe Excel instance to close. This variable must have been previously specified in a Launch Excel action
Before closing ExcelN/ADo not save document, Save document, Save document asDo not save documentWhether and how to save the document of this instance before closing that instance
Document formatN/ADefault (From Extension), Excel Workbook (.xlsx), Excel Workbook Macro Enabled (.xlsm), Excel 97-2003 Workbook (.xls), Web Page (.htm, .html), Excel Template (.xltx), Excel Template Macro Enabled (.xltm), Excel 97-2003 Template (.xlt), Text (.txt), Unicode Text (.txt), Text Macintosh (.txt), Text DOS (.txt), XML Spreadsheet (.xml), Excel 95 (.xls), CSV (.csv), DIF (.dif), SYLK (.slk), Excel Add-In (.xlam), Excel 97-2003 Add-In (.xla), Strict Open XML Workbook (.xlsx), OpenDocument Spreadsheet (.ods)Default (From Extension)The format of the document
Document pathNoFileThe full path of the document
Variables Produced
  • This action doesn't produce any variables
Exceptions
ExceptionDescription
Failed to save Excel documentIndicates a problem saving the Excel document
Failed to close Excel instanceIndicates a problem closing the Excel instance

Set active Excel worksheet

Activates a specific worksheet of an Excel instance

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceSpecify the Excel instance. This variable must have been previously specified in a Launch Excel action
Activate worksheet withN/AIndex, NameNameSpecify whether to find the worksheet by name or index
Worksheet indexNoNumeric valueThe index number of the worksheet to activate. The numbering starts from 1, meaning that the index of the fist worksheet is 1, of the second is 2, etc.
Worksheet nameNoText valueThe name of the worksheet to activate
Variables Produced
  • This action doesn't produce any variables
Exceptions
ExceptionDescription
Can't find worksheetIndicates that a worksheet with the specified name could not be found
Failed to activate worksheetIndicates a problem activating the specified worksheet

Add new worksheet

Adds a new worksheet to the document of an Excel instance

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceSpecify the Excel instance. This variable must have been previously specified in a Launch Excel action
New worksheet nameNoText valueSpecify the name of the new worksheet
Add worksheet asN/AFirst worksheet, Last worksheetFirst worksheetSpecify whether the new Excel worksheet will be added before or after the existing worksheets
Variables Produced
  • This action doesn't produce any variables
Exceptions
ExceptionDescription
A worksheet with the same name already existsIndicates that the worksheet could not be added because a worksheet with the same name already exists
Failed to add worksheetIndicates a problem adding the worksheet

Get first free column/row from Excel worksheet

Retrieves the first free column and/or row of the active worksheet. This is useful for adding new data into a worksheet that already has data in it

Input Parameters
ArgumentOptionalAcceptsDefault ValueDescription
Excel instanceNoExcel instanceSpecify The Excel instance. This variable must have been previously specified in a Launch Excel action
Variables Produced
ArgumentTypeDescription
FirstFreeColumnNumeric valueThe numeric value of the first fully empty column. For example, if column F is the first empty column, it will be stored as '6'
FirstFreeRowNumeric valueThe numeric value of the first fully empty row. For example, if row 7 is the first empty row, it will be stored as '7'
Use
Exceptions
ExceptionDescription
Failed to retrieve first free column/rowIndicates a problem retrieving the first free column/row of an Excel instance

Note

Can you tell us about your documentation language preferences? Take a short survey.

The survey will take about seven minutes. No personal data is collected (privacy statement).

In this tutorial, you'll learn about workbooks and the different parts of an Excel worksheet (spreadsheet), such as rows, columns, and cells. We'll discuss how to insert rows and columns, and how to move around in a worksheet.

○ This tutorial contains affiliate links. Read our disclosure policy to learn more. ○

We'll also learn how to enter data into cells, move and copy data, propagate cell contents, and more. We'll tell you everything you need to know to get started using Microsoft Excel. We encourage you to open the Excel program and take the steps we outline below in your own worksheet.


What is Microsoft Excel?

Microsoft Excel is a program that provides worksheets comprised of rows and columns. Data can be stored in the worksheet, also called a spreadsheet, similarly to a Microsoft Word table, but the power of Excel is its ability to perform simple to complex mathematical calculations, and other functions. When you are ready to create some math formulas, see Excel Math Basics.

The Excel Worksheet (Spreadsheet) and Workbook

An Excel worksheet, or spreadsheet, is a two-dimensional grid with columns and rows. Look at the spreadsheet below. The column names are letters of the alphabet starting with A, and the rows are numbered chronologically starting with the number one. The cells in the first row are A1, B1, C1, and so on. And the cells in the first column are A1, A2, A3, and so on. These are called cell names or cell references.

We use cell references when creating math formulas or functions. For example, the formula to add the contents of cells B2 and B3 together is: =B2+B3.

Structure of a Microsoft Excel Worksheet (Spreadsheet)

The Name Box is located in the area above Column A, and displays the cell reference of the selected cell - the cell where the cursor is resting. In our spreadsheet above, the selected cell is C2. Notice that the column letter (C) and the row number (2) change color.

The beginning of the Formula Bar can be seen in the area above Column D on our worksheet. The Formula Bar displays the contents of the selected cell.

A workbook is a collection of worksheets or spreadsheets. When the Excel program is opened, a workbook opens with three blank worksheets. The names of the worksheets are displayed on tabs at the bottom of the Excel window. For more information, see our separate tutorial Excel: Managing Workbooks and Worksheets.

How to Move From Cell to Cell

The arrow keys can be used to move left, right, up, and down from the current cell. Press the Enter key to move to the cell immediately below the current cell, and press the Tab key to move one cell to the right.

How to Select Cells

There are a variety of ways to select cells in an Excel spreadsheet:

  • To select one cell, click in the cell.
  • To select one or more rows of cells, click on the row number(s).
  • To select one or more columns of cells, click on the column letter(s).
  • To select a group of contiguous cells, click in one corner cell and drag the mouse to the opposite corner. In the image at right we have selected cells A1 through B5 (written A1:B5 in formulas).
  • To select multiple cells that are not contiguous, press and hold the Ctrl key while clicking in the desired cells .
  • To select every cell in the worksheet, click in the upper right corner of the worksheet to the left of 'A.'

How to Enter Data into Cells

To enter data into a cell, just click in the cell and begin typing. What you type also displays in the Formula Bar. When entering dates, Excel defaults to the current year if the year portion of the date is not entered.

You may edit cell contents from the Formula bar, or from directly inside the cell. To edit from the Formula Bar, select the cell and click inside the Formula Bar. When done typing, either press the Enter key or click inside another cell. To edit directly inside a cell, either double click inside the cell, or select the cell and press the F2 key.

Each cell has a specific format. In Excel, a cell's format tells Excel how to display the contents of the cell. A cell's format may be different than the cell contents.

For example, you may have entered 8.9521 in a cell. But if the cell was formatted to display only two decimal places, Excel will display 8.95 in that worksheet cell. However, Excel will still use the real cell value that you entered, 8.9521 when performing calculations that involve that cell.

For more information, see our separate tutorial on Formatting Cells in Microsoft Excel.

How to Propagate Cell Contents

There are multiple ways to propagate or fill data from one cell to adjacent cells. Let's begin with two popular keyboard shortcuts that allow us to fill down, or fill to the right:

Use Of Ms Excel

  • To fill adjacent cells with the contents of the cell above, select the cell with the data and the cells to be filled and press Ctrl + D (the Ctrl key and the D key) to fill down.
  • To fill adjacent cells with the contents of the cell to the left, select the cell with the data and cells to be filled and press Ctrl + R (the Ctrl key and the R key) to fill to the right.

To propagate in any direction, use the Fill Handle. Click in a cell with data to be copied, hover the cursor over the cell's lower right corner until the cursor changes to a thin plus sign (+) or a dark square, and drag up, down, left, or right to fill the cells. Excel's Fill Handle is powerful; see our How to Autofill Anything tutorial.

If the data to be copied is a date, number, time period, or a custom-made series, the data will be incremented by one instead of just copied when the Fill Handle is used. For example, to display the months of the year in column A, type January in cell A1, drag the Fill Handle down to cell A12, and the months will display, in order, in column A!

How to Move and Copy Cell Contents

To move cell contents, right-click in the selected cell and click Cut; then right-click in the new location and click Paste. Similarly, to copy cell contents, right-click in the selected cell and select Copy, and paste in the new cell.

You can copy the contents of a cell as described above, but paste and fill multiple adjacent cells. Just highlight the block of cells you want to paste in: click and hold the left mouse button in one corner of the cell range. Still holding the mouse button down, swipe the cursor over to the opposite corner until just the cells you want filled are highlighted. Then right-click and click Paste.

To remove the animated border around the original cell, press the ESC key, or start typing in a new cell.

How to Add and Delete Rows and Columns

To insert a new row in a spreadsheet, right-click on a row number, and click Insert. Excel always inserts the row ABOVE the row that was clicked on. If you want to continue inserting rows, press the F4 key to insert each additional row.

To delete a row, right-click on the row number, and click Delete. Contiguous rows can be deleted by highlighting them before clicking Delete. And non-contiguous rows can be selected by pressing and holding the CTRL key before clicking Delete. Don't press the Delete key on the keyboard unless you just want to delete the cell contents and not the actual row.

To insert a new column, right-click on a column letter and click Insert. Excel always inserts the column to the LEFT of the column that was clicked on. As with rows, if you want to add additional columns after inserting the first column, press the F4 key.

Use Of Ms Excel In Financial Analysis

To delete a column, right-click on the column letter, and click Delete. Contiguous columns can be deleted by highlighting them before clicking Delete. And non-contiguous columns can be selected by pressing and holding the CTRL key. Don't press the Delete key on the keyboard unless you just want to delete the cell contents and not the actual column.

How to Lock Cells and Protect a Spreadsheet

Uses For Excel

There are two steps to preventing important cell content from being accidentally overwritten or deleted. First, the cell must be locked. Second, the worksheet must be protected. If you have any valuable data or complex formulas that you do not want to lose, and data DOES get accidentally erased(!), then you owe it to yourself to learn which cells to lock and which worksheet protection options to take. We provide detailed instructions in our separate tutorial, Protecting Worksheet Data in Microsoft Excel.

Microsoft Excel For Windows 10 Free Download

In Closing...

Microsoft Excel has many built-in functions that can greatly improve productivity and provide unique results that math formulas alone often cannot. See our alphabetical list of Excel functions for information and examples of how to use the most popular Excel functions.

If you see ##### in a cell, don't panic. It's just Excel's way of telling you that you need to make the column wider for the cell contents to display. To make the column wider, place the cursor on the right side of the column heading and drag the column edge to the right until the data displays.

Use Of Ms Excel In Data Analysis

↑ Return to the top





Coments are closed