How do I create a graph in numbers?

So here is what I have created: http://i1135.photobucket.com/albums/m638/moore778899/Screenshot2011-01-06at21522 8.png

All are drop down lists. You will see that it LOOKS correct in terms of Q1. But when I change one of the responses to male and select just those two cells, then create a pie chart, I only get a full blue circle again!

What cells do I click?
What am I doing wrong?

Macbook Pro 2.2 GHz 15", Mac OS X (10.5.6)

Posted on Jan 6, 2011 2:01 PM

Reply
19 replies
Sort By: 

Jan 7, 2011 1:23 AM in response to Jerrold Green1

Hi,

Thanks for reply.

You will see at the top that the black bar has numerics in it. They go horizontally across the spreadsheet and I've set it up like this so I cross examine the data. I.e. see whether the treatment has been more successful in certain ways for women or men.

I have not included those cells (black bar numerics) in the series as I presumed it was irrelevant. if I select two cells, both with a drop down list of male or female - and for example let's say one person was male and the other female - that it would give me a 50% split and a count of two...
Reply

Jan 7, 2011 12:49 PM in response to lawero

lawero wrote:
You will see at the top that the black bar has numerics in it. They go horizontally across the spreadsheet and I've set it up like this so I cross examine the data. I.e. see whether the treatment has been more successful in certain ways for women or men.

I have not included those cells (black bar numerics) in the series as I presumed it was irrelevant. if I select two cells, both with a drop down list of male or female - and for example let's say one person was male and the other female - that it would give me a 50% split and a count of two...


The numbers in the black bar (row 4) appear to be serial numbers identifying each case. If that's the case, your presumption is correct.

If you want the pie graph to show the ratio of males to females, then you have to supply it the data to do that—a count of the Male cases and a count of the Female cases.

Somewhere in your document, possibly on a second table, you need two cells, one containing the total number of Female cases, the other the total number of Male cases.

The formula for Female will look like this:

=COUNTIF(Table 1::$7:$7,"Female")

If the cells are on the same table as the data, "Table 1::" is omitted.

Regards,
Barry
Reply

Jan 9, 2011 8:46 AM in response to Barry

Thanks, but that is creating more work. I was hoping that number, like excel, can identify that there are two options and show a graph based on that alone, rather then creating a new element as a total count.

Here is me selecting the rows: http://i1135.photobucket.com/albums/m638/moore778899/Screenshot2011-01-09at16434 7.png

Here is the graph: http://i1135.photobucket.com/albums/m638/moore778899/Screenshot2011-01-09at16440 3.png which is incorrect
Reply

Jan 9, 2011 12:58 PM in response to Jerrold Green1

Thank you Jerry.

OK, lets assume that's true, although I hoping it is not as I created a huge spreadsheet at work with drop down menu's just like this... :/

So how can I adjust the spread sheet to allow for cross anaylisis? If I just lump all the figures together, e.g. 2 Oily skin, 1 Sensitive skin. Then I am not going to be able to to say oily people found RLT helped most with burning...

Hope I'm making sense.
Reply

Jan 9, 2011 1:29 PM in response to lawero

lawero wrote:
So how can I adjust the spread sheet to allow for cross anaylisis? If I just lump all the figures together, e.g. 2 Oily skin, 1 Sensitive skin. Then I am not going to be able to to say oily people found RLT helped most with burning...


Same as above. You have to supply the data for each wedge, bar, or point on the graph. A chart simply displays the data you provide to it. Collect whatever data you want to chart, select the collection, make the chart.

Regards,
Barry

Addressed in more detail in the other thread.
Reply

Jan 9, 2011 1:43 PM in response to Jerrold Green1

Hi Jerry,

Thanks again for your reply.

OK, so what I want to be able to do is ascertain from the figures coronations.

For example, lets say 100 people take the survey.

70 are women
30 are men

80 people say red light therapy (RLT) has worked very well for them
20 say it hasn't

i'm simplifying here 🙂

What I would then like to be able to do is answer the question 'has RLT worked better for men or women?'

I have the data as I can see all the male responses answers to how effective the treatment is on an individual basis and the same with the women.

What I don't understand is how to get numbers to process the data as it is (in the drop down menus) or if I lump the figures together into 70 women and 30 men, how I extract that data to do the correlation.
Reply

Jan 9, 2011 1:58 PM in response to lawero

It's not always possible to chart data "as it is." Sometimes an interposing table is required to organize the data in a format that the charts can accept. These auxiliary tables don't have to be displayed -- they can be hidden out of the way on different sheets.

Specifically here, we could have an auxiliary table that counts the percentage of men who improved and the percentage of women who improved. Then we Chart from the aux. table.

