Calculate Occurrence Number - Excel

前端 未结 3 1342
小鲜肉
小鲜肉 2021-01-28 18:12

I have simple problem, but I\'ve not be able to get an answer from searching. I require a column to calculate the number of the nth occurrence of a value. It\'s best explained i

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-28 18:55

    You can use the COUNTIF worksheet function, with a relative address.

    Eg. In cell B2, enter this formula:

    =COUNTIF(A$2:A2,A2)

    And then fill-down.

提交回复
热议问题