![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Apr 2002
Location: Arkansas
Posts: 157
|
I'm trying to subtotal the values in a column (e.g. column A), based on what is filtered in column B (weekly total), and/or column C (monthly totals). For example, if week 13 is selected using the autofilter, it will calculate what is filtered and produce a weekly total based only on what is filtered. If I filter "all", it will add all of that column, and update monthly total as well. Can I do this without a macro? I'd like to know the best way to do this with and without a macro. The formula I have now doesn't calculate correctly when I filter a specific week.
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Allentown, PA
Posts: 2,510
|
Perhaps you just need a sumif?
__________________
~Anne Troy |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Apr 2002
Location: Arkansas
Posts: 157
|
I tried a sumif, but can't get it to work if I filter for only 1 week. Any ideas?
|
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
If you want to, post 10 rows of your data you're autofiltering: Activate an empty cell, type =, select 10 rows of data including the labels, hit F9, Copy what you see, and post the copied bit here in an follow-up posting. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|