unit 1
unit 1
AIM :
To create pie chart for sales and sales % by Country(sorted in descending order) by
using MS-Excel.
ALGORTHIM :
In Column C, next to the sales data, calculate the sales percentage for each country.
To calculate the percentage, use the formula:
Percentage=Sales for the Country/Total Sales * 100
To do this:
In Cell
C2, enter the following formula:
=B2/SUM($B$2:$B$6)
Select the data range for countries and sales (e.g., A1).
Go to the Insert tab on the ribbon.
In the Charts group, click the Pie Chart icon.
Choose the type of pie chart you want (e.g., 2-D Pie).
After the pie chart is created, you can format it to display percentages on the chart:
Right-click on any slice of the pie and select Add Data Labels.
Right-click on the labels and choose Format Data Labels.
Check the option to show Percentage.
You can also customize the chart title by clicking on the title and typing a new name, such as
"Sales by Country".