OnlyOffice table

Hello!
How can I change the formula so that all numbers located in certain cells (A2, A6, A7, A9, A10, A12) increase by one, provided that there are empty cells between them?
A2 - 3; A6 - 6; A8 - 7; A10 - 11; A12 - 15

Hi @Nikita18 :handshake:

If there’s already a formula in use that needs modification, please provide the current formula.