Forum Discussion

vanilla8910's avatar
vanilla8910
Copper Contributor
Aug 03, 2023
Solved

Vlookup approximate match giving wrong result

Hello, I use vlookup to categorise the average price into price range buckets. However, I'm getting inconsistent results: Weight Total price Average price 40.2 68340 Weight/Total = 1700 (c...
  • Riny_van_Eekelen's avatar
    Aug 04, 2023

    vanilla8910 Decreasing the number of decimals displayed isn't going to help as the numer that is used by Excel in the calculation stays the same. To overcome your problem you need to round the calculation to 0 decimals like this:

    in C8: =ROUND(A8/B8,0)

     

    or change the VLOOKUP to this:

    =VLOOKUP(ROUND(C8,0),'Lookup table',2,TRUE)

     

     

Resources