Forum Discussion

Noel-T's avatar
Noel-T
Copper Contributor
Jan 05, 2022
Solved

XLOOKUP Strange Rounding Error when Searching Multiple Variables

My colleague and I are attempting to use XLOOKUP to search an array of values for two variables and return a third, rounded up to the next largest value. The formula we came up with for this is: =XL...
  • Riny_van_Eekelen's avatar
    Jan 05, 2022

    Noel-T Not sure that what you see as correct results are in fact correct, though merely a coincidence. When you use A2&B2, you are concatenating the two numbers into a text. So, if A2 contains the number 10.5 and B2 contains 18.21, XLOOKUP will look for the text "10.518.21" in the texts concatenated from C2:C24 & D2:D24. Hence, you are no longer working with numbers.

Resources