Hello!
I have a spreadsheet with data in columns A & B. Row 6 is my header row with additional headers (other than A & B) out to Column R. the data down A & B goes to row 20. The number of Columns (other than A & B) and the number of rows (Besides 6) will vary from sheet to sheet. The final Column is a total column,
I am trying to figure out how to do the following:
1. Find last row
2. Find Last Column
3. Set a range for A6:<last column <(offset(0,-1) to leave the total column blank>, last row <(offset(1,0) to leave the header row untouched.>
4. Enter 0 into all empty cells in the above range except for the cells in columns A & B.
5. Enter values for the now only empty cells in my total (Last Column) column.
I have the following, but it only puts 0 in the last row all the way to last column but not in any of the rows above last row to row 6 (headers).
note comments contain code that I have "turned off" or re-written while trying to figure out the issue.
Thanks
Rich
Solved it myself lol using a for each cell in rng
wow struggled for a couple days and it was so simple.
Rich
I have a spreadsheet with data in columns A & B. Row 6 is my header row with additional headers (other than A & B) out to Column R. the data down A & B goes to row 20. The number of Columns (other than A & B) and the number of rows (Besides 6) will vary from sheet to sheet. The final Column is a total column,
I am trying to figure out how to do the following:
1. Find last row
2. Find Last Column
3. Set a range for A6:<last column <(offset(0,-1) to leave the total column blank>, last row <(offset(1,0) to leave the header row untouched.>
4. Enter 0 into all empty cells in the above range except for the cells in columns A & B.
5. Enter values for the now only empty cells in my total (Last Column) column.
I have the following, but it only puts 0 in the last row all the way to last column but not in any of the rows above last row to row 6 (headers).
note comments contain code that I have "turned off" or re-written while trying to figure out the issue.
Thanks
Rich
Solved it myself lol using a for each cell in rng
wow struggled for a couple days and it was so simple.
Rich
Last edited: