Link to home
Start Free TrialLog in
Avatar of Ashraf Noman
Ashraf Noman

asked on

Sumif formula should work according to fillter

I want to use subtotal with sum if conditions. I mean to say when I should filter my sumif should change accordingly.
Avatar of Brian B
Brian B
Flag of Canada image

Filters just hide rows. That won't change the results of a formula which works on a range.
Avatar of Ashraf Noman
Ashraf Noman

ASKER

you mean formula will not work. For your reference I attached the excel. could you please check and revert be in same excel. thanks.
Subtotal-and-sumif.xlsx
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you very much.  could you please give me the formula for D column also.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SUBTOTAL does not include values from rows hidden by a filter so just applying the filter WILL change the result of the SUBTOTAL.

Rows that are hidden by physically hiding the row or collapsing a group will still affect the result.
Ignore my comment, although correct I hadn't looked at the file and it is not valid.

However, looks like you can achieve what you want with a Pivot Table.

See attached. On Pivot sheet, use dropdown in B1 to select the Retail Environment on which to filter.
Subtotal-and-sumif.xlsx
@Rgonzo1971 thanks dear.
@Rob Henson..... thanks for your reply but I already know this way .  Please have a look on @ Rgonzo1971 comment which help me my requirements.
Solutions according to author's comment