Find Closest Value to Specific Value in a Range.

rmence

New Member
Joined
Oct 20, 2015
Messages
23
I have something that looks like this:

ABCDEFGHIJ
10.05<<Target
2Data1Data2Data3Data4Data5Data6Closest
30.0310.04820.05030.05230.0911.450.0503
4

<tbody>
</tbody>



And I trying to figure out a formula that I could put in J3 that will give me the closest match to B1 from the range of D3:I3. The optimal value could be below or above the target, doesn't matter.

I hope that makes sense. I am not too versed in index match, but thinking that is probably the way to go, would sincerely appreciate any help.
Thankful for any direction someone smarter than me can provide. :)
-Rick
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Try this in J3:

=INDEX(D3:I3,MATCH(MIN(ABS(D3:I3-B1)),ABS(D3:I3-B1),0))

and confirm with Control+Shift+Enter.
 
Upvote 0
Hi,

sorry I am new here and tried to find solution for my problem but a bit extension from that.
What if there is another data on row 4 and I want to find the closest value on J4 from range D3:I4. Tried with the same formula but the result is N/A.
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,399
Members
448,958
Latest member
Hat4Life

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top