Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Showing average results on a graphic with Numbers '09

Greetings everyone. My request could seem quite simple but I can't manage to do it. I'd like to show the results from a theoric experiment. No problem until I want to make an average result of, not each subject, but each groupe. Here is what I don't want to get:

User uploaded file

Any idea ?

MacBook Pro (15-inch Early 2011), Mac OS X (10.7.4)

Posted on Oct 4, 2013 6:23 PM

Reply
Question marked as Best reply

Posted on Oct 4, 2013 6:59 PM

HI M,


You need to supply Numbers with the values you want to graph.

User uploaded file

Formula in Average::B2: =AVERAGEIF(Data :: C,A2,Data :: B)


Fill down to B3.


Regards,

Barry

9 replies

Oct 4, 2013 11:09 PM in response to SGIII

Hi SGIII,


It's not usually an "oops!" More often it's the result of thinking along the same lines but coming to the question while the other person is working on a similar solution. In some cases where I've done the same thing, I've edited my post to remove my solution as redundant, in others, I've let it stand. In this case, I'm glad you chose the latter patth, as it gives me a chance to comment on graphs in general and the visual messages they present.


Your chart and mine came from the same data, and started out looking pretty much the same.


Yours has edits to the title and the colour of the bars; otherwise it is the graph as Numbers delivers it.

Mine has three edits: the Min and Max values on the Y axis have been changed from the automatically generated values to the actual minimum and maximum scores (0 and 15), and the number of steps set to a value that makes those steps occur (as the default four steps did in your chart) at half point intervals.


Visually, the default graph tells the viewer, "Wow! The control group did four times as well as the Patient group!" while the modified one presents what I think is a more accurate picture: "The control group did a bit better than the patient group—maybe about 10-15 percent better."


Regards,

Barry

Oct 5, 2013 12:38 AM in response to Mickaelpopo

Ok, from this point, thanks both of you for the answers. 🙂 But now imagine I have something like this:


User uploaded file


Isn't there anyway of getting something like this,


User uploaded file


Without doing all the average calculations, plus, by adding some values that will not be involved into the calculation (here we set –9) and letting Numbers know that 1 = Control ; 2 = Patient, or F = Women ; M = Men ? (I used your method to set this graph 😉)

Oct 5, 2013 8:02 AM in response to Mickaelpopo

You do need to 'do all the average calculations,' as Numbers wil graph only the data you supply to the chart.


Excluding the -9 values from the calculations requires switching from AVERGEIF, which handles a single condition, to AVERAGEIFS, which allows specifying multiple conditions, all of which must be TRUE for the datum to be included in the calculation.


For the case described, the formula would be


=AVERAGEIFS(J,C,"=1",J,"<>-9")


If the formula is on a separate sheet, you will need to add the sheet name and table name to each cell reference in the formula:


=AVERAGEIFS(finale 1::tableau 1::J,finale 1::tableau 1::C,"=1",finale 1::tableau 1::J,"<>-9")


(Replace the commas in my version with semi colons to fit your localization.)


Regards,

Barry


Note: No time to test it this morning.

B

Oct 5, 2013 8:42 AM in response to Mickaelpopo

And to "let Numbers know 1= Control ; 2 = Patient ..." maybe try a lookup table together with the VLOOKUP() function something like this:


User uploaded file


My formula in column C is:



=AVERAGEIFS(Data :: B,Data :: C,B2,Data :: B,"<>-9")



The lookup lets you leave the original data table untouched and have your average calculations based on the group "code" in the original data rather than the more friendly group "name" that you want for the chart.


BTW, have you discovered you can quickly do sums/averages/etc on categories/groups in a data table by going to Table/Show Reorganize Panel? Don't think you can produce charts based on that, but it can be a convenient way to start making sense of the data.

Oct 5, 2013 1:13 PM in response to Mickaelpopo

Hey. Thank you both, helpful answers. I know I'm not chasing a ghost anymore and realize that Numbers is not a statistical software like SPSS. 😝 There's only a few options to add to get what I want. Moreover, Numbers calculate summations, averages, min & max on his own when selecting a column, it's foolish we can't use it and organize the axis as we'de like to.


@SGIII: Yes I know how to reorganize panel, thank you though. 😉


(P.S.: Apologies for my mistakes, as you know I'm not a native.)


Regards

Showing average results on a graphic with Numbers '09

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