I use a report which summarizes the data of over 100 departments. To make sure the departments balance I use sumif formulas two ways (once by job class and once by location). Simple subtration displays any variance between the two methods.
When I print this report, I would like to hide the unnecessary rows, one extra total for sumif and the variance, which should be zero.
I would like to employ a macro that searches for occurences of specific text and hides each row containint that text. The text, “Total By Job Class” or “Variance”, would only occur in cells in one column. The user would position the cell pointer to begin the macro, since the starting position in the worksheet may vary.
Is this possible and if so, can you demonstrate by example?