We help IT Professionals succeed at work.
Get Started

Find the closest value in columns in excel

Last Modified: 2017-12-05

I want to compare a value in one column with values in other three columns, then output the closest value (without going over) and the column name of the closest value.

For example, I want to compare the value in Y4 col to Y1,Y2 and Y3 and output the results in Closest Value and Closest Column.

Y1               Y2              Y3             Y4         Closest Value      Closest Column
20%      30%      21%      19%      20%               Y1
19%      20%      18%      17%      18%               Y3

I need an excel formula not the VBA code. I'd greatly appreciate any help!

Watch Question
Finance Analyst
This problem has been solved!
Unlock 3 Answers and 27 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE