Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
LLFigo
 
Posts: n/a
Default "Count If" 3 criterias are fulfilled

I have a file with data (e.g. age, sex, town) and would like to use the
"count if" function to see the results for all possible combinations (e.g.
20,male, NY or 40,female, LA).

The list is dynamic and thus changes all the time.

Thank you for your help
  #2   Report Post  
Posted to microsoft.public.excel.misc
SteveG
 
Posts: n/a
Default "Count If" 3 criterias are fulfilled


How are you identifying the age criteria? Is it the same regardless of
state? i.e. Males/Females 20 -30, 30-40, 40-50 etc.... or are there
specific ages you are looking for? 20,21,22,and so on. Do you have a
table containing the criteria to reference in a formula? How is your
data set up and how would you like it to look when you are done? Some
examples would be helpful.



Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=527577

  #3   Report Post  
Posted to microsoft.public.excel.misc
bpeltzer
 
Posts: n/a
Default "Count If" 3 criterias are fulfilled

countif only accpets one criterion. You could either create a helper column
that combines the criteria you need or use the sumproduct function:
=sumproduct(--(a$1:a$1000=20),--(b$1:b$1000="Male"),--(c$1:c$1000="NY"))
If you're not absolutely stuck on using functions to do this, you could also
create a pivot table. Select all the relevant columns, then Data Pivot
Table.... Drop age, sex and town into the row fields, then drop any column
in the data field (if necessary change the aggregate function to CountOf vs
SumOf)). Then Excel will create all the combinations for you. Only caveat
with Pivots is that they don't automatically update. When your data changes,
right-click in the Pivot table and select refresh.

"LLFigo" wrote:

I have a file with data (e.g. age, sex, town) and would like to use the
"count if" function to see the results for all possible combinations (e.g.
20,male, NY or 40,female, LA).

The list is dynamic and thus changes all the time.

Thank you for your help

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
Formula requiring two different criterias MJMP Excel Worksheet Functions 8 March 1st 05 10:13 PM
Multiple Data Validation Criterias MCorrea Excel Worksheet Functions 4 January 20th 05 07:17 PM


All times are GMT +1. The time now is 06:02 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"