Search a cell value in range with match to higher value and return column results using excel formula

gmalpani

New Member
Joined
Dec 24, 2011
Messages
37
Hi Experts,

I have a reference table where values are defined for specific subscriber value.
The user will input a value which shall be search in reference table. There will not be exact match in reference table for cell value.
So, may be user enters 6M users and reference table may have 4.6M and 6.5M. So, in this case values shall be picked up from column with 6.5M (higher than user input). It is required to return value for all corresponding cells. This is required to be done using formula not macro.

So, below is the reference table.
First row shall be considered to match user input.
User input 6 (in cell C15), so this shall be check in first row and 4.6<6<6.6. So, column F shall be copied from F4:F13 to column C16:C25


Reference Table
Column BColumn CColumn DColumn E
Column F
Column GColumn H
Row 4M users0.62.64.6
6.6
8.610
Row 5BHCA [ M BHCA ]0.62.64.6
6.6
8.610
Row 6
Erlangs 1500065000115000
165000215000250000
Row 7
VM 1222
222
Row 8VM2222
222
Row 9VM3222
2
22
Row 10VM4888
8
88
Row 11VM5222
2
22
Row 12
VM640404040
4040
Row 13
VM76223854
7086

<colgroup><col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:14262;width:293pt" width="390"> <col style="width:48pt" width="64" span="6"> </colgroup><tbody>
</tbody>
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
You need a formula for each cell from C16 to C25.
The formula in C16 is

=INDEX($A$1:$H$13,ROW(A4),MATCH($C$15,$A$4:$H$4,1)+1)

<tbody>
</tbody>


Copy the formula from C16 to C25

Column BColumn CColumn DColumn EColumn FColumn GColumn H
Row 4M users0.62.64.66.68.610
Row 5BHCA [ M BHCA ]0.62.64.66.68.610
Row 6Erlangs1500065000115000165000215000250000
Row 7VM 1222222
Row 8VM2222222
Row 9VM3222222
Row 10VM4888888
Row 11VM5222222
Row 12VM6404040404040
Row 13VM762238547086
Row 14
Row 15User Input6
Row 166.6
Row 176.6
Row 18165000
Row 192
Row 202
Row 212
Row 228
Row 232
Row 2440
Row 2554

<tbody>
</tbody>


Worksheet Formulas
CellFormula
C16=INDEX($A$1:$H$13,ROW(A4),MATCH($C$15,$A$4:$H$4,1)+1)

<tbody>
</tbody>
 
Upvote 0
Solution
Another option

Excel 2013/2016
ABCDEFG
1
2
3
4M users0.62.64.66.68.610
5BHCA [ M BHCA ]0.62.64.66.68.610
6Erlangs1500065000115000165000215000250000
7VM 1222222
8VM2222222
9VM3222222
10VM4888888
11VM5222222
12VM6404040404040
13VM762238547086
14
1510
1610
1710
18250000
192
202
212
228
232
2440
2586
data
Cell Formulas
RangeFormula
C16{=INDEX($B$1:$G$13,ROW(A4),MATCH(TRUE,$B$4:$G$4>=C$15,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,772
Messages
6,126,812
Members
449,339
Latest member
Cap N

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