Forum Discussion

kyyall's avatar
kyyall
Occasional Reader
Jun 04, 2026
Solved

MATCH formula anomaly?

Can anyone explain this? If I simply type 490.44 and then calculate 490.44 as 490.44/40*40 (or even directly B3/40*40) excel recognizes both as equal through a simple A=B calculation yet not with a MATCH calculation. What is more odd is any other number I use does not cause this error... 

 

 

  • Hello kyyall.

     That's a nice question. It's a common issue and it's a result of how computers deal with arithmetics. It's binary and therefore divisions results in new numbers with a different precision and multiplication makes the error significant. When you do a simple comparison, you get true because it's designed to ignore small differences. But using Match Formula requires to be precise and any difference in bits results in non-matched result. If you use this formula you would get the right answer: =Round(B3/40*40,2) instead of B3/40*40.  I paste the picture of another example in the following:

     

3 Replies

  • kyyall's avatar
    kyyall
    Occasional Reader

    Thank you both! First time I have ever come across something like this. It never would have occurred to me that excel would treat MATCH precision differently than a simple comparison (generally my go-to check when I experience Lookup errors) but that’s good to know!

    Still very odd that every other number I tested would not error out but I guess that’s just my luck lol 

  • AmirAlfonso's avatar
    AmirAlfonso
    Occasional Reader

    Hello kyyall.

     That's a nice question. It's a common issue and it's a result of how computers deal with arithmetics. It's binary and therefore divisions results in new numbers with a different precision and multiplication makes the error significant. When you do a simple comparison, you get true because it's designed to ignore small differences. But using Match Formula requires to be precise and any difference in bits results in non-matched result. If you use this formula you would get the right answer: =Round(B3/40*40,2) instead of B3/40*40.  I paste the picture of another example in the following:

     

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    kyyall​ 

    Google for "floating point arithmetic" to learn all about minute rounding errors that are caused by how computers deal with numbers.

    When you notice something like this, use ROUND for the calculated value:

    =ROUND(B3/40*40,2)

    Now MATCH will find the exact match you are expecting in the first element of the 'lookup array' (that only contains 1 element).