Eliminating particular numbers from a column help!

K

Katie

I have a column of subtotals, and need to eliminate all cells were the
subtotal is 1, and then calculate the mean and SD of the remaining subtotals
left in the column.

What is the best way to go about setting this up in a spreadsheet and what
formula do I use to get rid of the 1's?

Cheers,
Katie
 
J

Joe User

Katie said:
what formula do I use to get rid of the 1's?

Do you really want to "get rid" of the 1s literally in the subtotals
column -- i.e, they should not appear in the column -- or is it sufficient
to __exclude__ them from the mean and sd computation?

If the latter, then try the following array formulas:

=AVERAGE(IF(A1:A20<>1, A1:A20))

=STDEVP(IF(A1:A20<>1, A1:A20))

Note that an array formula is entered by pressing ctrl+shift+Enter instead
of just Enter. You should then see curly braces around the entire formula,
e.g. {=formula}. If you make a mistake, you can edit the cell by pressing
F2, then press ctrl+shift+Enter.


----- original message -----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top