Ah, those are in 'columns' not rows.
Subtotal won't work. I actually can't imagine any formula that would.
Is there anything common about which cells should be included?
You said you hide them with VBA, can you show that code?
What is the criteria that is used to hide/unhide a column?
That can likely be used in a sumif formula.
Bookmarks