Chapitre2 Part2 Final
Chapitre2 Part2 Final
University of Algiers 3
Chapter 2 :
Getting started with Excel Software.
Course 2: Creating tables & operating tools.
From the achievements of the professors: Iabbassen Dalila and Mahri Soumia
Under the supervision of the Pedagogical Team for Computer Science 1
Iabbassen Dalila
• No, although all worksheets are Tabular in their looks, they are just a collection of individual cells.
An Excel table is a powerful way to organize and manage your data in Microsoft Excel. It's more than just
a simple range of cells; it's a named object with unique features that make data analysis and
manipulation easier. Here's a breakdown :
Think of it as a container :
• Imagine your data as loose items scattered around a room. An Excel table acts like a box that
neatly stores all those items, keeping them organized and easier to find.
Key features :
• Automatic formatting: When you create a table, Excel automatically adds headers, filters, and
other helpful elements.
• Easy expansion: As you add new data, the table automatically grows to accommodate it, unlike a
static cell range.
• Powerful calculations: You can create calculated columns within the table to perform automatic
calculations based on existing data.
• Filtering and sorting: Each header has built-in filter and sort options, letting you quickly focus on
specific information.
• Relationship awareness: Excel understands the connections between data points within the
table, making it smarter for analysis and reporting.
• Saves time: Formatting, calculations, and data management become automatic, saving you
manual effort.
• Reduces errors: Automatic features minimize the risk of mistakes in calculations and data
manipulation.
• Improves clarity: Filtering and sorting help you clearly visualize and analyze your data.
• Flexibility: Tables can be easily resized, moved, and even converted to other data formats.
In Excel 2007, and later versions, you can use the Table command to convert a list of data into a formatted
Excel Table. Tables have many features, such as sorting and filtering, that will help you organize and better
view your data.
• The data should be organized in rows and columns, with each row containing information
about one record, such as a sales order, or inventory transaction.
• In the first row of the list, each column should contain a short, descriptive and unique
heading.
• Each column in the list should contain one type of data, such as dates, currency, or text.
• Each row in the list should contain the details for one record, such as a sales order. If
possible, include a unique identifier for each row, such as an order number.
• The list should have no blank rows within it, and no completely blank columns.
• The list should be separated from any other data on the worksheet, with at least one blank
row and one blank column between the list and the other data.
2.2. Transform data to an Excel Table ( click here to see the video )
Select the cells you want to format as a table. And then choose one of these three ways:
3. Filling cells
3.1. Autofill cells ( click here to see the video )
• The fastest way to autofill is to use Excel's Fill Handle: a plus sign that displays
when the mouse hovers over the bottom right corner of a selected cell.
• Select the cell(s) containing the data you entered, drag the Fill Handle to select
the cells to autofill, and release the mouse.
Autofill Dates:
• A common use of the autofill function of Excel is to autofill dates. For
sequential dates, which is the default, just type the first date and drag with
the Fill Handle to select and autofill additional cells.
• The easiest way to autofill non-sequential dates is to enter the first two
dates and drag with the Fill Handle to select and autofill additional cells. We
cover other methods in How to Autofill Dates. Or you can enter the first date,
press and hold the right-mouse button, and drag the Fill Handle to select the
cells to be filled. Then click "Series" on the menu that displays, enter the
desired Step Value, and click OK.
▪ Whole Number - to restrict the cell to accept only whole ▪ Time - to restrict the cell
numbers. to accept only time.
▪ Decimal - to restrict the cell to accept only decimal numbers. ▪ Text Length - to restrict
▪ List - to pick data from the drop-down list (section 3.3). the length of the text.
▪ Date - to restrict the cell to accept only date. ▪ Custom – for custom
formula.
4. Under Data, select a condition.
5. Set the other required values based on what you chose for Allow and Data.
6. Select the Input Message tab and customize a message users will see when entering data.
7. Select the Show input message when cell is selected checkbox to display the message when the
user selects or hovers over the selected cell(s).
8. Select the Error Alert tab to customize the error message and to choose a Style.
9. Select OK.
Now, if the user tries to enter a value that is not valid, an Error Alert appears with your customized
message. - Click here to download a practice workbook -
2. Select the cell in the worksheet where you want the drop-down list.
4. On the Settings tab (figure 4), in the Allow box, select List.
5. Select the Source box, then select your list range. We put ours on a sheet
called Cities, in range A2:A9. Note that we left out the header row,
because we don't want that to be a selection option.
Note: You can also fill the source box with a constant values list, separated by a semicolon (;).
For example:
6. If it’s OK for people to leave the cell empty, check the Ignore blank box.
Note: If you don't add a title or text, the title defaults to "Microsoft Excel" and the message to: "The
value you entered is not valid. A user has restricted values that can be entered into this cell."
Then choose the way of sorting, as an example of sort on alphabetic data, click the A-Z command to sort
by ascending order, or the Z-A command to sort by descending order, or choose to use a custom sorting.
Custom sorting
Sometimes you may find that the default sorting options can't sort data in the order you need. Fortunately,
Excel allows you to create a custom list to define your own sorting order.
The Sort dialog box will appear after choosing a custom sort. Select the column you want to sort by, then
choose Custom List... from the Order field. In our example, we will choose to sort by T-Shirt Size.
The Custom Lists dialog box will appear. Select NEW LIST from the Custom Lists: box.
Type the items in the desired custom order in the List entries: box. In our example, we want to sort our
data by T-shirt size from smallest to largest, so we'll type Small, Medium, Large, and X-Large,
pressing Enter on the keyboard after each item.
Click Add to save the new sort order. The new list will be added to the Custom lists: box. Make sure the
new list is selected, then click OK.
The Custom Lists dialog box will close. Click OK in the Sort dialog box to perform the custom sort.
The worksheet will be sorted by the custom order. In our example, the worksheet is now organized by T-
shirt size from smallest to largest.
To filter data:
In our example, we'll apply a filter to an equipment log worksheet to display only the laptops and
projectors that are available for checkout.
• Select the Data tab, then click the Filter command (see Figure9 (1)).
• A drop-down arrow will appear in the header cell for each column (see Figure9 (2)).
• Click the drop-down arrow for the column you want to filter. In our example, we will filter column B to
view only certain types of equipment (see Figure9 (2)).
• The Filter menu will appear (see Figure9 (3)).
• Uncheck the box next to Select All to quickly deselect all data (see Figure9 (4)).
• The data will be filtered, temporarily hiding any content that doesn't match the criteria. In our example,
only laptops and projectors are visible (Figure9).
To do this, just make a second filter in column D; by following the same steps done to make the first filter
in the common B.
Clear a filter:
After applying a filter, you may want to remove—or clear—it from your worksheet so you'll be able to
filter content in different ways.
• Click the drop-down arrow for the filter you want to clear. In our example, we'll clear the filter in
column D.