Yamasaki450
Board Regular
- Joined
- Oct 22, 2021
- Messages
- 71
- Office Version
- 2021
- Platform
- Windows
Hi everyone...
I would like to increase all numbers in range B2:N3 by one. Like shown on screenshot.
Is anyone able to write VBA code for this? I already tried this with formula bellow but it only works on positive numbers and not on negatives. My range is of data is quite long in some cases and i need to drag formula across the whole range every time... so VBA code would be much easier...
Or maybe there is another way to do this?
Formula i tried
I would like to increase all numbers in range B2:N3 by one. Like shown on screenshot.
Is anyone able to write VBA code for this? I already tried this with formula bellow but it only works on positive numbers and not on negatives. My range is of data is quite long in some cases and i need to drag formula across the whole range every time... so VBA code would be much easier...
Or maybe there is another way to do this?
Formula i tried
Excel Formula:
=TEXTJOIN("-",,FILTERXML("<k><m>"&SUBSTITUTE(A4,"-","</m><m>")&"</m></k>","//m")+1)