Thank, yes sorry about that, I wasn't sure if it was possible or not which is why I just used generic words. I tried the code you provided above but it is counting the line items in order rather than how many instances there are. These are the fields I have below and this is how I want it to...