First time poster
I hope you can help. I have data which is broken down per year for which I need to return a count against each unique ID but in which there may be multiple rows linked to that ID but I would like a unique count and in some cases a sum of and want to avoid duplicate counts. the data looks something like below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Year[/TD]
[TD]Unique ID[/TD]
[TD]Case No.[/TD]
[TD]Gender[/TD]
[TD]No. of Sales[/TD]
[TD]Total No. of Cases per unique ID[/TD]
[/TR]
[TR]
[TD]2012[/TD]
[TD]E542[/TD]
[TD]123[/TD]
[TD]Female[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]2012[/TD]
[TD]E542[/TD]
[TD]589[/TD]
[TD]Male[/TD]
[TD]1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]2012[/TD]
[TD]E542[/TD]
[TD]123[/TD]
[TD]Female[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]2013[/TD]
[TD]E588[/TD]
[TD]235[/TD]
[TD]Male[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]2013[/TD]
[TD]E588[/TD]
[TD]415[/TD]
[TD]Male[/TD]
[TD]1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]2013[/TD]
[TD]E588[/TD]
[TD]256[/TD]
[TD]Female[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
For e.g. I would like to count for 2012 how many females/males per unique ID (to avoid duplication in counting the same individuals more than once)
Or I may wish to sum how many sales per unique ID for each year.
I have tried all sorts of COUNT IF/S or SUM/IFs variations but cannot figure it out - any help would be gratefully appreciated.
thanks
Ali
I hope you can help. I have data which is broken down per year for which I need to return a count against each unique ID but in which there may be multiple rows linked to that ID but I would like a unique count and in some cases a sum of and want to avoid duplicate counts. the data looks something like below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Year[/TD]
[TD]Unique ID[/TD]
[TD]Case No.[/TD]
[TD]Gender[/TD]
[TD]No. of Sales[/TD]
[TD]Total No. of Cases per unique ID[/TD]
[/TR]
[TR]
[TD]2012[/TD]
[TD]E542[/TD]
[TD]123[/TD]
[TD]Female[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]2012[/TD]
[TD]E542[/TD]
[TD]589[/TD]
[TD]Male[/TD]
[TD]1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]2012[/TD]
[TD]E542[/TD]
[TD]123[/TD]
[TD]Female[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]2013[/TD]
[TD]E588[/TD]
[TD]235[/TD]
[TD]Male[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]2013[/TD]
[TD]E588[/TD]
[TD]415[/TD]
[TD]Male[/TD]
[TD]1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]2013[/TD]
[TD]E588[/TD]
[TD]256[/TD]
[TD]Female[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
For e.g. I would like to count for 2012 how many females/males per unique ID (to avoid duplication in counting the same individuals more than once)
Or I may wish to sum how many sales per unique ID for each year.
I have tried all sorts of COUNT IF/S or SUM/IFs variations but cannot figure it out - any help would be gratefully appreciated.
thanks
Ali