0% found this document useful (0 votes)
191 views11 pages

Week 2 1 Entering and Editing Worksheet Data Reading

This document discusses data types in Excel worksheets and basic data entry and formatting. The four basic data types are numeric values, text, formulas, and errors. Worksheets can also contain charts, diagrams, and other objects. Text, numbers, and formulas can be entered into cells. Formatting options include fonts, alignment, merging cells, and more. Formulas allow calculations using values and functions. Errors result from formulas containing errors.

Uploaded by

Nihad Əhmədov
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
191 views11 pages

Week 2 1 Entering and Editing Worksheet Data Reading

This document discusses data types in Excel worksheets and basic data entry and formatting. The four basic data types are numeric values, text, formulas, and errors. Worksheets can also contain charts, diagrams, and other objects. Text, numbers, and formulas can be entered into cells. Formatting options include fonts, alignment, merging cells, and more. Formulas allow calculations using values and functions. Errors result from formulas containing errors.

Uploaded by

Nihad Əhmədov
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Data and Computing Skills

Week 2.1.
Entering and Editing
Worksheet Data

Exploring Data Types


An Excel workbook file can hold any number of worksheets, and each worksheet is made up of
more than 17 billion cells. A cell can hold any of four basic types of data.
 A numeric value
 Text
 A formula
 An error
A worksheet can also hold charts, diagrams, pictures, buttons, and other objects. These objects
aren’t contained in cells. Instead, they reside on the worksheet’s drawing layer, which is an
invisible layer on top of each worksheet.

Numeric values
Numeric values represent a quantity of some type: sales amounts, number of employees, atomic
weights, test scores, and so on. Values also can be dates (such as Feb 26, 2022) or times (such as
3:24 AM).

Text entries
Most worksheets also include text in some of the cells. Text can serve as data (for example, a list
of employee names), labels for values, headings for columns, or instructions about the
worksheet. Text is often used to clarify what the values in a worksheet mean or where the
numbers came from.
Text that begins with a number is still considered text. For example, if you type 12 Employees
into a cell, Excel considers the entry to be text rather than a numeric value. Consequently, you
can’t use this cell for numeric calculations. If you need to indicate that the number 12 refers to
employees, enter 12 into a cell and then type Employees into the cell to the right.

Formulas
Formulas are what make a spreadsheet a spreadsheet. Excel enables you to enter flexible
formulas that use the values (or even text) in cells to calculate a result. When you enter a formula
into a cell, the formula’s result appears in the cell. If you change any of the cells used by a formula,
the formula recalculates and shows the new result.

Formulas can be simple mathematical expressions, or they can use some of the powerful
functions that are built into Excel. Figure 1 shows an Excel worksheet set up to calculate a

1|P a g e
Data and Computing Skills

monthly loan payment. The worksheet contains values, text, and formulas. The cells in column A
contain text. Column B contains four values and two formulas. The formulas are in cells B6 and
B10. Column D, for reference, shows the actual contents of the cells in column B.

FIGURE 1. You can use values, text, and formulas to create useful Excel worksheets.

Error values
The fourth data type cells can hold is an error value. Error values are the results of formulas that
contain an error, like the #VALUE! error that results from trying to do addition on a text entry.
Error values are primarily used by Excel’s calculation engine so that formulas that use the results
of other formulas continue to show an error.

Entering Text and Values into Your Worksheets


If you’ve ever worked in a Windows application, you’ll find that entering data into worksheet
cells is simple and intuitive. And while there are differences in how Excel stores and displays the
different data types, for the most part it just works.

Entering numbers
To enter a numeric value into a cell, select the appropriate cell, type the value, and then press
Enter, Tab, or one of the arrow navigation keys. The value is displayed in the cell and appears
in the Formula bar when the cell is selected. You can include decimal points and currency
symbols when entering values, along with plus signs, minus signs, percent signs, and commas
(to separate thousands). If you precede a value with a minus sign or enclose it in parentheses,
Excel considers it to be a negative number.

Entering text
Entering text into a cell is just as easy as entering a value: activate the cell, type the text, and then
press Enter or a navigation key. A cell can contain a maximum of about 32,000 characters— more
than enough to store a typical chapter in this book. Even though a cell can hold a huge number
of characters, you’ll find that it’s not actually possible to display all of these characters.

