Finding the row-level

baidya91

Board Regular
Joined
Jun 1, 2016
Messages
147
In an excel table there are two levels of figures (column-level & row-level which are numbered). Now if the number of column is fixed and we find a figure from the table equal to or nearest to a certain figure, what will be the number of row-level? In the following the number of column-level is 6 and we want to find a figure equal or nearest to 24500, the row level number will be 4 and the figure will be 24800. How shall we find the row-level number 4 by using an excel formula. Please help. Thanks in advance:

Level1234567
117000176002270024700
217500181002340025400
318000186002410026200
418500192002480027000
519100198002550027800
619700204002630028600
720300210002710029500
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
I am not using formula(s) but Power Query so I can't help with or nearest to
maybe someone else
 
Upvote 0
Maybe like.....

Book1
CDEFGHIJ
1FindColumn=RowValue
2245006=424800
3
4Level1234567
5117000176002270024700
6217500181002340025400
7318000186002410026200
8418500192002480027000
9519100198002550027800
10619700204002630028600
11720300210002710029500
Sheet12
Cell Formulas
RangeFormula
G2G2{=MATCH(MIN(ABS(D2-I5:I11)),ABS(D2-I5:I11),0)}
H2H2=INDEX(D5:J11,G2,E2)
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.


Hope that helps.
 
Upvote 0
How about
Book1
ABCDEFGHIJK
1Level12345676
2117000176002270024700245004
3217500181002340025400
4318000186002410026200
5418500192002480027000
6519100198002550027800
7619700204002630028600
8720300210002710029500
Macro
Cell Formulas
RangeFormula
K2K2=MATCH(MIN(ABS(INDEX(B2:H8,0,J1)-J2)),ABS(INDEX(B2:H8,0,J1)-J2),0)
 
Upvote 0
How about
Book1
ABCDEFGHIJK
1Level12345676
2117000176002270024700245004
3217500181002340025400
4318000186002410026200
5418500192002480027000
6519100198002550027800
7619700204002630028600
8720300210002710029500
Macro
Cell Formulas
RangeFormula
K2K2=MATCH(MIN(ABS(INDEX(B2:H8,0,J1)-J2)),ABS(INDEX(B2:H8,0,J1)-J2),0)
#N/A message is coming in result field (K2 Cell)
 
Upvote 0
Maybe like.....

Book1
CDEFGHIJ
1FindColumn=RowValue
2245006=424800
3
4Level1234567
5117000176002270024700
6217500181002340025400
7318000186002410026200
8418500192002480027000
9519100198002550027800
10619700204002630028600
11720300210002710029500
Sheet12
Cell Formulas
RangeFormula
G2G2{=MATCH(MIN(ABS(D2-I5:I11)),ABS(D2-I5:I11),0)}
H2H2=INDEX(D5:J11,G2,E2)
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.


Hope that helps.
Works fine but column level No 6 is not included in the first formula. Hence that does not serve my purpose.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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