Chris The Rock
Active Member
- Joined
- Feb 24, 2002
- Messages
- 287
Setup:
I've got 31 days worth of data in rows 4 through 33, and a Totals Row in row 34. Trows that correspond to days that have not occurred yet are hidden. Each morning, I unhide a new row and data goes into each of the columns. As a result of this, the Totals row changes.
Question:
What I want to do is this: I would like the Totals line to perform functions ONLY on the visible rows. For example, if Rows 6 - 33 are hidden, I'd like the TOTALS row (row 34) to perform its functions (SUM, AVERAGE, etc) on ONLY ROWS 4 and 5. Likewise, if all the rows between 4 and 33 are visible, it should perform functions on ALL the rows.
How can I accomplish this? My first thought is to establish some sort of TRUE / FALSE variable for each row that tells whether the row is hidden or not. Then, I could use SUMIF-style formulas. But, alas, I don't know how to do this, or even if it will work or not.
I've got 31 days worth of data in rows 4 through 33, and a Totals Row in row 34. Trows that correspond to days that have not occurred yet are hidden. Each morning, I unhide a new row and data goes into each of the columns. As a result of this, the Totals row changes.
Question:
What I want to do is this: I would like the Totals line to perform functions ONLY on the visible rows. For example, if Rows 6 - 33 are hidden, I'd like the TOTALS row (row 34) to perform its functions (SUM, AVERAGE, etc) on ONLY ROWS 4 and 5. Likewise, if all the rows between 4 and 33 are visible, it should perform functions on ALL the rows.
How can I accomplish this? My first thought is to establish some sort of TRUE / FALSE variable for each row that tells whether the row is hidden or not. Then, I could use SUMIF-style formulas. But, alas, I don't know how to do this, or even if it will work or not.