Summing visible cells in excel VBA -
i trying sum set of visible cells in data sheet using formula:
=sumproduct(subtotal(109,offset(c2:c6,row(c2:c6)-min(row(c2:c6)),,1,1))*(a2:a6="peter")*(b2:b6=201104))
due fact of dashboard having huge end dataset (170k), dashboard freezes when use formula (i have use on every table want display on front end).
is there way optimize this? or perhaps faster method using index , match.
it works if copy data sheet. enable new pivot table columns. thus, when data filtered in data sheet, copied sheet contain filtered values.
the pivot table obtain copied data (i.e., filtered data). once complete, need add line of code in vba :
worksheets("summary").pivottables("summary_view").pivotcache.refresh
and automatically updates pivot table. hence, when filter data in sheet using listbox, pivot automatically gets updated
Comments
Post a Comment