Vous êtes sur la page 1sur 6

Ex no: 5

Charts- Line, XY, Bar and Pie. Problem 1: Type the following data: Sales report for the first quarter 2004 A Vehicle Car Auto Jeep Van Total B Jan 250 54 91 125 C Feb 300 92 120 119 D Mar 310 20 11 78 E Total

1 2 3 4 5 6

1. Make sure that appropriate formulas are entered in column E so that total sales of each vehicle is shown properly. Similarly, in row 6 type correct formulas so that total sales for each month is shown in respective columns. Open a new workbook window. Build the above table, starting from cell A1. Type the Formula (= sum (B2:D2 )) in cell E2 to calculate Total. Drag through the range (E2 to E5) and then press enter key. Similarly type the formula in cell B6 and drag up to D6 to calculate the total for every month.

2. Draw a Pie Chart to show vehicle wise total sales made between Jan and Mar 2004. Total sales of each vehicle must be shown as a sector. Select the data to be charted. Choose Chart from the Insert menu or click on the ChartWizard button. Select the chart type: Pie and click on the Next button. Read the dialog box, make sure the range is correct and then click the Next button. Enter the Chart title, Category (x) axis, value (y) axis and click on next button to continue. Click once on the As object in radio button and specify the object name. Click on the finish button and get the desired chart on the workbook.

3. Draw a bar graph/column chart to show sale of vehicles for each month. Highlight the data to be charted. Choose Chart from the Insert menu. Choose the chart type: Column and then select the desired chart sub-type from the samples on display. click on the Next button. In the dialog box, the default radio button for Columns would be selected. If the range is correct, click on the Next button. Select titles tab from the dialog box and enter the Chart title, Category (x) axis, value (y) axis. Click on the legend folio and select the desired placement where the legends should be displayed .Click on the next button Click once on the As object in radio button and specify the object name. Click on the finish button and get the desired chart on the workbook.

4. Draw a stacked bar graph to show the sale of each vehicle in comparison with the total sales for the month. Highlight the data to be charted. Choose Chart from the Insert menu. Choose the chart type: Bar and then select the desired chart sub-type from the samples on display. click on the Next button. In the dialog box, the default radio button for Columns would be selected. If the range is correct, click on the Next button. Select titles tab from the dialog box and enter the Chart title, Category (x) axis, value (y) axis. Click on the legend folio and select the desired placement where the legends should be displayed .Click on next button. Click once on the As object in radio button and specify the object name. Click on the finish button and get the desired chart on the workbook.

5. Draw a Line graph to show the sales trend over the first quarter of the year 2004. Highlight the data to be charted. Choose Chart from the Insert menu. Choose the chart type: Line and then select the desired chart sub-type from the samples on display. click on the Next button. In the dialog box, if the range is correct, click on the Next button. Select titles tab from the dialog box and enter the Chart title, Category (x) axis, value (y) axis. Click on the legend tab and select the desired placement where the legends should be displayed .Click on next button.

Click once on the As object in radio button and specify the object name. Click on the finish button and get the desired chart on the workbook.

6. Type the following data in column F F 1 2 3 4 5 Cost 200000 700000 900000 1000000

Draw an XY graph comparing two numerical variables viz., cost of the vehicle and sale of the vehicle. Enter the above data to the worksheet . Select the total and cost columns from the worksheet. Choose Chart from the Insert menu. Choose the chart type: xy(scatter) and then select the desired chart sub-type from the samples on display. click on the Next button. In the dialog box, if the data range is correct, click on the Next button. Select titles tab from the dialog box and enter the Chart title, Category (x) axis, value (y) axis. Click on the legend tab and select the desired placement where the legends should be displayed .Click on next button. Click once on the As object in radio button and specify the object name. Click on the finish button and get the desired chart on the workbook.

Problem 2: Create title for the graph as Sales Report for the first quarter 2004 1. Create legends for all the data ranges in the graphs/charts drawn in problem 1. Click on the chart to which, you wish to apply legend . Choose chart options from the chart menu or right-click the chart to select chart options Select the titles tab from the dialog box and give the chart title as specified above. Select the legends tab from the same dialog box and check the show legend option . choose the desired placement where the legends should be displayed on the chart. Sample chart with legends

2. Display horizontal vertical grids. Click on the chart to which, you wish to apply gridlines . Choose chart options from the chart menu or right-click the chart to select chart options

Select the gridlines tab from the dialog box and check the major and minor gridlines option for x and y-axis. Then press ok button to draw gridlines on the chart Sample chart with Gridlines

Problem 3: Write macros for the following: 1. To auto fill a range viz., A1..C5 with values starting from 1, increasing in steps of 5. Note: Write down the steps in your own words. 2. To draw graphs automatically for the problem given in problem 1. Highlight the data to be charted. Press F11 key to draw the graph automatically.

Vous aimerez peut-être aussi