MrRajKumar
Active Member
- Joined
- Jan 29, 2008
- Messages
- 291
- Office Version
- 365
- Platform
- Windows
Hi,
The following are the data in A1:A5
In B1:B5, I would like to get their difference in spill format. If we do this manually, it will be;
B1: =A1
B2: =A2-A1
B3: =A3-A2
B4: =A4-A3
B5: =A5-A4
So the final result should be
2
1
3
2
12
I tried this formula, but doesn't work.
=SCAN(0,A1:A5,LAMBDA(x,y,y-x))
The following are the data in A1:A5
2 |
3 |
6 |
8 |
20 |
In B1:B5, I would like to get their difference in spill format. If we do this manually, it will be;
B1: =A1
B2: =A2-A1
B3: =A3-A2
B4: =A4-A3
B5: =A5-A4
So the final result should be
2
1
3
2
12
I tried this formula, but doesn't work.
=SCAN(0,A1:A5,LAMBDA(x,y,y-x))