Trying to convert long formulas to use XLOOKUP
I have 2 long formulas that make use of VLOOKUP and I'm trying to convert them to using XLOOKUP because I would like to move certain columns around. (It's been a long time since I created these formulas and it has taken me a while to figure it out, and now I can't quite manage to figure it out how to concert it to XLOOKUP... Any help would be appreciated.)
The following formula is in column K (all rows but the header)
=IF(D3≠"",IFERROR(IF(D3="TRUE",VLOOKUP(MAXIFS(A,A,"<"&A3,E,E3),A:K,11,FALSE)+(F3×G3+H3),VLOOKUP(MAXIFS(A,A,"<"&A3,E,E3),A:L,12,FALSE)×J3),G3×F3+H3),"")
And the following formula is in column N (all rows but the header)
=IFERROR(IF(D3="TRUE",VLOOKUP(MAXIFS(A,A,"<"&A3,E,E3),A:K,9,FALSE)+(F3×G3+H3),VLOOKUP(MAXIFS(A,A,"<"&A3,E,E3),A:L,12,FALSE)×M3),G3×F3+H3)
iMac 27″