2|P a g e
Data and Computing Skills

FIGURE 2. The Formula bar, expanded in height to show more information in the cell

What happens when you enter text that’s longer than its column’s current width? If the cells to
the immediate right are blank, Excel displays the text in its entirety, appearing to spill the entry
into adjacent cells. If an adjacent cell isn’t blank, Excel displays as much of the text as possible.
(The full text is contained in the cell; it’s just not displayed.). If you need to display a long text
string in a cell that’s adjacent to a nonblank cell, you have a few choices:
 Edit your text to make it shorter.
 Increase the width of the column (drag the border in the column letter display).
 Use a smaller font.
 Wrap the text within the cell so that it occupies more than one line. Choose Home ➪
Alignment ➪ Wrap Text to toggle wrapping on and off for the selected cell or range.

!Useful Info. Start a new line of text inside a cell in Excel.

To start a new line of text or add spacing between lines or paragraphs of text in a
worksheet cell, press Alt+Enter to insert a line break.
1. Double-click the cell in which you want to insert a line break.
2. Click the location inside the selected cell where you want to break the line.
3. Press Alt+Enter to insert the line break.

Formatting Your Worksheet


Excel offers most of the same formatting options as other Office applications like Word or
PowerPoint. As you might expect, cell-related formatting like fill colour and borders feature
more prominently in Excel than some of the other applications.

Using fonts to format your worksheet


You can use different fonts, font sizes, or text attributes in your worksheets to make various
parts stand out, such as the headers for a table. You also can adjust the font size. For example,
using a smaller font allows for more information on a single screen or printed page.
By default, Excel uses the 11-point (pt) Calibri font. A font is described by its typeface (Calibri,
Cambria, Arial, Times New Roman, Courier New, and so on) as well as by its size, measured in
points. (Seventy-two points equal one inch.) Excel’s row height, by default, is 15 pt. Therefore,
11-pt type entered into 15-pt rows leaves a small amount of blank space between the characters
in vertically adjacent rows.

3|P a g e
Data and Computing Skills

Use the Font and Font Size tools in the Font group on the Home tab of the Ribbon (or on
the Mini toolbar) to change the font or size for selected cells.
You also can use the Font tab in the Format Cells dialog box to choose fonts, as shown in
Figure 3. This tab enables you to control several other font attributes that aren’t available
elsewhere. Besides choosing the font and font size, you can change the font style (bold,
italic), underlining, color, and effects (strikethrough, superscript, or subscript). If you select
the Nor-mal Font check box, Excel displays the selections for the font defined for the Normal
style. We discuss styles later in this chapter (see “Using Named Styles for Easier
Formatting”).

FIGURE 3. The Font tab of the Format Cells dialog box gives you many additional font attribute
options.

You can choose many different font formatting options for your worksheets.

4|P a g e
Data and Computing Skills

If you prefer to keep both hands on the keyboard, you can use the following shortcut keys to
format a selected range quickly:

 Ctrl+B: Bold
 Ctrl+I: Italic
 Ctrl+U: Underline
 Ctrl+5: Strikethrough
These shortcut keys act as a toggle. For example, you can turn bold on and off by repeatedly pressing
Ctrl+B.

Changing text alignment


The contents of a cell can be aligned horizontally and vertically. By default, Excel aligns numbers
to the right and text to the left. All cells use bottom alignment by default.
Overriding these defaults is a simple matter. The most commonly used alignment commands are
in the Alignment group on the Home tab of the Ribbon. Use the Alignment tab of the Format Cells
dialog box for even more options (see Figure 4).

FIGURE 4. The full range of alignment options is available on the Alignment tab of the Format
Cells dialog box.

5|P a g e
Data and Computing Skills

Figure 5. shows examples of text that uses three types of horizontal alignment: Left, Justify, and
Distributed (with an indent).

FIGURE 5. The same text, displayed with three types of horizontal alignment

Merging worksheet cells to create additional text space.

A handy formatting option is an ability to merge two or more cells. When you merge cells,
you don’t combine the contents of cells. Rather, you combine a group of cells into a single cell
that occupies the same space. The worksheet shown in Figure 6 contains four sets of merged
cells. Range C2:I2 has been merged into a single cell and so have ranges J2:P2, B4:B8, and B9:B13.
In the latter two cases, the text orientation has also been changed.

