A | B | |
1 | 202211 | Month number |
2 | 202209 | Month number 2 = A1 - A2 |
3 | 202206 | Month number 5 = A1 - A3 |
4 | 202203 | Month number 8 = A1 - A4 |
5 | 202112 | Month number 11 = A1 - A5 |
6 | 202111 | Month number 12 =A1 - A6 |
7 | 202109 | Month number 15 = A1 - A7 |
8 | 202011 | Month number 24 =A1 - A8 |
Hi all
I have data like table above, Column (A) is number format as: YYYYMM
Now I want A1 deduct each row belove (A2:A8) then fill Result in Column (B)
For example:
A1 - A2, then B2 must be 2 months
A1 - A5, B5 = 11
A1 - A8, B2 = 24
Please help me to dot his by VBA exel, many thanks./.