Formula to get the value of a cell in closest proximity to the left of a cell

cclark19

New Member
Joined
Mar 2, 2019
Messages
2
Hello, I am trying to figure out how to have the cells lookup the value in closest proximity to the cells to the left of my desired cell. For example, how to have the 2 show up in the x position, how to have the 1 show up in the y position, and the 3 in the z. And if I was to continue to input new values to the left of the 2,1, and 3, if it would recognize the new values. Any help is appreciated!

[TABLE="width: 500"]
<tbody>[TR]
[TD]2
[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]x[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]z[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Re: Help to find formula to get the value of a cell in closest proximity to the left of a cell

Hi,

This will do what you want if your values are numeric:


Book1
ABCDEFGH
12433
2122
3366
Sheet625
Cell Formulas
RangeFormula
H1=LOOKUP(9.99999999999999E+307,A1:G1)


Formula copied down.
Column H will update as you enter additional values.
 
Upvote 0
Hello, I am trying to figure out how to have the cells lookup the value in closest proximity to the cells to the left of my desired cell. For example, how to have the 2 show up in the x position, how to have the 1 show up in the y position, and the 3 in the z. And if I was to continue to input new values to the left of the 2,1, and 3, if it would recognize the new values. Any help is appreciated!

[TABLE="width: 500"]
<tbody>[TR]
[TD]2[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]x[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]z[/TD]
[/TR]
</tbody>[/TABLE]

Perfect, thanks so much!
 
Upvote 0
You're welcome, welcome to the forum, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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