Lookup more than less than

sahil

Board Regular
Joined
Feb 13, 2009
Messages
66
Office Version
  1. 2019
Platform
  1. Windows
Hello Folks,

I tried multiple functions but none did work for me and I need your help for the same.

I have one column (C) and I want to know row number if the value is searched more than and in another cell less than is found.

for example in D4 result should be 9 and in E4 result should be 17.

Appreciate your help.

Analysis.xlsx
CDE
2IndexFinding row if less thanFinding row if more than
310765
427????
537
648
737
812
93
1056
117
1245
1334
1424
153
165
1767
1845
1932
203
214
2224
2342
2434
Sheet1
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hello Folks,
I tried multiple functions but none did work for me and I need your help for the same.

I have one column (C) and I want to know row number if the value is searched more than and in another cell less than is found.

for example in D4 result should be 9 and in E4 result should be 17.

Appreciate your help.

Analysis.xlsx
CDE
2IndexFinding row if less thanFinding row if more than
310765
427????
537
648
737
812
93
1056
117
1245
1334
1424
153
165
1767
1845
1932
203
214
2224
2342
2434
Sheet1

Do you want the result for all possible combination ?
 
Upvote 0
Hi Earthworm,

I am looking for first value found, its row number as a return from by function

If first value found less than, then its row number in D4 (reference value if D3)
If first value found more than, then its row number in E4 (reference value is E3)

(First value is a search task from top to bottom of C column)
 
Upvote 0
D4 should be:
Code:
=MATCH(TRUE,INDEX($C$3:$C$24<D3,),0)+2
Copy to E4, change "<" to ">".
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

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