Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 104
Default Conditional age grouping

I was helped with something similar a little while ago and I now have another
similar problem but this is another step up in difficulty I think.

I need to establish how many people are in 5 age bands (the last being age
not provided). However, these totals are conditional on whether the value in
column a = "text1" or "text2" but column b < "text3". Column e lists
birthdates.

--
Thanks in advance as always,
MarkN
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Conditional age grouping

Hi Mark again

The below will check for 'text1' and 'text2' in ColA, '<text3' in ColC and
deduct the DOB year from current year and gives the count...

'The below check for the age group =30 and <=35

=SUMPRODUCT((ISNUMBER(MATCH(A1:A10,{"text1","text2 "},0)))*(B1:B10<"text3")*(YEAR(TODAY())-YEAR(E1:E10)=30)*
(YEAR(TODAY())-YEAR(E1:E10)<=35))

If this post helps click Yes
---------------
Jacob Skaria


"MarkN" wrote:

I was helped with something similar a little while ago and I now have another
similar problem but this is another step up in difficulty I think.

I need to establish how many people are in 5 age bands (the last being age
not provided). However, these totals are conditional on whether the value in
column a = "text1" or "text2" but column b < "text3". Column e lists
birthdates.

--
Thanks in advance as always,
MarkN

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 104
Default Conditional age grouping

Sorry for the delayed thanks but you know how it is. Worked perfectly.
--
Thanks,
MarkN


"Jacob Skaria" wrote:

Hi Mark again

The below will check for 'text1' and 'text2' in ColA, '<text3' in ColC and
deduct the DOB year from current year and gives the count...

'The below check for the age group =30 and <=35

=SUMPRODUCT((ISNUMBER(MATCH(A1:A10,{"text1","text2 "},0)))*(B1:B10<"text3")*(YEAR(TODAY())-YEAR(E1:E10)=30)*
(YEAR(TODAY())-YEAR(E1:E10)<=35))

If this post helps click Yes
---------------
Jacob Skaria


"MarkN" wrote:

I was helped with something similar a little while ago and I now have another
similar problem but this is another step up in difficulty I think.

I need to establish how many people are in 5 age bands (the last being age
not provided). However, these totals are conditional on whether the value in
column a = "text1" or "text2" but column b < "text3". Column e lists
birthdates.

--
Thanks in advance as always,
MarkN

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
To sum by grouping Dan Excel Discussion (Misc queries) 1 January 15th 09 01:51 AM
Average a group, where grouping is Conditional on other col.??? tommot82 Excel Discussion (Misc queries) 1 June 9th 06 11:41 AM
Grouping Kay Excel Discussion (Misc queries) 1 January 21st 06 01:24 PM
Grouping stuart.young Excel Discussion (Misc queries) 1 August 1st 05 12:56 PM
grouping MINAL ZUNKE New Users to Excel 4 June 29th 05 04:36 PM


All times are GMT +1. The time now is 12:24 AM.

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"