Académique Documents
Professionnel Documents
Culture Documents
Entering Data. Turning Data Into a Table. Creating a Bar Chart. Crating a Scatter Chart.
How to:
A. B. C. D. Enter text or a number in a cell Enter a date or a time in a cell Enter the same data into several cells at the same time Adjust worksheet settings and cell formats: i.Change the width of a column ii.Change the format of a number
TIP To enter data on a new line within a cell, enter a line break by pressing ALT+ENTER.
TIP To enter the current date and time, press CTRL+SHIFT+; (semicolon).
NOTES When you enter a date or a time in a cell, it appears either in the default date or time format for you computer, or in the format that was applied to the cell before you entered the date or time. The default date or time format is based on the date and time settings in the Regional and Language Options dialog box (Control Panel). If these settings on your computer have been changed, the dates and times in your workbooks that have not been formatted by using the Format Cells command are displayed according to those settings. To apply the default date or time format, click the cell that contains the date or time value, and then press CTRL +SHIFT+# or CTRL+SHIFT+@.
C. Enter the same data into several cells at the same time
1. Select the cells into which you want to enter the same data. The cells do not have to be adjacent.
DO THIS Click the cell, or press the arrow keys to move to the cell. Click the first cell in the range, and then drag to the last cell, or hold down SHIFT while you press the arrow keys to extend the selection. You can also select the first cell in the range, and then press F8 to extend the selection by using the arrow keys. To stop extending the selection, press F8 again. Click the first cell in the range, and then hold down SHIFT while you click the last cell in the range. You can scroll to make the last cell visible. Click the Select All button.
To select the entire worksheet, you can also press CTRL+A. NOTE If the worksheet contains data, CTRL+A selects the current region. Pressing CTRL+A a second time selects the entire worksheet. Nonadjacent cells or cell ranges Select the first cell or range of cells, and then hold down CTRL while you select the other cells or ranges. You can also select the first cell or range of cells, and then press SHIFT +F8 to add another nonadjacent cell or range to the selection. To stop adding cells or ranges to the selection, press SHIFT+F8 again. NOTE You cannot cancel the selection of a cell or range of cells in a nonadjacent selection without canceling the entire selection. Click the row or column heading.
Row heading Column heading You can also select cells in a row or column by selecting the first cell and then pressing CTRL+SHIFT+ARROW key (RIGHT ARROW or LEFT ARROW for rows, UP ARROW or DOWN ARROW for columns). NOTE If the row or column contains data, CTRL+SHIFT+ARROW key selects the row or column to the last used cell. Pressing CTRL+SHIFT +ARROW key a second time selects the entire row or column. Adjacent rows or columns Nonadjacent rows or columns The first or last cell in a row or column Drag across the row or column headings. Or select the first row or column; then hold down SHIFT while you select the last row or column. Click the column or row heading of the first row or column in your selection; then hold down CTRL while you click the column or row headings of other rows or columns that you want to add to the selection. Select a cell in the row or column, and then press CTRL+ARROW key (RIGHT ARROW or LEFT ARROW for rows, UP ARROW or DOWN ARROW for columns).
The first or last cell on a worksheet or in a Microsoft Office Excel table Cells to the last used cell on the worksheet (lower-right corner) Cells to the beginning of the worksheet More or fewer cells than the active selection
Press CTRL+HOME to select the first cell on the worksheet or in an Excel list. Press CTRL+END to select the last cell on the worksheet or in an Excel list that contains data or formatting. Select the first cell, and then press CTRL+SHIFT+END to extend the selection of cells to the last used cell on the worksheet (lower-right corner). Select the first cell, and then press CTRL+SHIFT+HOME to extend the selection of cells to the beginning of the worksheet. Hold down SHIFT while you click the last cell that you want to include in the new selection. The rectangular range between the active cell and the cell that you click becomes the new selection.
2.
In the active cell, type the data, and then press CTRL+ENTER. to
TIP You can also enter the same data into several cells by using the fill handle automatically fill data in worksheet cells.
For more information, see the article Fill data automatically in worksheet cells.
3.
Under Cell Size, do one of the following: To fit all text in the cell, click AutoFit Column Width. To specify a larger column width, click Column Width, and then type the width that you want in the Column width box.
NOTE As an alternative to increasing the width of a column, you can change the format of that column or even an individual cell. For example, you could change the date format so that a date is displayed as only the month and day ("mm/dd" format), such as 12/31, or represent a number in a Scientific (exponential) format, such as 4E+08.
TIP To select a number format from the list of available formats, click More, and then click the format that you want to use in the Category list.
If you no longer want to work with your data in a table, you can convert the table to a regular range of data while keeping any table style formatting that you applied. When you no longer need a table and the data that it contains, you can delete it.
How to:
A. B. C. Create a table Delete a table without losing the data or table formatting Delete a table and its data
A. Create a table
You can use one of two ways to create a table. You can either insert a table in the default table style or you can format your data as a table in a style that you choose.
Keyboard shortcut You can also press CTRL+L or CTRL+T. 3. If the selected range contains data that you want to display as table headers, select the My table has headers check box.
6
Table headers display default names if you do not select the My table has headers check box. You can change the default names by selecting the default header that you want to replace, and then typing the text that you want. Tips After you create a table, the Table Tools become available, and a Design tab is displayed. You can use the tools on the Design tab to customize or edit the table. Note that the Design tab is only visible when a cell in the table is selected. Unlike lists in Office Excel 2003, a table does not have a special row (marked with *) for quickly adding new rows.
Note
3.
Under Light, Medium, or Dark, click the table style that you want to use. If the selected range contains data that you want to display as table headers, click a table style that includes a header row.
Custom table styles are available under Custom after you create one or more of them.
Note
Tips
After you create a table, the Table Tools become available when a cell is selected in the table, and a Design tab is displayed. You can use the tools on the Design tab to customize or edit the table. Unlike lists in Excel 2003, a table does not have a special row (marked with *) for quickly adding new rows.
Tip This displays the Table Tools, adding the Design tab. A cell in the table must be selected for the Design tab to be visible.
2.
On the Design tab, in the Tools group, click Convert to Range, and then click Yes.
Note Table features are no longer available after you convert the table back to a range. For example, the row headers no longer include the sort and filter arrows, and structured references (references that use table names) that were used in formulas turn into regular cell references.
Tips
You can also right-click the table, point to Table, and then click Convert to Range. Immediately after you create a table, you can also click Undo Toolbar to convert that table back to a range. on the Quick Access
After you create a bar chart, you can change the spacing between the bars. You can also use a bar chart type to simulate a Gantt chart, a horizontal bar chart that is often used in project management programs.
How To:
A. B. C. Learn more about plotting data in a bar chart Create a bar chart Change the spacing between the bars
Consider using a bar chart when: You have one or more data series that you want to plot. Your data contains positive, negative, and zero (0) values. You want to compare the data for numerous categories. The axis labels are long. The values that are shown are durations.
When you create a bar chart, you can choose one of the following bar chart subtypes: Clustered bar and clustered bar in 3-D. Clustered bar charts compare values across categories. In a clustered bar chart, the categories are typically organized along the vertical axis, and the values along the horizontal axis. A clustered bar in 3-D chart displays the horizontal rectangles in 3-D format; it does not display the data on three axes.
Stacked bar and stacked bar in 3-D. Stacked bar charts show the relationship of individual items to the whole. A stacked bar in 3-D chart displays the horizontal rectangles in 3-D format; it does not display the data on three axes.
100% stacked bar and 100% stacked bar in 3-D. This type of chart compares the percentage that each value contributes to a total across categories. A 100% stacked bar in 3-D chart displays the horizontal rectangles in 3-D format; it does not display the data on three axes.
10
So, how did we create the above bar chart? The following procedure will help you create a bar chart with similar results. 1. 2. 3. Open the worksheet that contains the data that you want to plot into a bar chart. Select the data that you want to plot in the bar chart. On the Insert tab, in the Charts group, click Bar.
4. 5.
Under 2-D Bar, select Clustered Bar. Click the chart area of the chart.
This displays the Chart Tools, adding the Design, Layout, and Format tabs. 6. On the Design tab, in the Chart Styles group, click the chart style that you want to use.
7.
11
8.
To reduce the size of the chart title, right-click the title, and then select the size that you want in the Size box.
9.
To reduce the size of the axis labels, right-click the vertical (category) axis, and then select the size that you want in the Size box.
10. Click the plot area of the chart, or select it from a list of chart elements (Layout tab, Current Selection group, Chart Elements box). 11. On the Format tab, in the Shape Styles group, click the More button the effect that you want to use.
TIP For our bar chart, we used the Subtle Effect - Accent 1.
12. Click a data point to select all of the bars, or select the data series from a list of chart elements (Layout tab, Current Selection group, Chart Elements box). 13. On the Format tab, in the Shape Styles group, click the More button the effect that you want to use.
TIP For our bar chart, we used the Subtle Effect - Accent 2.
14. On the Format tab, in the Shape Styles group, click Shape Effects. 15. Click Glow, and then under Glow Variations, click the glow effect that you want.
TIP For our bar chart, we used the Accent color 2, 8 pt glow.
16. Click the chart area of the chart. 17. On the Format tab, in the Shape Styles group, click the More button the effect that you want to use.
TIP For our bar chart, we used the Colored Outline - Accent 1.
18. To change the size of the chart, on the Format tab, in the Size group, select the shape size that you want in the Shape Height box, and then press ENTER.
TIP For our bar chart, we used 4".
19. If you want to use theme colors that are different from the default theme that is applied to your workbook, do the following:
12
20. On the Page Layout tab, in the Themes group, click Themes.
21. Under Built-in, click the theme that you want to use.
TIP For our bar chart, we used the Solstice theme.
This displays the Chart Tools, adding the Design, Layout, and Format tabs. 2.
TIP
On the Format tab, in the Current Selection group, click the arrow next to the Chart Elements box, and then click the data series.
You need to select only a single data series to change the spacing of all data series of the same chart type.
3. 4.
On the Format tab, in the Current Selection group, click Format Selection. Under Series Options, do one of the following:
To change the overlap of bars in a 2-D bar chart, drag the slider to the percentage of series overlap that you want, or enter a percentage between -100 and 100 in the Series Overlap box. TIP The higher the value, the greater the overlap within the category. To change the spacing between categories of data markers in a 2-D or 3-D bar chart, drag the slider to the percentage of gap width that you want, or enter a value between 0 (zero) and 500 in the Gap Width box. TIP The higher the value, the greater the spacing between the bars. To change the spacing between the data series in a 3-D bar chart, enter a value between 0 and 500 in the Gap Depth box. TIP The higher the value, the greater the distance between the bars.
13
How to...
A. B. Create a scatter chart Save a chart as a template
14
So, how did we create this scatter chart? The following procedure will help you create a scatter chart with similar results. For this chart, we used the example worksheet data. You can copy this data to your worksheet, or you can use your own data.
Daily Rainfall 4.1 4.3 5.7 5.4 5.9 5.0 3.6 1.9 7.3 Particulate 122 117 112 114 110 114 128 137 104
1. 2. 3.
Copy the example worksheet data into a blank worksheet, or open the worksheet that contains the data that you want to plot into a scatter chart. Select the data that you want to plot in the scatter chart. On the Insert tab, in the Charts group, click Scatter.
4. 5.
Click Scatter with only Markers. Click the chart area of the chart.
This displays the Chart Tools, adding the Design, Layout, and Format tabs. 6. On the Design tab, in the Chart Styles group, click the chart style that you want to use.
7.
Click the chart title, and then type the text that you want.
8.
To reduce the size of the chart title, right-click the title, and then enter the size that you want in the Font Size box on the shortcut menu.
15
9.
Click the chart area of the chart. To add a horizontal axis title, click Primary Horizontal Axis Title, and then click Title Below Axis. To add a vertical axis title, click Primary Vertical Axis Title, and then click the type of vertical axis title that you want.
10. On the Layout tab, in the Labels group, click Axis Titles, and then do the following:
Click each title, type the text that you want, and then press ENTER.
TIP For our scatter chart, we typed Daily Rainfall in the horizontal axis title, and Particulate level in the vertical axis title.
11. Click the plot area of the chart, or select Plot Area from a list of chart elements (Layout tab, Current Selection group, Chart Elements box). 12. On the Format tab, in the Shape Styles group, click the More button the effect that you want to use.
TIP For our scatter chart, we used the Subtle Effect - Accent 3.
13. Click the chart area of the chart. 14. On the Format tab, in the Shape Styles group, click the More button the effect that you want to use.
TIP For our scatter chart, we used the Subtle Effect - Accent 1.
15. If you want to use theme colors different from the default theme that is applied to your workbook, do the following: 16. On the Page Layout tab, in the Themes group, click Themes.
16
17. Under Built-in, click the theme that you want to use.
TIP For our line chart, we used the Office theme.
TIP Unless you specify a different folder, the template file (.crtx) will be saved in the Charts folder, and the template becomes available under Templates in both the Insert Chart dialog box (Insert tab, Charts group, Dialog Box Launcher ) and the Change Chart Type dialog box (Design tab, Type group, Change Chart Type).
For more information about how to apply a chart template, see Reuse a favorite chart by using a chart template.
NOTE A chart template contains chart formatting and stores the colors that are in use when you save the chart as a template. When you use a chart template to create a chart in another workbook, the new chart uses the colors of the chart template not the colors of the document theme that is currently applied to the workbook. To use the document theme colors instead of the chart template colors, right-click the chart area, and then click Reset to Match Style on the shortcut menu.
17