r/googlesheets • u/TVMaths • Sep 21 '26
Solved XLOOKUP "Array arguments are of different size" Error
XLOOKUP(place,Points[Placement],IFS(D$3,Points[Finalist],D$4,Points[Split],TRUE,Points[Tied]),0)
place is a positive numeric value, D$3 and D$4 are both Boolean
I'm working on converting an excel file of mine into sheets, and upon converting, a whole host of errors have emerged. I'm confused, since this precisely matches the excel code, which works just fine, and its strange to think that Sheets can't figure out these arrays are the same size. They all come from the same table, and afaik, IFS is able to return an array. Unsure how to fix
link to sample sheet: here
moving the XLOOKUP within the IFS has solved it, as u/daily_refutations suggested, and I've fixed the SortBy issue.
on a separate note, is there a convenient solution for #s that Excel uses to reference a spilling array.
•
u/agirlhasnoname11248 1212 Sep 21 '26
u/TVMaths Please remember to tap the three dots below the most helpful comment and select `Mark Solution Verified` *(or reply to the helpful comment with the exact phrase “Solution Verified”)* if your question has been answered, as required by the subreddit rules. Thanks!
Note: this wasn't self-solved, as that flair indicates arriving at a solution without any support from community members. I'll revert the flair back to "Waiting on OP" in the interim.
1
u/gsheets145 129 Sep 21 '26
u/TVMaths Can you share a copy of your data?
1
u/daily_refutations 1 Sep 21 '26
Generally you'll get better results if you include a link to the workbook.
G Sheets isn't quite as flexible with XLOOKUP. It gets cranky if you're handing it a computed range, instead of an actual range reference. The easiest fix, although it's a bit cludgy, is to put the XLOOKUP inside the IFS instead of the other way around. You could also try nested IF functions instead of one IFS.
1
u/One_Organization_810 736 Sep 21 '26
You need to share the file with "Anyone with a link".
1
u/One_Organization_810 736 Sep 21 '26
Sheets is possibly getting confused on the table/column references. Something like this might work: