Array formula

C

Clash

Can anybody please help?

I'm trying to find out the following, How many 09-13 year olds enjo
Football.

The spreadsheet is set up as column A, DOB. Column B formula to wor
out Age in years, what sport you enjoy? in which there are varyin
answers.

I can do a short array eg Gender & Sport, but because of the ag
catergories it has completely foxed me.

Thanks

Clash:
 
T

Toppers

Try something like:

=SUMPRODUCT(--(B1:B100)>=9),--(B1:B100)<=13),--(C1:C100="Football"),--(D1:D100="Male"))

Change ranges/references to your requirements. You can change the literals
to cells containing the literals/numbers

=SUMPRODUCT(--(B1:B100)>=X1),--(B1:B100)<=X2),--(C1:C100=X3),--(D1:D100=X4))

X1=9, X2=13 etc

Note SUMPRODUCT does not allow full columns i.e. B:B is invalid, and ranges
must be same dimensions.

HTH
 
C

Clash

Toppers said:
Try something like:

=SUMPRODUCT(--(B1:B100)>=9),--(B1:B100)<=13),--(C1:C100="Football"),--(D1:D100="Male"))

Change ranges/references to your requirements. You can change the
literals
to cells containing the literals/numbers

=SUMPRODUCT(--(B1:B100)>=X1),--(B1:B100)<=X2),--(C1:C100=X3),--(D1:D100=X4))

X1=9, X2=13 etc

Note SUMPRODUCT does not allow full columns i.e. B:B is invalid, and
ranges
must be same dimensions.

HTH
[/QUOTE]

Cheers

Much appriciated.:)
 
Top