Hi,
I have data in sheet "Employee Data". In Column L i have gender and in column O I have Relation.
I wants to count the members relatio wise and gender wise and put the numbers in Sheet "Summary"
Example given in sheet "Example"
Hi,
I have data in sheet "Employee Data". In Column L i have gender and in column O I have Relation.
I wants to count the members relatio wise and gender wise and put the numbers in Sheet "Summary"
Example given in sheet "Example"
You cont need VBA for this (you posted in VBA forum)
B3=COUNTIFS('Employee Data'!$L:$L,Summary!B$2,'Employee Data'!$O:$O,Summary!$A3)
copied down and across as needed
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
This formula doesnt count Others i.e. Nephew, Brother and Sister on Others category
Because those categories do not exist in your table. If you add them to col A, and add my formula, then it will count those as well.
Saying my formula not counting "nephews", would be the same as saying it doesnt count grandmothers - it's not in the table.
If you want to lump all non-specific relations under Other, try this...
=COUNTIFS('Employee Data'!$L:$L,Summary!B$2)-(F10+F6)
I am looking for VBA.
Reason being is I have similar data in many format. SO that I can use same VBA for all types of by changing range
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks