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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,214,641
Messages
6,120,694
Members
448,979
Latest member
DET4492

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