GreyFox8991
New Member
- Joined
- Jul 20, 2022
- Messages
- 23
- Office Version
- 2016
- Platform
- Windows
Greetings excel community,
I have some cells that contain a zero and I would like to replace the zero value with the value from the preceding row (the cell above). I saw a formula online which is as follows:=INDIRECT(ADDRESS(ROW()-1|COLUMN())). However, I would have to copy and paste this value multiple times in order to replace the zero values in the cells. Would anyone have a suggestion or an addition to the formula that might extrapolate this to other cells? A3 contains the formula i referenced earlier. This formula would have to be pasted into the next cell to replace the zero in order to retrieve the value from the cell above. Any insight would be greatly appreciated.
I have some cells that contain a zero and I would like to replace the zero value with the value from the preceding row (the cell above). I saw a formula online which is as follows:=INDIRECT(ADDRESS(ROW()-1|COLUMN())). However, I would have to copy and paste this value multiple times in order to replace the zero values in the cells. Would anyone have a suggestion or an addition to the formula that might extrapolate this to other cells? A3 contains the formula i referenced earlier. This formula would have to be pasted into the next cell to replace the zero in order to retrieve the value from the cell above. Any insight would be greatly appreciated.
Book2 | |||
---|---|---|---|
A | |||
2 | 23435357 | ||
3 | 23435357 | ||
4 | 23471373 | ||
5 | 0 | ||
6 | 0 | ||
7 | 23474577 | ||
8 | 0 | ||
9 | 23471728 | ||
10 | 23476975 | ||
11 | 0 | ||
12 | 23447346 | ||
13 | 23447460 | ||
14 | 0 | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A3 | A3 | =INDIRECT(ADDRESS(ROW()-1,COLUMN())) |