Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
144 views
in Technique[技术] by (71.8m points)

Looking up several sets of data/several tables with xlookup (not multiple variables) in excel

I'm struggling to word this question specifically enough to find an answer by searching.

I have a spreadsheet that looks a bit like this:

excel example table

I'm trying to write a XLOOKUP that searches through columns A and C and E to find matching values in the cells to their right in columns B and D and F. It currently looks incredibly messy as my current solution is to nest each set in an 'If not found':

=XLOOKUP(value,A:A,B:B,XLOOKUP(value,C:C,D:D,XLOOKUP(value,E:E,F:F,"")))

Which will get increasingly annoying as it's very likely that I'll need even more sets. Is there a less messy way to refer to all the lookup array columns and all the return array columns? & of course means multiple variables, + doesn't work, and having overlapping dynamic ranges (A:E,B:F) freaks it out.

Thanks x

question from:https://stackoverflow.com/questions/65902501/looking-up-several-sets-of-data-several-tables-with-xlookup-not-multiple-variab

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...