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

Tricks 2337295267038129457

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

ADIS-MCQ Practice Forms

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

Smile Card

Smile Card Name of Staff/Su...

Welding Machine Daily Inspection or Daily Check

Welding machine is an important power tool we are using in construction, manufacturing and maintenance sites.The machine we are going to use in the site may newly purchased or it is transferred to thi...

What is Health ?

Health can be simply defined as the absence of physical and psychological disease.But to really accomplish this three important things necessary good health. 1. Mental 2. Social3. Physical.&...

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...

Comments

Anonymous:

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

Connect Us

item