filtering for new and expired deals

daveyc18

Well-known Member
Joined
Feb 11, 2013
Messages
708
Office Version
  1. 365
  2. 2010

here's my current sheet but there must be a better way to do this

I don't like it right now because if I, say, try to filter for "expired deals", it'll also filter the first three columns abc ...

ideal scenario is the sheet displays both only expired and new deals
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
In office 365 - try something like this:

SAMPLe DATA (2) (version 1).xlsb
ABCDEFGHIJ
1ExtractDateTradeIDNew DealsExtractDateTradeIDExpired DealsTypeTradeID
27-9-2023SAD677SAD6776-9-2023SAD677SAD677New DealSJR117
37-9-2023SAF785SAF7856-9-2023SAF785SAF785New DealSJR124
47-9-2023SAF789SAF7896-9-2023SAF789SAF789New DealSJR139
57-9-2023SAF794SAF7946-9-2023SAF794SAF794New DealSJR204
67-9-2023SAF797SAF7976-9-2023SAF797SAF797New DealSJR230
77-9-2023SAF800SAF8006-9-2023SAF800SAF800New DealSJR233
87-9-2023SAK489SAK4896-9-2023SAK489SAK489Expired DealSHR493
97-9-2023SAM545SAM5456-9-2023SAM545SAM545Expired DealSID833
107-9-2023SAO357SAO3576-9-2023SAO357SAO357Expired DealSII917
117-9-2023SAQ008SAQ0086-9-2023SAQ008SAQ008Expired DealSIJ206
New, Matured
Cell Formulas
RangeFormula
I2:J11I2=LET(previous,FILTER(Previous!B:B,Previous!B:B<>""),current,FILTER(Current!B:B,Current!B:B<>""),stack1,UNIQUE(VSTACK(current,previous),FALSE),check,SWITCH(TRUE(),(ISNUMBER(MATCH(stack1,current,0))+ISERROR(MATCH(stack1,previous,0)))=2,"New Deal",(ISERROR(MATCH(stack1,current,0))+ISNUMBER(MATCH(stack1,previous,0)))=2,"Expired Deal","AA"),stack2,HSTACK(check,stack1),FILTER(stack2,check<>"AA"))
C2:C11C2=XLOOKUP(B2,Previous!B:B,Previous!B:B,"NEW DEAL")
G2:G11G2=XLOOKUP(F2,B:B,B:B,"EXPIRED")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,336
Messages
6,124,338
Members
449,155
Latest member
ravioli44

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