Share via

Excel formula

Michael Glaspy 20 Reputation points
2026-03-24T21:42:48.7533333+00:00

Is there an excel formula which will automatically add .01 or .02 to a list of numbers that are duplicative?

Microsoft 365 and Office | Excel | For home | Windows

3 answers

Sort by: Most helpful
  1. IlirU 2,491 Reputation points Volunteer Moderator
    2026-03-27T09:05:29.6666667+00:00

    User's image

    Hi @Michael Glaspy,

    Use below formula and drag it down:

    =B2 + COUNTIF($B$2:B2, B2) / 100

    or use this dynamic formula (no need to drag it):

    =BYROW(B2:B12, LAMBDA(a, a + COUNTIF(B2:a, a) / 100))

    HTH

    IlirU

    Was this answer helpful?

    0 comments No comments

  2. Dana D 90 Reputation points
    2026-03-26T16:23:34.23+00:00

    My "guess" is that you want something simple like this? Not sure.

    User's image

    Was this answer helpful?


  3. AI answer

    2026-03-24T21:42:58.93+00:00

    Use a formula that counts duplicates and adds a small increment based on how many times the value has appeared so far.

    Assume the original numbers are in column A starting in A2. In B2 enter:

    =A2 + (COUNTIF($A$2:A2, A2)-1)/100
    

    Then fill the formula down.

    Explanation:

    • COUNTIF($A$2:A2, A2) counts how many times the value in A2 has appeared up to the current row.
    • The first occurrence gives 1 → (1-1)/100 = 0 → no change.
    • The second occurrence gives 2 → (2-1)/100 = 0.01 → adds 0.01.
    • The third occurrence gives 3 → (3-1)/100 = 0.02 → adds 0.02, and so on.

    This automatically appends .01, .02, .03, etc. to duplicates while leaving the first instance unchanged.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.