SteveOranjin
Board Regular
- Joined
- Dec 18, 2017
- Messages
- 170
Hello,
The below formula is designed to count the number of columns there are on a different sheet. There is a problem with it though, and that is if I delete a column/row then the ref errors out on me.
How do I reference a row/column so even if I delete a row/column within its range it will still work?
The below formula is designed to count the number of columns there are on a different sheet. There is a problem with it though, and that is if I delete a column/row then the ref errors out on me.
How do I reference a row/column so even if I delete a row/column within its range it will still work?
Code:
=IF(COUNTA('Data Sheet'!$1:$1)=0,"No Data In Sheet",(COUNTA('Data Sheet'!$1:$1)))