Cubist
Well-known Member
- Joined
- Oct 5, 2023
- Messages
- 1,803
- Office Version
- 365
- Platform
- Windows
- MacOS
I"m having a mental block with this one. In column C, it indicates which index of the data (column F) needs to be changed. Change the current data to the value in column D.
Book1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | Count | Cummulative Count | Index to insert if only count is more than 1 | Value | Current | Expected | |||
2 | 3 | 3 | 3 | 10,000 | 30,000 | 30,000 | |||
3 | 1 | 4 | FALSE | 29,000 | 30,000 | 30,000 | |||
4 | 1 | 5 | FALSE | 5,000 | 30,000 | 10,000 | |||
5 | 4 | 9 | 9 | 20,000 | 30,000 | 30,000 | |||
6 | 1 | 10 | FALSE | 30,000 | 30,000 | 30,000 | |||
7 | 30,000 | 30,000 | |||||||
8 | 30,000 | 30,000 | |||||||
9 | 30,000 | 30,000 | |||||||
10 | 30,000 | 20,000 | |||||||
11 | 30,000 | 30,000 | |||||||
Sheet5 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2:B6 | B2 | =SCAN(0,A2:A6,LAMBDA(a,b,a+b)) |
C2:C6 | C2 | =IF(A2:A6>1,B2#) |
Dynamic array formulas. |