0
You can achieve this with only 3 SE functions.
Place the following function in the cell B2
=SE(A2=A1;SE(ÉNÚM(B1);B1;1);SE(ÉNÚM(B1);B1+1;1))
Explanation of logic:
- The first SE will make the check if the cell that 1 house on the left is equal to the cell that is 1 house on the left and 1 on the top (In the case of B2 the comparison would be made in A2 and A1);
- If true, then we enter the second SE function, it checks if the cell above the function has a numerical value, if YES, then the number is duplicated if the number 1 is not placed.
- If false, then we enter the third SE function, it will also check if the cell above the function has a numerical value, if YES, then the number is incremented to 1, if the number 1 is not placed.
This is Stackoverflow in Portuguese. Please ask questions in Portuguese :)
– WhoisMatt
You’re right, it’s the habit. Corrected. Thank you
– Duarte Miranda
No problem. Good luck!
– WhoisMatt