FIND VALUE AND POSITION FROM THE NEAREST 2 Columns FROM TOP TO LOW

Excelpromax123

Board Regular
Joined
Sep 2, 2021
Messages
167
Office Version
  1. 2010
Platform
  1. Windows
Hello everyone !
I need a formula to calculate the value and the ordinal position according to the 2 closest columns from top to bottom .
Sincerely thank

If found column A and column B with input value, get same as Vlookup and Match

1637623641173.png


If Column A and Column B are not in a row, get the closest row from top to bottom


1637623695292.png


The rest of the cases give the result 0 .

1637623781269.png




Sincerely thank
lINK
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hello
Try this:
Formula in H3
Excel Formula:
=IFERROR(OFFSET(C3,MATCH(F3,(OFFSET(INDIRECT("B"&MATCH(E3,A3:A12,0)+2),0,0):B12),0)+MATCH(E3,A3:A12,0)-2,0),0)
Formula in I3
Excel Formula:
=IF(H3=0,0,MATCH(H3,C3:C12,0))
 
Upvote 0

Forum statistics

Threads
1,214,858
Messages
6,121,956
Members
449,057
Latest member
FreeCricketId

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