Page 1 of 1

Generating a pie chart

Posted: Wed May 07, 2008 10:50 am
by tomwatson
I am trying to Generate a pie chart with the following field.

Image

It should show 3/4 as one section marked AD and 1/4 as another section marked SUP. I have tried in both Excel and OpenOffice and can't figure out how to make it do this. Any help would be appreciated.

Re: Generating a pie chart

Posted: Wed May 07, 2008 12:30 pm
by Hagar Delest
I don't think you can do that directly (but I may be wrong, I'm not a Calc user).
You may have to sum the number of each before creating the chart. That would give 3 for AD and 1 for SUP, then, create the chart based on these figures.

To count the number of entries, you can use the COUNTIF() function for example (see the help file about that function).

Thanks to add '[Solved]' at beginning of your first post title (edit button) if your issue has been fixed.

Re: Generating a pie chart

Posted: Sat May 10, 2008 6:32 pm
by jrkrideau
tomwatson wrote:I am trying to Generate a pie chart with the following field.

Image

It should show 3/4 as one section marked AD and 1/4 as another section marked SUP. I have tried in both Excel and OpenOffice and can't figure out how to make it do this. Any help would be appreciated.
Use the function COUNTIF() and some reference cells

Set up two cells with the codes , AD and SUP ( in my example in F2 and F3)

Assuming data is in A2:A5 then
=COUNTIF(A2:A5;F2) # Gives you the number of AD's
=COUNTIF(A3:A6;F3) # Gives you the number of SUP's

Graph these numbers.

Re: Generating a pie chart

Posted: Sat May 10, 2008 11:02 pm
by acknak
You can also use the Data Pilot (Data > Data Pilot) to do the counting for each value type, and then plot those results.