Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

subtotaling columns that change daily?

Status
Not open for further replies.

sscfa

MIS
Sep 11, 2007
4
US
How can I create a macro that after sorting and filtering data, allows me to subtotal a column that changes day to day?
 



Hi,

You don't need a macro to do this.

faq68-1331

Skip,

[glasses] When a group touring the Crest Toothpaste factory got caught in a large cooler, headlines read...
Tooth Company Freeze a Crowd! and
Many are Cold, but Few are Frozen![tongue]
 
Also think about a Pivot Table. You can keep a defined name, as Skip shows with his link, to keep this range dynamic. The only caveat of Pivot Tables and keeping a dynamic named range is you must use the Offset/CountA method and cannot use the Rept/BigNum method.

Dynamic Pivot Table source:

Finding last value with formula (thus able to make dynamic named range):

HTH

Regards,
Zack Barresse

Simplicity is the ultimate sophistication. What is a MS MVP? PODA
- Leonardo da Vinci
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top