#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Array formula


Can anybody please help?

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

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

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

Thanks

Clash:)


--
Clash
------------------------------------------------------------------------
Clash's Profile: http://www.excelforum.com/member.php...o&userid=18951
View this thread: http://www.excelforum.com/showthread...hreadid=572969

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Array formula

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

"Clash" wrote:


Can anybody please help?

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

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

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

Thanks

Clash:)


--
Clash
------------------------------------------------------------------------
Clash's Profile: http://www.excelforum.com/member.php...o&userid=18951
View this thread: http://www.excelforum.com/showthread...hreadid=572969


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Array formula


Toppers Wrote:
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

"Clash" wrote:


Can anybody please help?

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

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

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

Thanks

Clash:)


--
Clash





------------------------------------------------------------------------
Clash's Profile:

http://www.excelforum.com/member.php...o&userid=18951
View this thread:

http://www.excelforum.com/showthread...hreadid=572969



Cheers

Much appriciated.:)


--
Clash
------------------------------------------------------------------------
Clash's Profile: http://www.excelforum.com/member.php...o&userid=18951
View this thread: http://www.excelforum.com/showthread...hreadid=572969

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default Array formula

try this formula

=SUMPRODUCT((A2:A20<=13)*(B2:B20="f"))-SUMPRODUCT((A2:A20<9)*(B2:B20="f"))

modify to suiy you

"Clash" wrote in
message ...

Can anybody please help?

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

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

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

Thanks

Clash:)


--
Clash
------------------------------------------------------------------------
Clash's Profile:
http://www.excelforum.com/member.php...o&userid=18951
View this thread: http://www.excelforum.com/showthread...hreadid=572969



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array Formula Not Working with Range with Formulas [email protected] Excel Discussion (Misc queries) 4 February 1st 06 02:01 PM
Array formula returning wrong results TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 November 19th 05 10:29 AM
referencing the value of a cell containing an array formula KR Excel Worksheet Functions 4 July 5th 05 06:15 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 09:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"