Hi all,
I want to highlight the 2 closest values in a list to a given number in Google Sheets. I've found the solution for Excel, but I can't make it work in Google Sheets. Also, my list is horizontal, not vertical.
I've created a sheet for you to look at: docs.google.com/spreadsheets/d/1k4VHPGrmXWcPN_kRCS25ZRy6NIe5w0jjxmAokKlP8c4/edit?usp=sharingextendoffice.com/documents/excel/4095-excel-highlight-closest-value.html
If you want to highlight the closest 3 values to the given values, you can apply this formula in the Conditional Formatting, =ISNUMBER(MATCH(ABS($D$2-A2),SMALL(ABS($D$2-$A$2:$A$15),ROW($1:$3)),0))
Do you know if it's possible?
Thank you!
Bookmarks