If you don't want to divulge any more specific information on your data layout we can't give specific advice. For Numbers 08 we can say that in general if you want to count conditionally on multiple criteria in a record it is necessary to add a column that creates markers to identify the presence of the multiple-condition matches.

Jerry
Reply

Jan 9, 2011 2:35 PM in response to lawero

Here's some non-specific, but I hope helpful, advice.

Let's say your raw data is entered into a table called "SurveyData" and simply consists of:

Col A: Gender (M/F)
Col B: Result (Worse/Same/Improved)
Col C: Key =A&"-"&B

In a summary table...

A2: "Females"
A3: "Males"

B1: "Worse"
C1: "Same"
D1: "Better"

B2: =COUNTIF(SurveyData :: C:C, "F-Worse")
C2: =COUNTIF(SurveyData :: C:C, "F-Same")
D2: =COUNTIF(SurveyData :: C:C, "F-Better")

B3: =COUNTIF(SurveyData :: C:C, "M-Worse")
C3: =COUNTIF(SurveyData :: C:C, "M-Same")
D3: =COUNTIF(SurveyData :: C:C, "M-Better")

Now you are ready to set up your charts in the summary table.

Jerry
Reply

Jan 9, 2011 2:57 PM in response to Jerrold Green1

You are brilliant Jerry!

So you mean something like this?

User uploaded file

I always find it facinating how you can present the same data in different ways which gives an entirely different picture.

So, now my only issue is that we're not on a scale 100% model and that the values are not showing as their % - rather 0.900 etc

PS, is there anyway I can ask Numbers to add up the total number of males/females in a formula without having to manually add them up?

Message was edited by: lawero
Reply

Jan 9, 2011 4:21 PM in response to lawero

Hi lawero,

Two cautionary questions before we get too much further into this:

Have you had success in creating the charts and analysis you want for this in your Excel version of the spreadsheet document?

Do your plans include exporting/importing the document back and forth between Excel and Numbers?

If either answer is 'yes,' you might be further ahead to use MS Excel 2011 for the Mac end, rather than Numbers. Compatibility between the two versions of Excel, while not 'complete,' will be better than the level of compatibility between Excel 2007 or 2010 and Numbers '08.



You wrote earlier in this thread: "Thanks, but that is creating more work. "

That's even more true of the current situation, where the same issue is the subject of two separate threads in this forum. Can we bring the whole topic into a single thread, please.

lawero wrote:
For example, lets say 100 people take the survey.

70 are women
30 are men

80 people say red light therapy (RLT) has worked very well for them
20 say it hasn't

What I would then like to be able to do is answer the question 'has RLT worked better for men or women?'

What I don't understand is how to get numbers to process the data as it is (in the drop down menus) or if I lump the figures together into 70 women and 30 men, how I extract that data to do the correlation.


Numbers '08 doesn't support COUNTIFS, which allows setting multiple conditions (such as 'Female' and 'Hugely Improved') for an item to be counted, so my first step would be to split the data into Male and Female sets.

There are several ways of doing this. The most direct is a simple cell reference (eg. =B3) enclosed in an IF statement that transfers the value IF the 'gender' cell in that column contains "Female".

Example: to transfer the Female's responses on row 45 (about where Q8, Facial redness should appear), say to row 105 on the same table, use this formula in C105 (first column recording a response):

=IF(C$7="Female",C45,"")

Filled down to row 106, the formula will pick up the response of the same person to Flushing/blushing:

=IF(C$7="Female",C46,"")

Filled to the right, the initial formula will pick up the response of the person in column D (if that person is labeled 'Female' in row 7).

=IF(D$7="Female",D45,"")

After doing the filling, copy the initial version of the formula, paste it into C104, then edit it to read:

=IF(C$7="Female",C7,"")

This one transfers the word "Female", where it occurs in row 7, to row 104, providing a convenient place to get a count of the number of responding females, if needed.

With this simple method, the columns where the respondent has not been identified as Female will appear blank (but actually contain a null string).

A similar set of formulas, where "Male" is substituted for "Female", will transfer only the responses for the persons labeled 'Male'.

Once you have those two arrays of responses, you can count the occurrences of each response for each question using COUNTIF. For row 105 (females' responses to Facial redness) the formula to count 'Got Worse' responses (first on the list) is:

=COUNTIF($C105:$CZ105,"Got Worse")

(The cell range allows for up to 105 respondents.)
The same formula, with the condition changed to fit, can be filled right to count the other responses to the same question, and filled down to count the responses to other questions.

If calculating percentages you will also need a count of the number of Females responding, and may wish to subtract the number of "Never had" responses.

If this summary is calculated on a separate table (recommended), all cell references will need to be edited (before filling right or down) to include the sheet name and table name of the referenced cell(s).

Regards,
Barry
Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I create a graph in numbers?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.