How to check for value in a specific week column with duplicate name rows?

Ckl43

New Member
Joined
Jun 14, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Friends,

I come to you in the hopes of finding a solution to a problem I consider rather complex - at least given my level of competence...

As seen in the sheet, I have duplicate rows being names of work-packages, and columns being weeks. For each work-package, and in a prioritized order, I want to check what its status is, which is given by the "worst" status. Thus: if any row for a work-package contains "Bad", the status is "Bad". If "Bad" is not found, but "OK" exists, then it is "OK". If neither "Bad" nor "OK" is found, it should be "Good". I tried to exemplify this in the "Desired overview".

I have toyed around with xlookups based on index/match, and tried to convert the but I am truly out too deep for my level. Can someone please help me create a functional formula? THANK YOU!

I have a t
1718360870150.png
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
is this what you need? i manually entered data into my workbook, so please change cell references in your own workbook.
240614练习.xlsx
ABCDEFGH
1Week 10Week 11Week 12Week 13Week 14Week 15
2AGoodBadBadBadBadGood
3ABadOKBadBadOKOK
4AGoodGoodGoodBadOKOK
5BGoodBadBadOKGoodOK
6BBadGoodBadOKBadGood
7
8
9Week 12
10ABadBad
11BBadBad
12
Sheet2
Cell Formulas
RangeFormula
E10:E11E10=LET(s,{"Bad";"OK";"Good"},XLOOKUP(0,0/FIND(s,CONCAT(IF((A$2:A$6=C10)*(B$1:G$1=D$9),B$2:G$6))),s))
 
Upvote 0
Hmm, I think in overview for D should be bad :

Book1
ABC
1Week 12
2Abad
3Abad
4Agood
5Bbad
6Bbad
7COK
8DOK
9Dbad
10Egood
11
12Week 12
13Abad
14Bbad
15COK
16Dbad
17Egood
Sheet1
Cell Formulas
RangeFormula
B13:B17B13=UNIQUE($A$2:$A$10)
C13:C17C13=CHOOSE(MAX(VLOOKUP(FILTER($B$2:$B$10,$A$2:$A$10=$B13),{"good",1;"OK",2;"bad",3},2,0)),"good","OK","bad")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,118
Members
453,021
Latest member
Justyna P

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