Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Morning, Can anyone help me, I'm trying to count the number of 18-21 y.o. on a spreadsheet. my spreadsheet has in column P, the age of each contact. So i'm trying to determine each of the age bands 18-21, 21-25 & 26+, is this a simply formula or something else. Cheers ![]() -- Clash ------------------------------------------------------------------------ Clash's Profile: http://www.excelforum.com/member.php...o&userid=18951 View this thread: http://www.excelforum.com/showthread...hreadid=506275 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this:
=SUMPRODUCT(--(P1:P100=18),--(P1:P100<=21)) HTH, Elkar "Clash" wrote: Morning, Can anyone help me, I'm trying to count the number of 18-21 y.o. on a spreadsheet. my spreadsheet has in column P, the age of each contact. So i'm trying to determine each of the age bands 18-21, 21-25 & 26+, is this a simply formula or something else. Cheers ![]() -- Clash ------------------------------------------------------------------------ Clash's Profile: http://www.excelforum.com/member.php...o&userid=18951 View this thread: http://www.excelforum.com/showthread...hreadid=506275 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Your ranges overlap, "1 is in the first and the second, but something like
=COUNTIF(P:P,"=18")-COUNTIF(P:P,"21") -- HTH Bob Phillips (remove nothere from the email address if mailing direct) "Clash" wrote in message ... Morning, Can anyone help me, I'm trying to count the number of 18-21 y.o. on a spreadsheet. my spreadsheet has in column P, the age of each contact. So i'm trying to determine each of the age bands 18-21, 21-25 & 26+, is this a simply formula or something else. Cheers ![]() -- Clash ------------------------------------------------------------------------ Clash's Profile: http://www.excelforum.com/member.php...o&userid=18951 View this thread: http://www.excelforum.com/showthread...hreadid=506275 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() cheers both, will try both. -- Clash ------------------------------------------------------------------------ Clash's Profile: http://www.excelforum.com/member.php...o&userid=18951 View this thread: http://www.excelforum.com/showthread...hreadid=506275 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
checking that cells have a value before the workbook will close | Excel Worksheet Functions | |||
Help with using range names in sum function | Excel Worksheet Functions | |||
How to Select a relative range with Using "Find" and Offset() | Excel Discussion (Misc queries) | |||
Can a formula check for a certain value in a range? | Excel Discussion (Misc queries) | |||
can a formula check for a certain value in a range? | Excel Discussion (Misc queries) |