I needed to perform some math on filtered columns in Excel. To do that I needed to use the SUBTOTAL function.
1) Counting how many items in a filtered column
=SUBTOTAL(3,A3:A999999)
or
=CONCAT("Num Sites: ",SUBTOTAL(3,A3:A999999))
2) Adding values in a filtered column. I also needed to convert GB to TB so I needed to do additional math.
=ROUND(SUBTOTAL(109,F3:F99999)/1024,3)
or
=CONCAT(ROUND(SUBTOTAL(109,F3:F99999)/1024,3)," TB Used")
=CONCAT(ROUND(SUBTOTAL(109,F3:F99999)/1024,3)," TB Used")
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.