Hi,
I've been playing around with various alternative XLOOKUP formulas and INDEX/MATCH to lookup values in a table and return a match - where I want matches that starts with "HTJ" to be prioritised.
In other words, if a value is found and starts with "HTJ xxxxx" then use that, if not found take another match (I hope that explanation makes sence....).
Below is the XLOOKUP formula that I have used and that works, but it grabs the first entry in the table SoL[Resurs], but here I'm trying to get it to prioritise if an entry in SoL[Resurs] starts with "HTJ*".
I have tried different alternatives with wildcards etc but can't get it to work. Is it possible with XLOOKUP?
Thanks in advance
I've been playing around with various alternative XLOOKUP formulas and INDEX/MATCH to lookup values in a table and return a match - where I want matches that starts with "HTJ" to be prioritised.
In other words, if a value is found and starts with "HTJ xxxxx" then use that, if not found take another match (I hope that explanation makes sence....).
Below is the XLOOKUP formula that I have used and that works, but it grabs the first entry in the table SoL[Resurs], but here I'm trying to get it to prioritise if an entry in SoL[Resurs] starts with "HTJ*".
I have tried different alternatives with wildcards etc but can't get it to work. Is it possible with XLOOKUP?
Excel Formula:
=XLOOKUP(INDIRECT("$I3:$I"&$P$1)&1;SoL[PID]&--((SoL[Resurs]<>"")*(SoL[Verkställda timmar]<>""));SoL[Resurs])
Thanks in advance