I know of several approaches using a macro (VBA) to show/hide columns and rows in Excel, but I cannot figure out or find a way to do this using either a formula or conditional formatting. Of particular interest is Excel 2007 – but I’d be curious to know if someone has managed to do it in any version of Excel.
For those who want background, I have a spread of data with dates across the top and labels down the first column. I would like to specify a date window (on another sheet) as two cells with drop down dates (months) which would then show/hide the appropriate columns on the data sheet.
This isn’t an answer to your question directly (I strongly doubt there is one), but if you organised your data using a data table, making data go downwards rather than horizontally like a simple OLAP cube, you could probably add a criteria column that checks if the data points are between your two thresholds, and then organise your view in a pivot table.
Combining lists and tables like this is really powerful if you don’t like VBA, but VBA really is the solution for this sort of stuff unfortunately.