Bca-107 Unit4 Tmu
Bca-107 Unit4 Tmu
Bca-107 Unit4 Tmu
Microsoft Excel is one of the most suitable spreadsheet programs that help us to
store and represent the data in tabular form, manage and manipulate data, create
optically logical charts, and more. Excel provides you the worksheet to create a
new document in it. You can save the Excel file with .xls extension.
In Windows 10 operating system, click on the Start button and search for the MS
Excel application. If it is already installed in your system, it will appear here like
this.
When the Excel opens, an interface will appear like this. From here, you can create
a new workbook, choose a template, and access your recently edited workbooks.
Worksheets in Excel
While working with Excel, often you come across terms worksheet, Rows, Columns
and Cells. In this tutorial we will briefly understand these terms along with their
fundamentals and the operation (create, copy, paste, delete, etc) performed in them.
Worksheet
A Worksheet is a single page containing a collection of cells where the user can
store, update and manipulate the data. Worksheet is also called a spreadsheet. It is
made up of rows, columns and cells.
In Excel, individual data cells in a worksheet are defined and organized with the help
of the vertical column and horizontal row that are combined to form a cell reference,
unlike A1, B25, or R867.
Select a Worksheet
Whenever you open an Excel workbook, by default, Excel will take you to the
Sheet1 worksheet. As you can see in the below image, the name of the worksheet
'Sheet1' is displayed on its sheet tab at the bottom of the windowpane. Though you
can rename it anytime, we will cover the steps down in this tutorial.
Insert a Worksheet
Excel enables the user to insert multiple worksheets as per their requirement.
To insert a new worksheet in excel, click on the plus (+) symbol located at the
bottom of the windowpane. By default, the new worksheet will be named 'SheetN'
where N represents an integer number 1,2,3,4,5,6,7,...., n.
Output
Rename a Worksheet
To rename your worksheet with a customized and appropriate name following the
below steps.
1. Right-click on the sheet tab for which you wish to change the name.
2. The toolbar window will appear. Choose the Rename option.
3. Type your preferred name. For instance, in the below screenshot, we have
renamed 'Sheet1' to Sales 2021.
Move a Worksheet
Excel allows the user to move and locate their worksheet in any order. Click on your
worksheet sheet tab and drag it to your preferred location.
For instance, in the below example, we have dragged Sales 2021 before the 'Sheet 2'
sheet tab.
Output
Delete a Worksheet
Copy a Worksheet
While working many times, the Excel users require copying and pasting the data of
one worksheet to another and making some changes. Excel provides easy steps to
copy the data of one worksheet to another.
3. The 'Move or Copy' dialog box will be displayed. In the Before Sheet section,
select the 'move to end' option and make sure to check in the 'create a copy'.
ROWS
Rows run horizontally across the worksheet ranging from 1 to 1048576. A row
is identified by the number on the left side of the row, from where the row
originates.
Many Excel users often need to insert a row in the worksheet to organize or
manipulate their data.
1. Select and right-click on the cell within the row where you want to insert a
new row.
While working with Excel users need to delete a row in the worksheet to organize
or manipulate their data. It's a lot easier to delete a row in excel.
1. Select any cell within the row that you need to delete. Right-click on the cell.
2. The dialog box will be displayed. Choose Delete.
3. The Delete dialog box will appear. Choose the 'entire row' option.
COLUMNS
Columns run vertically downward across the worksheet ranging from A to XFD (in
total 16384 columns). A column is identified by a column header on the top of the
column, from where the column originates.
Many Excel users often need to insert a column in the worksheet to organize or
manipulate their data.
1. Select and right-click on the cell within the column where you want to insert a
new column.
CELLS
Cells are small rectangular boxes in the worksheet where we enter data. A cell
is the intersection of a row and column. It is identified by row number and column
header. In Excel, each cell is identified using a set of coordinates or positions, such
as A1 (where A represents a column and 1 represents the row), B2, or M16.
You can perform several operations with cells in Excel, unlike changing the font
style, font size, background color, text alignment, format painter, wrap text, and
conditional formatting.
Excel provides the feature to select multiple cells at one time. A group of selected
cells is collectively known as cell range. With cell range instead of a single cell
address, the user refers to a cell range utilizing the cell addresses of the
selected first and last cells, separated by a colon. For instance, a cell range covering
B2, B3, B4, B5, B6, B7, B8, B9, and B10 would be addressed as B1:B10.
To perform any operation, i.e., to write, edit, delete, format, the user must first select
a cell. Below given are the steps to select a cell in Excel:
3. The cell will remain selectedunless and until the user points the cursor to
another cell.
3. The cell will remain selectedunless and until the user points the cursor to
another cell.
Cell content
Any data you enter in your Excel worksheet is stored in a cell. Each cell can hold
various types of information, including string, numbers, formatting, formulas, and
functions.
1. String (Text)
Cells can hold string values, unlike alphabets, numbers, and dates.
2. Formatting properties
Cells also include formatting properties that improve the appearance of your cell
content. For instance, percentages can be displayed as 0.55 or 55%. You can make
the cell content in Bold, Italics, change its font color, font size, or change its
background color.
Cells can include predefined or customized formulas and functions that are helpful
in calculations. For example, SUM(A2:A5) will add the number stored in each cell
and give you the output.
2. Type in the desired data into the selected cell, then click the enter button or
move your cursor to another cell. The content will be shown in the cell and
the formula bar.
3. If you want to delete multiple cells, select the cell range and press the Delete
key.
Note: Delete Key can delete the content of multiple cells at once, whereas the
Backspace key only deletes the data of a single cell at a time.
Delete cell(s)
People often get confused between deleting the cell content and deleting the cell
itself, but there is a significant difference. If you delete the content, the cell will
remain, and only the content gets omitted, whereas if you delete the cell, the cells
below shift up or are shifted left and replace the deleted cell.
1. Click and select the cell(s).
2. Right-click on the cell. The dialog box will be displayed. Choose Delete.
3. The given below Delete dialog box will occur. Choose the 'entire row' option.
4. The cell will be immediately deleted and the cells lying below will shift up.
Instead of copying and pasting the data, you can use the drag and drop option to
move cell content from one cell to another.
4. Release the cursor, and the content will be cut from the original cell
and pasted in the selected location.
Excel 2016 has a variety of displaying options that change how our workbook is
showed. We can choose to view any workbook in the Normal view, Page Layout
view, or Page Break view. These views can be useful for several tasks, especially
if we're planning to print the spreadsheet.
To change the worksheet views, locate and choose the desired worksheet view
command in the bottom-right corner of the Excel window.
Zoom Control
To use a Zoom control, click and drag the slider. The number to the right of the
slider reverse the zoom percentage. It presents at the bottom right corner of the
Excel worksheet.
Horizontal Alignment
The horizontal alignment tools allow users to adjust the text alignments in a
horizontal axis, such as left, right, center, etc.
o Left: Clicking the left alignment button aligns the given or typed contents in
the left position within the selected cell (s).
o Center: Clicking the center alignment button aligns the given contents to the
center position.
o Right: Clicking the right alignment button aligns the given contents in the
right position within the selected cell (s).
o Fill: Clicking the fill option repeats the cell's contents until the cell's width is
filled.
o Justify: Clicking the justify button justifies the cell contents to the left and
right sides equally in the horizontal axis. This alignment option is useful only
when the corresponding cell (s) is formatted using the wrapped text option,
and the cell's contents are separated into multiple rows.
Vertical Alignment
The vertical alignment tools allow users to adjust the text alignments vertically, such
as the top, middle, bottom, etc.
o Top: Clicking the top alignment button aligns the recorded contents to the top
position within the selected cell (s).
o Center: Clicking the center alignment button aligns the given contents to the
center position, vertically, within the selected cell.
o Bottom: Clicking the bottom alignment button aligns the given contents to
the bottom position within the selected cell.
o Justify: Clicking the justify button justifies the cell contents vertically within
the cell. This alignment option is useful only when the corresponding cell (s)
is formatted using the wrapped text option, and the cell's contents are
separated into multiple rows.
Aligning Text in Excel
The easiest and straightforward way to access text alignment options in Excel is to
use ribbon tools. Both horizontal and vertical alignment options can be accessed by
going to the Home tab and using the alignments from the Alignment group.
By default, Excel automatically aligns entered text contents to the left position of the
cell and numbers to the right position. We can use alignment options from the
Alignment group and change them accordingly.
o We can click the tools from the vertical alignment options and pick Top Align,
Middle Align, or Bottom Align, respectively.
o We can click the tools from the horizontal alignment options and pick Left
Align, Center Align, or Right Align, respectively.
o We can click the 'More Options' button to access the Format Cells dialogue
box with the Alignment and other formatting options.
Change Text Alignments from Format Cells
The Format Cells dialogue box is another efficient way to change text alignments in
Excel cells. According to this method, we need to perform the following steps:
o Lastly, we must check the preview box and click the OK button to apply the
selected alignment style.
Excel allows users to use keyboard shortcuts for most of the Excel features or
operations. Likewise, we can also align text using the keyboard buttons without
lifting our fingers off the keyboard. The following table consists of handy keyboard
shortcuts for text alignment in Excel:
Since Excel has many keyboard shortcuts, it is not easy to remember alignment
shortcut keys. However, there is a simple way to memorize all the shortcuts
displayed in the above table. The first key, 'Alt', activates quick shortcuts in Excel.
Once we activate the quick shortcuts by pressing the Alt key, Excel displays specific
keys to use the displayed options within the Excel window.
The first key combination, 'Alt + H', allows us to access the Home tab, while the
second part of keys (the remaining keys) activates the desired alignment option. For
instance, after pressing the 'Alt + H', 'Alt + T' denotes 'align top', 'Alt + B' denotes
'align bottom', 'Alt + L' denotes 'align left' and so on.
We can select the cells to align and use the above methods to align text within the
cells.
The example of the horizontal alignments can be seen in the following sheet:
The recorded text is shifted to left, center, and right positions in the above image.
The example of the vertical alignments can be seen in the following sheet:
The recorded text is shifted to the top, middle, and bottom positions in the above
image.
There are two ways that we can use to undo the alignments changes within the sheet,
such as:
o We can use the Undo feature in Excel to remove alignment changes just after
applying them. The shortcut to use Undo in Excel is Ctrl + Z.
o To remove the alignment changes later, we need to select the specific cell or
cell range and navigate to Home > Clear > ClearFormats from the Editing
group.
The following image displays how the text looks like before (1) and after (2)
wrapping
The above four methods usually wrap text automatically, while the fifth method
wraps text automatically and manually. Furthermore, the last method helps users
wrap text in desired cells manually. In the last method, we usually add line breaks at
fixed positions, which serve as an alternative to the wrap text feature.
Excel ribbon provides shortcuts for built-in commands and tools using which we can
perform almost all the tasks. Also, we can add/ remove additional tools accordingly.
The Ribbon also contains necessary options to wrap text within the desired Excel
cells in the worksheet.
Suppose we have the following example sheet where cell B2 has a lengthy sentence,
and we need to wrap the contents of this cell.
Since the text string (sentence) is going to multiple columns, it will not be entirely
displayed if other consecutive cells also have contents. The following are the steps
to wrap text in cell B2 by using the Excel ribbon:
o First, we need to select the cell that we want to wrap. In our case, we select
cell B2.
o Next, we need to navigate the Home tab and click the 'Wrap Text' button
under the 'Alignment' section. This Wrap Text button acts as a toggle button
and can be turned on/off to wrap and unwrap the text accordingly.
o As soon as we click the Wrap Text button, the text in the selected cell is
displayed or divided across multiple lines without going to other cells.
In the above image, we can see that the column width is still the same while
the row's height is adjusted to fit the contents in the cell.
Similarly, if we have multiple cells where we need to wrap text, we must select all
those cells and click the 'Wrap Text' button once. We can select all the desired
contiguous and non-contiguous Excel cells as required.
The traditional method of wrapping text in an Excel cell involves using the Format
Cells dialogue box. The Format Cells dialogue box provides a variety of multiple
number formats using which we can set preferences for cell formatting, including
wrapping text where desired.
Let us again consider the previous example with a long text in cell B2 where the text
string gets rolled on other cells like C2, D2, E3, etc. To warp text in the cell B2 using
the Format Cells, we must perform the following steps:
o First, we need to select one or more cells where we wish to wrap text. Like
the previous method, we select cell B2.
o After selecting the effective cell (or cells), we need to launch the Format Cells
dialogue box. We must press the right-click button via the mouse and click
the 'Format Cells' option.
This will open the Format Cells dialogue box, as shown below:
We can also open the Format Cells dialogue box instantly by using the
keyboard shortcut 'Ctrl + 1', where the key '1' needs to be pressed from the
keyboard area. If we press the key '1' from the numeric pad of the keyboard,
the shortcut does not work as expected.
o We need to go to the Alignment tab in the dialogue box and select the check
box associated with the Wrap Text option under the category Text Control.
After selecting the checkbox, we must click the OK button to apply the
changes.
In the below image, we can see that the text in cell B2 is wrapped accordingly.
The above steps also work for wrapping text in multiple cells within the sheet. We
only need to select the corresponding cells before using the Format Cells dialogue
box.
Method 3: Text wrapping using the Keyboard Shortcut
Excel provides a wide range of built-in keyboard shortcuts that help perform specific
operations with ease. It has a unique shortcut key combination for almost all
common functions. If no keyboard shortcut is available for a specific task, Excel
allows users to create their own customized keyboard shortcuts. Also, if the
associated command or tool is present on the Excel ribbon, the Alt key shortcut
method works perfectly.
Like keyboard shortcuts, another quick way is to use the Quick Access Toolbar to
access any tool or command in Excel. But, before we can start using any specific
tool, we need to add it to the Quick Access Toolbar. Once added, we can use the
respective feature as many times as required in all excel files/ windows.
The following are the steps to add or insert the Wrap Text Tool on Excel's Quick
Access Toolbar and use it accordingly to apply text wrapping to the desired cell (s):
o First, we need to navigate the Home tab and locate the 'Wrap Text' button
under the category Alignment. We need to press the right-click mouse button
on the Wrap Text button.
o After pressing the right-click button, we will see a list of a few options. We
must click the option 'Add to Quick Access Toolbar' from the list.
This will instantly add a shortcut for the Wrap Text command on the quick
access toolbar. The shortcut will look like this:
After the 'Wrap Text' shortcut has been added, we only need to click it once
to apply text wrapping. However, we must select all the cells before clicking
on the shortcut.
Method 5: Text wrapping using the Adjustment of Row Height and Column
Width
As seen in the above methods, long text strings are wrapped in the cell by adjusting
the cell's height. Therefore, we can directly adjust the height of the specific cell
accordingly to make the cell content fit within the width. The desired cells height
can be adjusted manually as well as automatically.
To manually adjust the height of a specific cell or row, we need to click and drag the
border from the respective row header. If we manually adjust the height, it will
become difficult when we need to do this for multiple cells.
Using automatic row height adjustment will reduce our workload, and we can easily
adjust the height of multiple cells or rows at once. To auto-adjust the height, we can
perform the following steps:
o After that, we have to select AutoFit Row Height option from the list. If we
don't have very long text strings, we can also try adjusting the cell's width by
clicking the Autofit Column Width option.
It will automatically wrap the text in all the selected cells by adjusting the
height and width we selected.
We can break any long text string into multiple parts to fit in a specific cell width
using line breaks. We can manually choose the point where we want the text to start
in a new line within the cell. To put a breakpoint in text strings in the desired cell,
we should follow below steps:
o First, we must double-click on the cell where we need to insert a line break.
This will open Cell Edit mode. Alternately, we can also select the cell and
press the F2 function key on the keyboard.
o Once the cursor starts blinking within the selected cell, we must move and
place the cursor to the specific point of the text string where we wish to break
a line. It is better to click at the desired point using the mouse while in the cell
edit mode. The formula bar also allows editing the cell contents.
o After placing the cursor at the desired point within the text string, we must
click the Alt key and the Enter key simultaneously, i.e., 'Alt + Enter'.
When we need to remove text wrap from a cell, we must follow the same steps we
used while inserting text wrap. This means we can click on the Wrap Text button
from Ribbon to insert text wrapping and remove inserted text wrapping. Similarly,
we can also use the keyboard shortcut 'Alt + H + W' to insert/undo text wrapping.
We must ensure that the desired Excel cell (s) is selected before undoing the text
wrapping.
If you want to sort data based on a selected column, Choose Continue with
the selection or if you want sorting based on other columns, choose Expand
Selection.
You can Sort based on the below Conditions.
o Values – Alphabetically or numerically.
o Cell Color − Based on Color of Cell.
o Font Color − Based on Font color.
o Cell Icon − Based on Cell Icon.
Clicking Ok will sort the data.
Sorting option is also available from the Home Tab. Choose Home Tab » Sort &
Filter. You can see the same dialog to sort records.
AUTO SUM
If you need to sum a column or row of numbers, let Excel do the math for you.
Select a cell next to the numbers you want to sum, click AutoSum on
the Home tab, press Enter, and you’re done.
When you click AutoSum, Excel automatically enters a formula (that uses
the SUM function) to sum the numbers.
To sum a column of numbers, select the cell immediately below the last
number in the column. To sum a row of numbers, select the cell immediately
to the right.
AutoSum is in two locations: Home > AutoSum, and Formulas > AutoSum.
Once you create a formula, you can copy it to other cells instead of typing it
over and over. For example, if you copy the formula in cell B7 to cell C7, the
formula in C7 automatically adjusts to the new location, and calculates the
numbers in C3:C6.
You can also use AutoSum on more than one cell at a time. For example, you
could highlight both cell B7 and C7, click AutoSum, and total both columns at
the same time.
You can also sum numbers by creating a simple formula.
Using functions
The following example of the ROUND function rounding off a number in cell
A10 illustrates a function's syntax.
1. Structure. The structure of a function begins with an equal sign (=),
followed by the function name, an opening parenthesis, the arguments for the
function separated by commas, and a closing parenthesis.
Note: You don't need to type functions in all caps, like =ROUND, as Excel
will automatically capitalize the function name for you once you press enter. If
you misspell a function name, like =SUME(A1:A10) instead of
=SUM(A1:A10), then Excel will return a #NAME? error.
When you create a formula that contains a function, you can use the Insert
Function dialog box to help you enter worksheet functions. Once you select a
function from the Insert Function dialog Excel will launch a function wizard,
which displays the name of the function, each of its arguments, a description of
the function and each argument, the current result of the function, and the
current result of the entire formula.
To make it easier to create and edit formulas and minimize typing and syntax
errors, use Formula AutoComplete. After you type an = (equal sign) and
beginning letters of a function, Excel displays a dynamic drop-down list of
valid functions, arguments, and names that match those letters. You can then
select one from the drop-down list and Excel will enter it for you.
Use cell references in a formula
When you create a simple formula or a formula by that uses a function, you can
refer to data in worksheet cells by including cell references in the formula
arguments. For example, when you enter or select the cell reference A2, the
formula uses the value of that cell to calculate the result. You can also reference a
range of cells.
For more information about cell references, see Create or change a cell reference.
For more information about formulas in general, see Overview of formulas.
You can refer to a single cell, a range of cells, a location in another worksheet,
or a location in another workbook.
When selecting a range of cells, you can drag the border of the cell selection to
move the selection, or drag the corner of the border to expand the selection.
1. The first cell reference is B3, the color is blue, and the cell range has a blue
border with square corners.
2. The second cell reference is C3, the color is green, and the cell range has a
green border with square corners.
4. Press Enter.
GENERATING GRAPHS
Steps
1
Open Microsoft Excel. Its app icon resembles a green box with a white "X" on it.
2
Click Blank workbook. It's a white box in the upper-left side of the window.
3
Consider the type of graph you want to make. There are three basic types of
graph that you can create in Excel, each of which works best for certain types of
data:[1]
Bar - Displays one or more sets of data using vertical bars. Best for listing
differences in data over time or comparing two similar sets of data.
Line - Displays one or more sets of data using horizontal lines. Best for
showing growth or decline in data over time.
Pie - Displays one set of data as fractions of a whole. Best for showing a
visual distribution of data.
4
Add your graph's headers. The headers, which determine the labels for
individual sections of data, should go in the top row of the spreadsheet, starting
with cell B1 and moving right from there.
For example, to create a set of data called "Number of Lights" and another
set called "Power Bill", you would type N umbe r o f Lights into
cell B1 and Power Bill into C1
Always leave cell A1 blank.
5
Add your graph's labels. The labels that separate rows of data go in the A column
(starting in cell A2). Things like time (e.g., "Day 1", "Day 2", etc.) are usually used
as labels.
For example, if you're comparing your budget with your friend's budget in
a bar graph, you might label each column by week or month.
You should add a label for each row of data.
6
Enter your graph's data. Starting in the cell immediately below your first header
and immediately to the right of your first label (most likely B2), enter the numbers
that you want to use for your graph.
You can press the Tab ↹ key once you're done typing in one cell to enter
the data and jump one cell to the right if you're filling in multiple cells in a
row.
7
Select your data. Click and drag your mouse from the top-left corner of the data
group (e.g., cell A1) to the bottom-right corner, making sure to select the headers
and labels as well.
8
Click the Insert tab. It's near the top of the Excel window. Doing so will open a
toolbar below the Insert tab.
9
Select a graph type. In the "Charts" section of the Insert toolbar, click the visual
representation of the type of graph that you want to use. A drop-down menu with
different options will appear.
A bar graph resembles a series of vertical bars.
A line graph resembles two or more squiggly lines.
A pie graph resembles a sectioned-off circle.
10
Select a graph format. In your selected graph's drop-down menu, click a version
of the graph (e.g., 3D) that you want to use in your Excel document. The graph
will be created in your document.
You can also hover over a format to see a preview of what it will look like
when using your data.
11
Add a title to the graph. Double-click the "Chart Title" text at the top of the chart,
then delete the "Chart Title" text, replace it with your own, and click a blank space
on the graph.
On a Mac, you'll instead click the Design tab, click Add Chart Element,
select Chart Title, click a location, and type in the graph's title.[2]
12
Save your document. To do so:
Windows - Click File, click Save As, double-click This PC, click a save
location on the left side of the window, type the document's name into the
"File name" text box, and click Save.
Mac - Click File, click Save As..., enter the document's name in the "Save
As" field, select a save location by clicking the "Where" box and clicking
a folder, and click Save.
Use Word to create a chart from existing Excel data
You don't need Microsoft Excel to chart data in an existing Excel file; you can
simply import that data and chart it entirely in Microsoft Word. Follow these steps:
1. Put your cursor where you want your chart to appear in your Word
document.
2. Go to Insert | Picture | Chart.
3. In the Graph's Standard Toolbar, click the Import File button.
4. Navigate to the folder that contains the Excel file you want to import, and
double-click the file's icon.
5. Click the worksheet you want to import in the Select Sheet From Workbook
list box.
6. Click the range option and enter the cell range of the data you want to
chart.(For example, if the data you want to chart is located in cells A3
through D7 of the Excel worksheet, enter A3:D7.)
7. Click OK.
The specified data will be plotted in the chart. You can now make any format
changes to the chart using Word's Graph Standard toolbar.
Hyperlink
A hyperlink is a word, phrase, or image that you can click on to jump to a new
document, or a new section within the document, or to a webpage, etc.
Hyperlinks are found in nearly all Web pages, and these links allow the users to
click their way from the current page to a new page. Most of the time text
hyperlinks are often blue and underlined, but it is not all the time or a necessary
condition. When you move the cursor over a hyperlink(text or image), the arrow
should change to a small hand pointing at the link and when you click it, a new
page is opened or a new place in the current page will open.
MS-Word also provides this feature to add a hyperlink to the document. With the
help of this, you can connect your document to another document or also can add
webpages link as per your choice. This tool is very useful, and it is easy to use.
Creating a Hyperlink with the help of text
As mentioned before hyperlinks can be created with MS Word, and we will learn
this through a step-by-step process with help of images and instructions.
Steps to follow:
Step 1: First open MS-Word on your PC.
Step 2: Now, Open the document or create a new one in which you want to
perform this operation.
Step 3: Select a text(a text or phrase) for creating a hyperlink. (Here
“Geeksforgeeks” is Selected)
Step 4: Now, go to the Insert tab.
Step 5: Now, In the insert tab go to the “Links” Section and in Link Section,
click on the “Hyperlink” option.
Step 6: As you click on the Hyperlink option a new tab will open named “Insert
hyperlink“. (as shown in the below image.)
Step 7: Now, In this tab, there is an address bar. In this address bar, you have to
add the link of webpage or address to new file anything you want. (Here we will
add the address of the webpage of geeksforgeeks site link which is
“https://www.geeksforgeeks.org/”)
Step 8: After entering the address click ok.
Step 9: Hyperlink is added to the selected text successfully.
Normal: The normal margin setup is the default margin that Excel follows for each
Excel sheet and its pages. It uses the standard top, bottom, left, and right margins of
3/4 inch, where 1/4 inch separates the header and footer from the top and bottom
margins, respectively. Despite the default margin, Excel allows us to choose from
two other margin settings, namely Wide and Narrow.
Wide: The Wide margin settings that Excel applies to selected sheet uses the
standard top, bottom, left, and right margins of 1- inch, where 1/2 inch separates the
header and footer from the top and bottom margins, respectively.
Narrow: The Narrow margin settings that Excel applies to the selected sheet uses
the standard top and bottom margins of 3/4 inch, left and right margins of 1/4 inch,
where 0.3 inch separates the header and footer from the top and bottom margins,
respectively.
Custom: We can use our custom margins if we don't like the default margins and
other built-in sets of margins. Using Custom Margins in Excel, we can specify
desired margins for headers and footers and center the content of our sheets vertically
and horizontally. Custom margin adjustments help us to improve the appearance of
the worksheet to our liking.
Tip: When we want to print the contents of an Excel document on a full page,
covering the maximum space on the page, we should use Narrow margins.
Alternatively, we can use custom margins and reduce the margins to our liking and
achieve the maximum possible number of rows and columns on a printed page.
Excel has many built-in features, and we can access most of the features using
different methods. Similarly, we can adjust margins in Excel by using the following
two methods:
The simple method to adjust margins in an Excel document is to use File Menu
commands. Specifically, we need to follow the steps given below:
o Excel displays various printing options in the next window, such as choosing
the number of copies to the print, default printer, page orientation, scaling,
margins, etc. We have to click on the Margins option to access available
margins in Excel.
In the above image, we can see three predefined margins as discussed above,
i.e., Normal, Wide, and Narrow. We can click on the desired margin, which will be
instantly applied to the current sheet or printing area.
In addition to this, we can also choose 'Custom Margins' from the list to launch a
custom margin dialogue box and adjust margins accordingly.
Method 2: Using the Page Layout tab
Another common method to access features to adjust Excel margins is to use the
Page Layout tab on the ribbon. We can perform the following steps to set margins
using the Page Layout tab:
o First, we need to select the specific sheet to which we wish to adjust margins.
We can select a single sheet or multiple sheets simultaneously as per our
needs. Likewise, we can select multiple adjacent or non-adjacent sheets
holding down the Ctrl
o Once all the desired sheets are selected to apply specific margins, we need to
go to the Page Layout tab and click the Margins tool under the Page Setup
o In the next window, Excel displays all the existing margin options. We can
click on any predefined margins, such as Normal, Wide, or Narrow. The
selected margin will be immediately applied for all the selected sheets within
the active workbook.
o
In the above image, we can select the 'Custom Margins' to set margin size as per our
liking.
As discussed above, Custom Margins enables users to adjust margins as per their
preference. This option potentially expands the customization options for margin.
We can enter the desired margin in the box provided for each side and a separate
area for the header and footer using a custom margin. Additionally, we can center
the pages vertically and horizontally as we wish.
We can use any of the following methods to adjust custom margins in Excel:
We need to perform the following steps to adjust margins using the Page Setup
dialogue box:
Using the margin tool from the Print Preview screen enables us to adjust margins of
the active Excel document in a freestyle. This means that we can drag the margins
using the mouse and drop them anywhere to apply the margin settings. In this way,
we can quickly and effectively adjust margins in Excel.
We need to perform the following steps to adjust margins using the Print Preview
Tool:
o First, we need to select the specific sheet to which we will apply desired
custom margins.
o Next, we need to go to File > Print.
o In the next window, Excel displays a Print Preview of the active document.
We must click the 'Show Margins' icon or tool from the bottom right corner
of the Print Preview, as shown below:
o After clicking the 'Show Margins' button, Excel displays margin markers. We
can click, hold and drag the margin marker of any side using the mouse
button and release the mouse button to redraw new margin settings.
Additionally, we can also adjust the column width using the same method.
After adjusting the margins in the Print Preview panel, we can click
the Print button to get the document printed on paper with the applied
margins.
o It is important to note that Excel for the web does not offer the feature to adjust
page margins. However, it has some Page Setup options under the Page
Layout tab. We can download the specific Excel file from Excel for the web,
open it in Excel for Desktop and adjust margins as per our choice.
o Excel enables us to adjust margins for multiple worksheets simultaneously.
o If we have previously used custom margins in Excel, the same settings will be
displayed under Margins drop-down list as the Last Custom Setting
o It is recommended to keep the header and footer settings smaller than the top
and bottom margin settings and greater than or equal to the used minimum
printer margin.
When we adjust margins in Excel for any specific worksheet, the margins settings
are stored in that sheet only, and it does not change the default margins in other
sheets or for new workbooks.
Creating a Hyperlink with the help of an Image
As mentioned before, hyperlinks can be created with an image along with text,
and we will learn this through a step-by-step process with help of images and
instructions.
Steps to follow:
Step 1: First open MS-Word on your PC.
Step 2: Now, Open the document or create new one in which you want to
perform this operation.
Step 3: Select an image for creating hyperlink. (Here Geeksforgeeks icon image
is Selected)
Step 4: Now, go to the “Insert tab”.
Step 5: Now, In the insert tab go to the “Links” Section and in Link Section,
click on the “Hyperlink” option.
Step 6: As you click on the Hyperlink option a new tab will open named “Insert
hyperlink“.(as shown in the below image.)
Step 7: Now, In this tab there is an address bar. In this address bar you have to
add the link of webpage or address to new file or anything you want. (Here we
will add the address of the webpage of geeksforgeeks site link which is
“https://www.geeksforgeeks.org/”)
Step 8: After entering the address click ok.
Step 9: Hyperlink is added to the selected text successfully.
So, In these ways we can add links to the text and images and create hyperlinks.
To set up the page, follow the below steps in Excel.
1. First, go to the “Page Layout” tab and click on the small arrow mark under
the “Page Setup” group.
2. Once you click on a small arrow mark, it will open up the below dialog box.
3. In the below window, in”Fit to:” write 1 page.
4. Click on “Print Preview” in the same window to see the same preview.
5. Now, we can see the print preview.
It looks on one page but is not able to read properly. Change the orientation from
“Portrait” to “Landscape” in the same print preview window.
Now, our print preview looks like this.
How to Change the Default Page Setup in Excel?
Below are the steps to change the default page setup in Excel.
The first thing we need to do while printing is to set the print area. For example,
look at the below data in a worksheet.
First, select the print area; data range from A1:N32. After selecting the data
range, go to PAGE LAYOUT >>> Print Area >>> Set Print Area.
It will set up the print area.
Once the print area is set up, we cannot simply print the data because the data is
not in order. For example, we must press Ctrl + P to see the Print preview.
As we can see in the above image, data is not coming in order from column A to
column L. Instead, it is coming on one page, and the remaining portion is coming
on other pages.
To check which data is coming in the first sheet and which is coming in the second
sheet, go to the VIEW tab and click on “Page Break Preview.”
In the above image, we can see the “Page Break Preview.” The blue line (next to
column L) is the indication that column A to column L belongs to Page 1.
Not only can we print the data, but we can also print excel rows and
columns headings. Numbers represent row headings, and alphabets represent
column headings.
We need to make some settings for printing these rows and column headers
along with the data.
Go to the “PAGE LAYOUT” tab and click on the small arrow mark under the
“Page Setup” group in Excel.
Once you click on the small arrow mark, it will open up the below dialog box.
In the above window, click on the “Sheet” tab. Under this tab, we have several
options. First, check the “Row and column headings” box, then click on “Print
Preview” to see the view.
As shown in the below image, we can see row and column headings.
Print Data Headers in all the Pages
Once the data is extended to multiple sheets, we do not get data headers on all the
pages. It makes the report reading very difficult. So, in these numerous printing
sheets, we need to change the settings to “Repeat the rows.”
In the “Page Setup” Excel window, go to the “Sheet” tab. This tab has an option
called “Rows to repeat at top.”
In this option, a cursor inside the box chooses the data header row to repeat the
headers in all the print pages. Click on “OK.” It will repeat the row at the top in all
the sheets.
1. Click the worksheet or select the worksheets that you want to preview.
2. Click File > Print > Print Preview.
1. Click the worksheet or select the worksheets that you want to preview.
2. Click File > Print.
3. To change the printer, click the drop-down box under Printer, and select the
printer that you want.
4. To make page setup changes, including changing page orientation, paper size,
and page margins, click Properties.
1. To print the active sheet or sheets, or the whole workbook, in the Print dialog
box, select from Selection, Active Sheet(s), Entire workbook, or Table.
2. Click Print.
Play Videox
o First, we need to open a specific Excel file and select the worksheet from the
Sheet tab.
o Next, we need to go to the File tab and click the Print option from the list.
o After clicking the Print option, we can choose desired printing preferences
(such as the number of copies, printer, orientation, etc.) and finalize the
printing process by clicking the Print It looks like this:
Quick Print: Adding a Print button on Quick Access Toolbar
We can use the Quick Print option if we don't want to change default printer settings
but print a copy instantly. There are two following ways to use this option:
o We can use the keyboard shortcut Ctrl + P and press the Enter key. We don't
need to use a mouse this way.
o We can use the Print shortcut or button from the Quick Access Toolbar
(QAT). However, the shortcut must be added to QAT before using it.
We can perform the following steps to add a quick print shortcut button on the quick
access toolbar:
o After adding the shortcut, we can click on the shortcut to quickly print the
worksheet in Excel.
The Print button on the quick access toolbar is useful to print in Excel frequently.
We only need to add the Print Tool shortcut on the Quick Access Toolbar once, and
it will be available for all Excel workbooks, whether existing or new.
Unfortunately, the Excel Print Preview pane does not provide a zoom-in and zoom-
out button. However, we can use the common shortcut Ctrl + mouse scroll wheel to
adjust the zoomings to some extent. To remove the zooming and go back to the
normal view, we can click on the 'Zoom to Page' button from the bottom right
corner of the print preview pane. In addition, we can use the previous and next
buttons to check the print preview in multiple print pages.
When we need to adjust settings to choose which data and objects need to be printed
from the worksheet, we must click the drop-down arrow next to 'Print Active Sheets'
text under the Settings option:
Let us understand each option present in the above image:
When we want to print the entire worksheet in the view area (active sheet from the
Sheet tab), we must click the 'Print Active Sheets' option.
When we want to print the specific area (a cell or range of cells) of the worksheet,
we need to select/ highlight the particular area and click the 'Print Selection' option.
We can also select the no-adjacent cells to print. To select non-adjacent cells or
ranges, we can press and hold the Ctrl key while selecting the desired cells.
When we need to print all the worksheets present in a workbook, we must click the
'Print Entire Workbook' option.
When we want to print an Excel table from the worksheet, we need to click or
highlight any cell of the table and click the 'Print Selected Table' option. The option
'Print Selected Table' will only appear after selecting the table or part of the table on
the worksheet.
o First, we have to select the first sheet and select or highlight the specific range
of cells required to print.
o After selecting the desired range in the first sheet, we need to hold down
the Ctrl key and select other non-adjacent sheets from the Sheets If we want
to print the same range from all adjacent sheets, we can select the first and last
sheet while holding the Shift key.
o After selecting the sheets, we must use the quick print shortcut Ctrl + P and
click on the 'Print Selection' option. Lastly, we must click on the Print tile (or
press the Enter key).
When we give print command to excel worksheet, Excel displays various settings
which we can adjust to make excel worksheet look good on paper. The following
are some essential settings or properties to ensure that our worksheets look the way
we want them on paper:
Multiple Copies
When we need to print multiple copies of a worksheet, we can use the up-and-down
arrows to increase or decrease the number of copies to be printed. If there are
multiple pages in a single copy, we can keep them collated or uncollated.
For instance, if we print 5 copies, the Collated option helps us print the entire first
copy, the entire second copy, etc. Besides, the Uncollated option will print 5 copies
of page 1, 5 copies of page 2, and so on.
Orientation
Excel allows us to choose the orientation of the printout between portrait and
landscape. Portrait orientation displays more rows but fewer columns on paper,
while landscape orientation does the opposite. Landscape orientation displays more
columns but fewer rows on paper.
We can choose the desired orientation of the printout under the Settings option, as
shown below:
Page Margins
Excel enables us to adjust the page margins in various ways. We can either select
any default margins, such as normal, wide, and narrow, or adjust them as desired
using the drag-drop method via the mouse.
To choose a predefined margin style, we need to click on the drop-down arrow icon
next to Margins and choose the desired margin setup.
To manually adjust the margins, we need to click on the 'Show Margins' icon from
the bottom right corner of the print preview window. This will enable lines to margin
with markers. We can then drag-drop the lines accordingly using the mouse to adjust
the page margins manually.
Pages
If we have multiple pages in our worksheet and we need to print a specific range in
a sequence, we can specify the pages to print. We have to enter the range of pages
from the starting page to the last page, and all the pages of the given range will be
printed. Moreover, when we need to print a specific worksheet page, we can enter
the page number in the first box and give the print command.
Scaling
Excel usually prints worksheets as per their actual sizes. This means that the more
data we have in the worksheet, the more pages it will take for printouts. However,
we can print an Excel worksheet on a single page by adjusting the Scaling settings.
The scaling options can be accessed from the bottom of the print preferences/
settings from the Print Preview Pane.
Printer
Before finalizing the printout, we must ensure that the correct printer is selected as
the default. To choose a printer, we need to click the drop-down arrow icon under
Printer, as shown below:
Printing to file is one of the essential features of Excel. It helps us create a PDF copy
of the Worksheet, Selected Range, or entire Workbook. However, it is rarely used
or underestimated by many. But, it can be very helpful sometimes. We can save the
output to a PDF file instead of sending it to be printed by the printer. That way, we
don't have to modify the settings whenever we want to print it on paper. We need to
open the PDF version and give the print command to the printer. In addition, it allows
us to easily share the non-editable copy of the worksheet with others as it is not easy
to edit the PDF version of the worksheet.
We can perform the following steps to print a worksheet to a file (PDF):
o Next, we should use the quick print shortcut Ctrl + P. In the next window, we
need to click on the drop-down list under Printer, as shown below:
o We have to select the 'Print to File' option from the list and hit the Print This
will launch Save As dialogue box in File Explorer.
o We can enter the desired name using File Explorer to save the file. Also, we
can choose the location to save the file containing the worksheet contents.
o First, we must select the specific row or column to move to a new printed
page.
o Next, we need to go to the Page Layout tab, click the drop-down icon
under Breaks, and choose the 'Insert Page Break' option from the Page Setup
group.
o As soon as we click the 'Insert Page Break' option, the same is instantly
inserted into a selected area. To check page breaks on the spreadsheet, we
need to go to the View tab and choose 'Page Break Preview'.
The image above displays page breaks in blue lines, including page numbers
that separate the sheet's contents. We can also change the position of a specific
page break by dragging the blue lines using the mouse.
To remove page breaks, we can go to Page Layout > Breaks > Remove Page
Breaks after selecting the same cell that we selected while applying page breaks.
Printing Formulae
If we have multiple formulas within the worksheet that we want to print instead of
their calculated values, we need to enable the 'Show Formula' option in an Excel
worksheet. To enable the formula, we must go to the Formulas tab and click the
'Show Formulas' tool from the Formula Auditing group.
After that, we can print the worksheet as usual.
When we only need to print a specific chart from the Excel worksheet, we need to
select the particular chart and press the quick print shortcut key Ctrl + P. After that,
we need to choose the 'Print Selected Chart' option under Settings from the Print
Preview window. If the preview looks good in the Print Preview pane, we can
finalize the printout by clicking the Print button. We can change other print settings
as usual.
It is not allowed to change the scaling of the chart from the Print Preview pane. So,
we need to resize the chart from the sheet window and make it bigger to fit the whole
page.
By default, the gridlines are not printed when we print anything in Excel. However,
we can choose whether to include gridlines and heading to print. We need to go to
the Page Layout tab and select/deselect the checkboxes before the Print option
under Gridlines from the Sheet Options group.
After selecting the checkbox for the Gridlines Print option, the gridlines will be
printed along with the worksheet contents.
Likewise, we can tick/ untick the checkbox for Headings to include or remove them
to a printed copy of the worksheet.