Hello. I have a question for which I' haven't yet found an answer. An example of my data:
<tbody>
[TD="bgcolor: #cacaca, align: center"]1[/TD]
[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD="align: right"]02/10/2014[/TD]
[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="align: right"]02/10/2014[/TD]
[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="align: right"]01/08/2015[/TD]
[TD="bgcolor: #cacaca, align: center"]5[/TD]
[TD="align: right"]02/10/2014[/TD]
[TD="bgcolor: #cacaca, align: center"]6[/TD]
[TD="align: right"]01/08/2015[/TD]
[TD="bgcolor: #cacaca, align: center"]7[/TD]
[TD="align: right"]03/10/2014[/TD]
[TD="bgcolor: #cacaca, align: center"]8[/TD]
[TD="align: right"]02/08/2015[/TD]
[TD="bgcolor: #cacaca, align: center"]9[/TD]
[TD="align: right"]03/10/2014[/TD]
[TD="bgcolor: #cacaca, align: center"]10[/TD]
[TD="align: right"]03/10/2014[/TD]
[TD="bgcolor: #cacaca, align: center"]11[/TD]
[TD="align: right"]07/09/2015[/TD]
[TD="bgcolor: #cacaca, align: center"]12[/TD]
[TD="align: right"]01/08/2015[/TD]
[TD="bgcolor: #cacaca, align: center"]13[/TD]
[TD="align: right"]01/08/2015[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
Basically, I work with data concerning insurance policies and I want to know how I can count how many companies have only had insurance in 2015 and not 2014. Looking at the above table, that should be companies E and F only so I would like the result to be 2. (my actual data is far more extensive of course).
Obviously, a company can have multiple policies (i.e. car insurance, home insurance, tax insurance etc) incepting in the same year so they might appear multiple times.
I have actually managed to count these by copying the companies in a different sheet, removing duplicates, doing 2 separate countifs for every company, one looking for policies incepting in 2014 and another looking for policies incepting in 2015. This way, I got what I needed.
But I need this to be workable for a complete excel beginner. Ideally, they would put their data in the sheet and there would be some formula in another sheet which would pull through the correct number. I could get away with a pivot/powerpivot as I can instruct the end user to just refresh the table after adding data. Problem is, I have no idea how to do a calculated field for such a count.
I am an excel intermediate so I could probably be able to implement something more complex and just show the end user the more simplistic aspects. I am ok with helper columns as I plan to make everything into a table so any formulas would automatically be applied to new lines.
The solution might be simple and right under my nose but I've been thinking about this for so long that I cannot see the forest for the trees. Any help would be appreciated.
Sinon
* | A | B | C |
Company | Policy Type | Start date | |
A | Home insurance | ||
A | Car insurance | ||
A | Tax insurance | ||
B | Car insurance | ||
B | Tax insurance | ||
C | Car insurance | ||
C | Tax insurance | ||
D | Car insurance | ||
D | Car insurance | ||
E | Car insurance | ||
F | Home insurance | ||
F | Car insurance |
<tbody>
[TD="bgcolor: #cacaca, align: center"]1[/TD]
[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD="align: right"]02/10/2014[/TD]
[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="align: right"]02/10/2014[/TD]
[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="align: right"]01/08/2015[/TD]
[TD="bgcolor: #cacaca, align: center"]5[/TD]
[TD="align: right"]02/10/2014[/TD]
[TD="bgcolor: #cacaca, align: center"]6[/TD]
[TD="align: right"]01/08/2015[/TD]
[TD="bgcolor: #cacaca, align: center"]7[/TD]
[TD="align: right"]03/10/2014[/TD]
[TD="bgcolor: #cacaca, align: center"]8[/TD]
[TD="align: right"]02/08/2015[/TD]
[TD="bgcolor: #cacaca, align: center"]9[/TD]
[TD="align: right"]03/10/2014[/TD]
[TD="bgcolor: #cacaca, align: center"]10[/TD]
[TD="align: right"]03/10/2014[/TD]
[TD="bgcolor: #cacaca, align: center"]11[/TD]
[TD="align: right"]07/09/2015[/TD]
[TD="bgcolor: #cacaca, align: center"]12[/TD]
[TD="align: right"]01/08/2015[/TD]
[TD="bgcolor: #cacaca, align: center"]13[/TD]
[TD="align: right"]01/08/2015[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
Basically, I work with data concerning insurance policies and I want to know how I can count how many companies have only had insurance in 2015 and not 2014. Looking at the above table, that should be companies E and F only so I would like the result to be 2. (my actual data is far more extensive of course).
Obviously, a company can have multiple policies (i.e. car insurance, home insurance, tax insurance etc) incepting in the same year so they might appear multiple times.
I have actually managed to count these by copying the companies in a different sheet, removing duplicates, doing 2 separate countifs for every company, one looking for policies incepting in 2014 and another looking for policies incepting in 2015. This way, I got what I needed.
But I need this to be workable for a complete excel beginner. Ideally, they would put their data in the sheet and there would be some formula in another sheet which would pull through the correct number. I could get away with a pivot/powerpivot as I can instruct the end user to just refresh the table after adding data. Problem is, I have no idea how to do a calculated field for such a count.
I am an excel intermediate so I could probably be able to implement something more complex and just show the end user the more simplistic aspects. I am ok with helper columns as I plan to make everything into a table so any formulas would automatically be applied to new lines.
The solution might be simple and right under my nose but I've been thinking about this for so long that I cannot see the forest for the trees. Any help would be appreciated.
Sinon