FIGURE 6. Merge worksheet cells to make them act as if they were a single cell.

You can merge any number of cells occupying any number of rows and columns. In fact, you can
merge all 17 billion cells in a worksheet into a single cell—although there probably isn’t a good
reason to do so, except maybe to play a trick on a co-worker.

6|P a g e
Data and Computing Skills

The range that you intend to merge should be empty, except for the upper-left cell. If any of the
other cells that you intend to merge are not empty, Excel displays a warning. If you continue,
all the data (except in the upper-left cell) will be deleted.
You can use the Alignment tab of the Format Cells dialog box to merge cells, but using the Merge
& Center control in the Alignment group on the Ribbon (or on the Mini toolbar) is simpler. To
merge cells, select the cells that you want to merge and then click the Merge & Center button.
The cells will be merged, and the content in the upper-left cells will be centered horizontally.
The Merge & Center button acts as a toggle. To unmerge cells, select the merged cells and click
the Merge & Center button again.
After you merge cells, you can change the alignment to something other than Center by using
the controls in the Home ➪ Alignment group.
The Home ➪ Alignment ➪ Merge & Center control contains a drop-down list with these
additional options:
Merge Across When a multirow range is selected, this command creates multiple
merged cells—one for each row.
Merge Cells Merges the selected cells without applying the Center attribute.
Unmerge Cells Unmerges the selected cells.

Applying Number Formatting


Applying number formatting changes the appearance of values contained in cells. Excel provides
a variety of number formatting options. In the following sections, you will see how to use many
of Excel’s formatting options to improve the appearance and readability of your worksheets
quickly.

Values that you enter into cells normally are unformatted. In other words, they simply consist
of a string of numerals. Typically, you want to format the numbers so that they’re easier to read
or are more consistent in terms of the number of decimal places shown.
Figure 7 shows a worksheet that has two columns of values. The first column consists of
unformatted values. The cells in the second column are formatted to make the values easier to
read. The third column describes the type of formatting applied.

FIGURE 7. Use numeric formatting to make it easier to understand what the values in the
worksheet represent.

7|P a g e
Data and Computing Skills

Using automatic number formatting

Excel is able to perform some formatting for you automatically. For example, if you enter 12.2%
into a cell, Excel knows that you want to use a percentage format and applies it for you
automatically. If you use commas to separate thousands (such as 123,456), Excel applies comma
formatting for you. And if you precede your value with a dollar sign, the cell is formatted for
currency (assuming that the dollar sign is your system currency symbol).

Anything you enter that can possibly be construed as a date will be treated as such. And
depending on how you enter it, Excel will choose a date format to match. If you enter 1/31/2022,
Excel will interpret that as a date and format the cell as 1/31/2022 (just as it was entered). If
you enter Jan 31, 2022, Excel will format it as 31--Jan--22 (if you omit the comma, Excel won’t
recognize it as a date). The less obvious example of entering 1-31 causes Excel to display 31--Jan.
If you need to enter 1-31 in a cell and it’s not supposed to be a date, type an apostrophe (‘) first.

Formatting numbers by using the Format Cells dialogue box


In most cases, the number formats that are accessible from the Number group on the Home tab
are just fine. Sometimes, however, you want more control over how your values appear. Excel
offers a great deal of control over number formats using the Format Cells dialog box, as shown
in Figure 8. For formatting numbers, you need to use the Number tab.

FIGURE 8. When you need more control over number formats, use the Number tab of the Format
Cells dialog box.

The following are the number format categories, along with some general comments:
❖ General The default format; it displays numbers as integers, as decimals, or in scientific
notation if the value is too wide to fit in the cell.

8|P a g e
Data and Computing Skills

