Summing data in columns

E

ElGordo

I have data in letter form: M=male and F= female. I have tried SUMIF but cant
get a total of aal the "M"s or"F"s in a column.What am I doing wrong as the
help pages dont ma ke it clear?
 
D

David Biddulph

COUNTIF, not SUMIF

From help for SUMIF:
"Microsoft Excel provides additional functions that can be used to analyze
your data based on a condition. For example, to count the number of
occurrences of a string of text or a number within a range of cells, use the
COUNTIF function. To have a formula return one of two values based on a
condition, such as a sales bonus based on a specified sales amount, use the
IF function."
 
M

Ms-Exl-Learner

Use Countif instead of Sumif.

Hope that this is what you are looking for…

Assume that you are having the Gender details in A Column.

A COL
M
F
M
F
M
M
F
M

=COUNTIF(A:A,"M")
=COUNTIF(A:A,"F")

If this post helps, Click Yes!
 
Top