Bug on dynamic array Filter ?

hnd12000

New Member
Joined
Feb 10, 2019
Messages
22
Office Version
  1. 365
Platform
  1. Windows
I have this table where I'm trying to filter all non closed projects numbers.
So, I use a filter keeping only the "Current status" I want:
Active
Clarification
On Hold
To initiate
Closing

Despite this, there is still 1 CLOSED that appears

I tried another way having a filter returning all "Current status" except "CLOSED" and yet the same project appears despite being obviously CLOSED.
The data comes from a CSV file generated by another system, so I'm fairly confident that there are no typos in Current status

bug on filter.xlsx
ABCDEFGHIJKLMN
1NumberCurrent StatusPEP1010547RCLOSEDCLOSEDPEP1010547RPEP0037780RRejectedRejected
2PEP0037780RRejectedPEP0633992RActiveActivePEP1010547RCLOSEDCLOSEDPEP1010547R
3PEP1010547RCLOSEDPEP1019941RActive0PEP1032806RRejectedClosing PCM
4PEP1010547RClosingPEP1008157RActivePEP1020787RClosing PCMActive
5PEP0653514RCLOSEDPEP1002444RActivePEP0633992RActiveCLOSED in PCE
6PEP0654553RCLOSEDPEP1007660RActivePEP1019941RActive0
7PEP1008761RCLOSEDPEP1007781RActivePEP1008157RActive
8PEP1032806RRejectedPEP1036288RActivePEP1002444RActive
9PEP1020787RClosing PCMPEP0655221RActivePEP1007660RActive
10PEP0633992RActivePEP1007781RActive
11PEP1019941RActivePEP1034407RClosing PCM
12PEP1008157RActivePEP1036288RActive
13PEP1002444RActivePEP0344216RCLOSED in PCE
14PEP1007660RActivePEP0655221RActive
15PEP1007781RActive
16PEP0408504RCLOSED
17PEP1034407RClosing PCM
18PEP1036288RActive
19PEP0344216RCLOSED in PCE
20PEP0658133RCLOSED
21PEP0655221RActive
22PEP0653133RCLOSED
Database Table
Cell Formulas
RangeFormula
D1:D9D1=FILTER(Database[Number],(Database[Current Status]="Active")+(Database[Current Status]="Clarification")+(Database[Current Status]="On Hold")+(Database[Current Status]="To intiate")+(Database[Current Status]="Closing"))
G1:G3,M1:M6G1=UNIQUE(E:E)
H1,N2H1=FILTER(D:D,E:E=G1)
J1:J14J1=FILTER(Database[Number],(Database[Current Status]<>"CLOSED"))
E1:E9,K1:K14E1=XLOOKUP(D1,Database[Number],Database[Current Status])
Dynamic array formulas.


it works for other "CLOSED" (the original database has more than 2500 data), all return correctly except for PEP1010547R
 
Last edited:

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
You issue is not with the filter function except but with your XLookup in the next column.
The filter function is returning the "Closing" line for "PEP1010547R" but the XLookup is returning the status of the 1st occurence of "PEP1010547R" which says closed.

Why don't you just get the filter function to return both columns in one go ?
Rich (BB code):
=FILTER(Database,(Database[Current Status]="Active")+(Database[Current Status]="Clarification")+(Database[Current Status]="On Hold")+(Database[Current Status]="To intiate")+(Database[Current Status]="Closing"))
 
Upvote 0

Forum statistics

Threads
1,223,851
Messages
6,175,009
Members
452,600
Latest member
nicoCrous75

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