Let's say you have one of those M&M contests, where a bunch of people guess the number of M&Ms in a jar. In column B I have all the guesses. In cell A1 I have the right answer and in cell A2 I want a formula that will search the guesses in column B and give me the number closest to A1.
This is not for an M&M contest, but same concept
CSE formulas welcome.
Thanks!
This is not for an M&M contest, but same concept

Thanks!