❖ Number Enables you to specify the number of decimal places, whether to use a comma
to separate thousands, and how to display negative numbers (with a minus sign, in red,
in parentheses, or in red and in parentheses).
❖ Currency Enables you to specify the number of decimal places, choose a currency
symbol, and specify how to display negative numbers (with a minus sign, in red, in
parentheses, or in red and in parentheses). This format always uses a comma to separate
thousands.
❖ Accounting Differs from the Currency format in that the currency symbols always align
vertically at the left edge of the cell.
❖ Date Enables you to choose from several different date formats.
❖ Time Enables you to choose from several different time formats.
❖ Percentage Enables you to choose the number of decimal places and always displays
a percent sign.
❖ Fraction Enables you to choose from among nine fraction formats.
❖ Scientific Displays numbers in exponential notation (with an E): 2.00E+05 = 200,000;
❖ 2.05E+05 = 205,000. You can choose the number of decimal places to display to the left
of E. The second example can be read as “2.05 times 10 to the fifth.”
❖ Text When applied to a value, causes Excel to treat the value as text (even if it looks like
a number). This feature is useful for such items as part numbers and credit card
numbers.
❖ Special Contains additional number formats. In the U.S. version of Excel, the additional
number formats are ZIP Code, ZIP Code +4, Phone Number, and Social Security Number.
❖ Custom Enables you to define custom number formats that aren’t included in any other
category.

Using Conditional Formatting


You can apply conditional formatting to a cell so that the cell looks different depending on its
contents. Conditional formatting is a useful tool for visualizing numeric data. In some cases,
conditional formatting may be a viable alternative to creating a chart.
Conditional formatting lets you apply cell formatting selectively and automatically, based on the
contents of the cells. For example, you can apply conditional formatting in such a way that all
negative values in a range have a light-yellow background color. When you enter or change a
value in the range, Excel examines the value and checks the conditional formatting rules for the
cell. If the value is negative, the background is shaded; otherwise, no formatting is applied.

Specifying conditional formatting


To apply a conditional formatting rule to a cell or range, select the cells and then use one
of the commands from the Home ➪ Styles ➪ Conditional Formatting drop-down list to
specify a rule. The choices are as follows:
❖ Highlight Cells Rules Examples include highlighting cells that are greater than a
particular value, are between two values, contain a specific text string, contain a
date, or are duplicated.

9|P a g e
Data and Computing Skills

❖ Top/Bottom Rules Examples include highlighting the top 10 items, the items
in the bottom 20 percent, and the items that are above average.
❖ Data Bars Applies graphic bars directly in the cells, proportional to the cell’s
value.
❖ Color Scales Applies background color, proportional to the cell’s value.
❖ Icon Sets Displays icons directly in the cells. The icons depend on the cell’s
value.
❖ New Rule Enables you to specify other conditional formatting rules, including
rules based on a logical formula.
❖ Clear Rules Deletes all the conditional formatting rules from the selected
cells.
❖ Manage Rules Displays the Conditional Formatting Rules Manager dialog box
in which you create new conditional formatting rules, edit rules, or delete rules.

Using graphical conditional formats


The following sections describe the three conditional formatting options that display graphics:
data bars, color scales, and icon sets. These types of conditional formatting can be useful for
visualizing the values in a range.

Using data bars


The data bars conditional format displays horizontal bars directly in the cell. The length of the
bar is based on the value of the cell relative to the other values in the range.

Using colour scales


The colour scale conditional formatting option varies the background color of a cell based on the
cell’s value relative to other cells in the range.
Figure 9 shows examples of color scale conditional formatting. The example on the left depicts
monthly sales for three regions. Conditional formatting was applied to the range B4:D15. The
conditional formatting uses a three-color scale, with red for the lowest value, yellow for the
midpoint, and green for the highest value. Values in between are displayed using a colcolourthin
the gradient. It’s clear that the Central region consistently has lower sales volumes, but the
conditional formatting doesn’t help identify monthly differences for a particular region.

10 | P a g e
Data and Computing Skills

FIGURE 9. Two examples of color scale conditional formatting

The example on the right shows the same data, but conditional formatting was applied to each
region separately. This approach facilitates comparisons within a region and can identify high
or low sales months. Neither one of these approaches is necessarily better. The way you set up
conditional formatting depends entirely on what you’re trying to visualize.

Toggle Absolute/Relative References $$$$$$$$$$$$$$$$$$$$$

Windows: F4

Mac: Cmd + T

When writing formulas, any portion of the formula that denotes a cell or range of cells can be
made absolute by hitting the F4 key while your cursor is on that cell reference. This means
you can use F4 to add $ dollar symbols in front of the column letters and row numbers, $A$12.

By continuing to hit the F4 key, you can toggle or cycle through mixed references (column
absolute while row relative, or row absolute while column relative), and then back again to a
completely relative reference.

! TASK
By using Toggle Absolut References try to create the 10x10
multiplication table.

11 | P a g e

You might also like