kevinh2320
Board Regular
- Joined
- May 13, 2016
- Messages
- 61
I need help with an if/loop statement. I have data in my spreadsheet all of which is in column A. What I need to do is loop through all rows in column A searching for cells that contain the value of 50. If the cell below is more or less than 50 than I need to insert a row and set that cells value to 0. I need to loop through all cells in column A until the end repeating this action until complete.
Below is an example of the data that could be in my spreadsheet. In this particular example there is only one occurrence (highlighted in red) where I'd need a row inserted below that value of 50 and the new cell set to the value of 0. Appreciate any help!
<tbody>
</tbody>
Below is an example of the data that could be in my spreadsheet. In this particular example there is only one occurrence (highlighted in red) where I'd need a row inserted below that value of 50 and the new cell set to the value of 0. Appreciate any help!
1 |
23 |
2016 |
2 |
15 |
2016 |
196 |
176 |
50 |
2 |
20 |
2016 |
3 |
15 |
2016 |
196 |
196 |
50 |
50 |
3 |
19 |
2016 |
4 |
15 |
2016 |
196 |
196 |
50 |
50 |
4 |
30 |
2016 |
5 |
15 |
2016 |
196 |
196 |
50 |
50 |
5 |
28 |
2016 |
6 |
15 |
2016 |
196 |
196 |
50 |
50 |
6 |
25 |
2016 |
7 |
15 |
2016 |
196 |
196 |
50 |
50 |
7 |
23 |
2016 |
8 |
15 |
2016 |
196 |
196 |
50 |
50 |
8 |
20 |
2016 |
9 |
15 |
2016 |
196 |
196 |
50 |
50 |
<tbody>
</tbody>