find oldest value

JOEE1979

Active Member
Joined
Dec 18, 2022
Messages
292
Office Version
  1. 365
Platform
  1. Windows
How would I be able to write a formula to get oldest "FAIL"?

Cell Formulas
RangeFormula
P5:V5P5=E5
P6:V12P6=IF(AND($A$1>E$14,E6=0),"FAIL","")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
P6:V12Expression=AND(P6="FAIL",P$14<(TODAY()-60))textNO
P6:V12Expression=AND(P6="FAIL",P$14<(TODAY()-30))textNO
P6:V12Expression=AND(P6="FAIL",P$14>=(TODAY()-30))textNO
P5:V5,P14:V14,P26:V26,P83:V83,P102:V102,P135:V135,P145:V145Expression=($A$1>P5)textNO
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Do you mean something like =BYROW(P2:V8,LAMBDA(a,XLOOKUP("FAIL",a,$P$5:$V$11)))?
 
Upvote 0
The formula above should spill down for all rows within an array once you enter it into W5...
 
Upvote 0
The formula above should spill down for all rows within an array once you enter it into W5...
What if instead of having a function, I have a mane manager "qq"?
and I would like to find the oldest number greater than "0"

HOS.xlsm
EFGHIJKL
512-Apr-2419-Apr-2426-Apr-243-May-2410-May-2417-May-2424-May-24Oldest
60066000#N/A
74444446000
Sheet1
Cell Formulas
RangeFormula
E6:K7E6=qq
L6L6=BYROW(E6:K6,LAMBDA(a,XLOOKUP("6",a,E5:K5)))
 
Upvote 0
If it is true that 6 is the only value you are looking for, then just replace E6:K6 by qq - or are there any additional conditions?
 
Upvote 0
Solution
But which criteria are decisive for identifying the oldest date? I.e. is it if value = 6, or if value is not 0, or if value is < than or something else?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
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