Subtraction a filtered list

tinkode

New Member
Joined
Oct 21, 2018
Messages
35
hello kings of excel i want Subtraction filtered list
the first number - the last number



EhwiOol.png


i have many filtered list so i can't use =sum(X1-X2) it will take many times
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Please try

=INDEX(L14:L260,MATCH(1,INDEX(SUBTOTAL(2,OFFSET(L13,ROW(L1:L260),)),),))-L260
 
Upvote 0
Re: formula for Subtraction for filtered list

is your filtered list a table or no?
 
Upvote 0
Re: formula for Subtraction for filtered list

are your numbers always in sequence order like they are in the example? Because if so you could probably use the below formula?

Code:
=SUBTOTAL(4,Table1[Numero])-SUBTOTAL(5,Table1[Numero])
 
Last edited:
Upvote 0
Please try again, note the Offset OFFSET(M13,ROW(M1:M260),))

Data start at M14

=INDEX(M14:M260,MATCH(1,INDEX(SUBTOTAL(2,OFFSET(M13,ROW(M1:M260),)),),))-INDEX(M14:M260,MATCH(1,INDEX(1/SUBTOTAL(2,OFFSET(M13,ROW(M1:M260),)),)))


=INDEX(M14:M260;EQUIV(1;INDEX(SOUS.TOTAL(2;DECALER(M13;LIGNE(M1:M260); )); ); ))-INDEX(M14:M260;EQUIV(1;INDEX(1/SOUS.TOTAL(2;DECALER(M13;LIGNE(M1:M260); )); )))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,248
Messages
6,123,877
Members
449,130
Latest member
lolasmith

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top