I'm looking to generate an ID for each Employee in Column B to be used as a reference in the rest of my spread sheet. I was able to use COUNTIF for those that just worked across the one Area using the following formula:
=IF(COUNTIF($B$2:B3,B3)=1,A2+1,A2)
But I'm a bit baffled for those that work across more than one Area. I think I should be able to use COUNTIFS, but can't quite get what I'm after.
I've uploaded a shortened version of my file. The shaded data in the ID column (A) is the result I am looking for.
It's sorted on Date and I'd really like to keep it that way as I need to calculate an allowance based on the chronological order in which they worked up to a weekly cap, but I could probably work around this if I have to.
Sorry if I haven't explained that well enough.
Thanks in advance.
=IF(COUNTIF($B$2:B3,B3)=1,A2+1,A2)
But I'm a bit baffled for those that work across more than one Area. I think I should be able to use COUNTIFS, but can't quite get what I'm after.
I've uploaded a shortened version of my file. The shaded data in the ID column (A) is the result I am looking for.
It's sorted on Date and I'd really like to keep it that way as I need to calculate an allowance based on the chronological order in which they worked up to a weekly cap, but I could probably work around this if I have to.
Sorry if I haven't explained that well enough.
Thanks in advance.