#1   Report Post  
Posted to microsoft.public.excel.misc
Clash
 
Posts: n/a
Default Age range


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   Report Post  
Posted to microsoft.public.excel.misc
Elkar
 
Posts: n/a
Default Age range

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   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Age range

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   Report Post  
Posted to microsoft.public.excel.misc
Clash
 
Posts: n/a
Default Age range


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
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
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
Help with using range names in sum function soteman2005 Excel Worksheet Functions 2 November 28th 05 04:43 PM
How to Select a relative range with Using "Find" and Offset() Dennis Excel Discussion (Misc queries) 7 July 27th 05 03:57 PM
Can a formula check for a certain value in a range? Lee IT Excel Discussion (Misc queries) 3 April 8th 05 07:36 AM
can a formula check for a certain value in a range? Lee IT Excel Discussion (Misc queries) 1 April 7th 05 04:31 PM


All times are GMT +1. The time now is 02:01 AM.

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

About Us

"It's about Microsoft Excel"