I got it to work based on you example. Some how I had a value set in the first fx field and it just kept counting the total number of repeating fields. I copied and pasted the formula into the 2nd, 3rd and 4th fields and changed them to match the different criteria. They worked right. I then deleted the 1st field entirely ...