Just wondering what's going on, because my formula is giving me two different results depending on where it's located. I'll add some cells and some screen shots. Just not sure why it's working for some cells and not for others. I assumed HLOOKUP as a TRUE position gave me the last match in a row. Please see below.
First where it's wrong;
As you can see, it's not picking up the last date for whatever reason. But later down the sheet I get;
From;
First where it's wrong;
Cheat Sheet.xlsx | ||||||||
---|---|---|---|---|---|---|---|---|
AO | AP | AQ | AR | AS | AT | |||
88 | AL | AL | AL | AL | 16/06/2022 | |||
89 | AL | AL | AL | D | 16/06/2022 | |||
Roster Dump |
Cell Formulas | ||
---|---|---|
Range | Formula | |
AO88:AR89 | AO88 | =IFERROR(INDEX('F:\Data\2579\13 Progress Reporting Programming\05 Wkly Rpts\Reference Files\[EMPLOYEE ROSTER.xlsx]ROSTER'!$N$5:$AWG$250,MATCH($A88,'F:\Data\2579\13 Progress Reporting Programming\05 Wkly Rpts\Reference Files\[EMPLOYEE ROSTER.xlsx]ROSTER'!$E$5:$E$250,0),MATCH(AO$2,'F:\Data\2579\13 Progress Reporting Programming\05 Wkly Rpts\Reference Files\[EMPLOYEE ROSTER.xlsx]ROSTER'!$3:$3,0)),"") |
AS88:AS89 | AS88 | =IFERROR(IF(B88="","",INDEX($C$2:$AR$2,MATCH(HLOOKUP("AL",C88:AR88,1,FALSE),C88:AR88,0))),"") |
AT88:AT89 | AT88 | =IFERROR(IF(B88="","",INDEX($C$2:$AR$2,MATCH(HLOOKUP("AL",C88:AR88,1,TRUE),C88:AR88))),"") |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
A1:AR300 | Expression | =A1="AL" | text | NO |
As you can see, it's not picking up the last date for whatever reason. But later down the sheet I get;
From;
Cheat Sheet.xlsx | ||||
---|---|---|---|---|
AS | AT | |||
142 | 13/05/2022 | 18/05/2022 | ||
143 | 2/06/2022 | 2/06/2022 | ||
Roster Dump |
Cell Formulas | ||
---|---|---|
Range | Formula | |
AS142:AS143 | AS142 | =IFERROR(IF(B142="","",INDEX($C$2:$AR$2,MATCH(HLOOKUP("AL",C142:AR142,1,FALSE),C142:AR142,0))),"") |
AT142:AT143 | AT142 | =IFERROR(IF(B142="","",INDEX($C$2:$AR$2,MATCH(HLOOKUP("AL",C142:AR142,1,TRUE),C142:AR142))),"") |