Mar 14 2022 09:27 AM
Hello everyone,
I am searching for a way to do the following:
I have a table which looks like this:
project | part | check 1 | check 2 |
Project A | 1 | OK | NOK |
Project A | 2 | OK | OK |
Project A | 3 | OK | OK |
Project B | 1 | OK | OK |
Project B | 2 | OK | OK |
I want to show a table (on another sheet) which has the following result:
project |
Project B |
Because 'project B' is the only project with all checks on 'OK'
This sounds very easy, but i can't seem to find a solution.
Thank you all for your time,
Dieter
Mar 14 2022 10:13 AM
Solution=LET(e,UNIQUE(A2:A6),ok,COUNTIFS($A$2:$A$6,e,$C$2:$C$6,"OK",$D$2:$D$6,"OK"),project,COUNTIF($A$2:$A$6,e),result,FILTER(e,ok=project),result)
Maybe with this formula which seems to work in my sheet.
Mar 17 2022 05:46 AM
Mar 17 2022 06:02 AM
I can send you the .pdf with the original file however it's in german. I can use formulas such as FILTER, UNIQUE and LET in Excel online but to my knowledge i can't attach these files to my post.
Mar 17 2022 06:25 AM
Mar 17 2022 07:47 PM
Mar 18 2022 01:17 AM
Mar 18 2022 02:48 AM
I can't help feeling this looks somewhat complicated?
= LET(
NOKλ, LAMBDA(aProject, OR(FILTER(checks,project=aProject)="NOK")),
distinctProjects, UNIQUE(project),
incomplete, MAP(distinctProjects,NOKλ),
FILTER(distinctProjects, NOT(incomplete), "No complete projects")
)
The first Lambda function is defined to accept a single project, filters the checks and looks for "NOK".
UNIQUE returns a list of distinct projects
MAP runs through each distinct project and returns TRUE if it is incomplete (using NOKλ).
FILTER selects projects that of not incomplete (i.e. completed)
@Quadruple_Pawn Does your Excel read the file despite language differences?
Mar 18 2022 05:01 AM
The OR and NOT formulas are read and translated but the UNIQUE formula isn't read and translated.
However the whole LET formula can't be executed because i don't work with Office365.
Mar 18 2022 09:11 AM