Excel:SUBTOTAL With SUMPRODUCT and Filter

Everyone knows what is the use of the SUB TOTAL in excel. SUB TOTAL execute a function by ignoring rows by filtering. But there you...



Everyone knows what is the use of the SUBTOTAL in excel.SUBTOTAL execute a function by ignoring rows by filtering.
But there you have limitations ,SUBTOTAL execute functions those listed only like 1-Average; 2-Count; 3-CountA; 4-Max; 5-Min,.etc as you seeing in the below picture.
If I want to use the SUMPRODUCT function with Subtotal , it is not in the list then how it is possible.

 We have a data sheet as shown in the below picture.


We want to know what is the total sales value of the each store while filtering it.
that is if I am filtering the City main Store then I want a Cell that shows the total sales value of City Main sore.If I Filter Sub store Delhi then the same cell should show total sales value of Sub store Delhi

We have two methods to solve this situation.


 Method-1:Use PRODUCT and SUBTOTAL Separately

1.Insert a Column near to Rate Column ,Named Value
2.Find Value of each Item as shown in Picture:



3.Use SUBTOTAL function in "H3" Cell.   =SUBTOTAL(9,H5:H33)


4.Now Apply Filter and Watch the Change on the Total Sales.



 Showing total value of Sub Store_Delhi Only



  Showing total value of Sub Store_Delhi Only & Sub Store_Mumbai Only



Showing total value of City Main Store Only

If you remove filter you can get Total sales value of all store
you can use filter in Item also,that is you can find total sales of Pen,Bag etc separately
not only that you can use multiple filter also, that is you can easily find the total Sales of Pen in City Main Store like that.

 The above mentioned method is enough to fulfill our requirement,But if we don't like to insert Value Column in our Data Sheet or in other words,we dont have permission to insert a column in our data base then what will be the solution.Don't worry ,go through method -2

 Method-2:Use SUMPRODUCT and SUBTOTAL

 1.Just Place the formula in Cell "G3"  =SUMPRODUCT(F5:F33,SUBTOTAL(9,OFFSET(G5:G33,ROW(G5:G33)-MIN(ROW(G5:G33)),0,1)))

 Copy and paste the above formula in the cell and just edit the range as you wish.

 

 

 2.Now Apply the filter

 Showing total value of City Main Store Only



 Showing total value of Sub Store_Delhi Only




   Showing total value of Sub Store_Delhi Only & Sub Store_Mumbai Only


 

 Showing total value of Bag Item Only




If you remove filter you can get Total sales value of all store
you can use filter in Item also,that is you can find total sales of Pen,Bag etc separately
not only that you can use multiple filter also, that is you can easily find the total Sales of Pen in City Main Store like that.

 The above mentioned method is enough to fulfill our requirement,But if we don't like to insert Value Column in our Data Sheet or in other words,we dont have permission to insert a column in our data base then what will be the solution.Don't worry ,go through method -2



Related

Angle Grinding machine Safety

When we talk about the safety of angle grinding machines.  The first and foremost concern is the possible cracking and subsequent breakdown of the grinding wheel.This is the one of the major reas...

Vodafone Orissa Network Crashed | Vodafone Odisha Network Crashed

Dear viewers are you a Vodafone post paid customer then definitely you are facing some problem with your internet service 4G/3G and 2G service may be with your audio calling service also. If...

Excel ACOS Function

Arccosine The Arccosine is the inverse of the cosine. Therefore, for the simple right-angled triangle below, the arccosine of the adjacent side, a, divided by the hypotenuse, h, is equal to th...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

Hot in weekRecentComments

Recent

MCQ Quiz body { font-family: 'Inter', sans-serif; background-color: #f3f4f6; } .container { max-width: 800px...

RLI-CLI ADIS-MCQ Practice Forms - Semester- 2

* { box-sizing: border-box; } #searchInput { background-image: url('/css/searchicon.png'); background-position: 10px 10px; background-repeat: no-repeat; width: 100%; fo...

Certificate Varification

Verify Certificate body { font-family: Arial, sans-serif; padding: 20px; background: #f2f2f2; } .form-container { background: white; padding: 20px; max-width: 500px; margin: auto...

Appreciation Certificates

Certificate Generator body { font-family: Arial, sans-serif; padding: 20px; text-align: center; } input, button { padding: 10px; margin: 1...

RLI-CLI ADIS-MCQ Practice Forms - Semester- 1

* { box-sizing: border-box; } #searchInput { background-image: url('/css/searchicon.png'); background-position: 10px 10px; background-repeat: no-repeat; width: 100%; fo...

Comments

Anonymous:

Very nice app for safety related apps.. expecting more stickers from this.. download this .it is really useful

Connect Us

item