Dear all,
I have the following data set and I am trying to apply the values for the same ID if the cell is 0. This happens across all my dataset but just wanted to see if this case works so that then I can apply it to all.
| ID | Charge |
| 15870018633147 | 0 |
| 15870018633147 | 0 |
| 15870018633147 | 0 |
| 15870018633147 | 0 |
| 15870018633147 | 3816 |
| 15870018633147 | 3816 |
| 15870018633147 | 3816 |
| 15870018633147 | 3816 |
| 15870018633147 | 3816 |
| 15870018633147 | 3816 |
Pretty much I want the same charge across all rows, as these have more columns that make them not "unique".
I did the following multi-row formula but am getting something wrong:
IF [Row-1:ID] = [ID] AND [Charge] = 0
THEN [Row-1:Charge]
ELSE [Charge]
ENDIF
Maybe there is a simpler way to do this, but I have the tendency to overcomplicate things.
Thank you all in advance for your time and assistance!
Edit: I cannot use:
[ROW+1:ID]
as it would grab the charge for a different ID.
Best,
Juan1