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
<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>
[TD="width: 64"][/TD]
[TD="class: xl65, width: 390"]Reference Table[/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="class: xl64"]M users[/TD]
[TD="class: xl64, align: right"]0.6[/TD]
[TD="class: xl64, align: right"]2.6[/TD]
[TD="class: xl64, align: right"]4.6
[/TD]
[TD="class: xl64, align: right"]6.6
[/TD]
[TD="class: xl64, align: right"]8.6[/TD]
[TD="class: xl64, align: right"]10[/TD]
[TD="class: xl63"]BHCA [ M BHCA ][/TD]
[TD="class: xl63, align: right"]0.6[/TD]
[TD="class: xl63, align: right"]2.6[/TD]
[TD="class: xl63, align: right"]4.6
[/TD]
[TD="class: xl63, align: right"]6.6
[/TD]
[TD="class: xl63, align: right"]8.6[/TD]
[TD="class: xl63, align: right"]10[/TD]
[TD="class: xl63"]Erlangs [/TD]
[TD="class: xl63, align: right"]15000[/TD]
[TD="class: xl63, align: right"]65000[/TD]
[TD="class: xl63, align: right"]115000
[/TD]
[TD="class: xl63, align: right"]165000[/TD]
[TD="class: xl63, align: right"]215000[/TD]
[TD="class: xl63, align: right"]250000[/TD]
[TD="class: xl63"]VM 1[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2
[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63"]VM2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2
[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63"]VM3[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2
[/TD]
[TD="class: xl63, align: right"]2
[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63"]VM4[/TD]
[TD="class: xl63, align: right"]8[/TD]
[TD="class: xl63, align: right"]8[/TD]
[TD="class: xl63, align: right"]8
[/TD]
[TD="class: xl63, align: right"]8
[/TD]
[TD="class: xl63, align: right"]8[/TD]
[TD="class: xl63, align: right"]8[/TD]
[TD="class: xl63"]VM5[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2
[/TD]
[TD="class: xl63, align: right"]2
[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63"]VM6[/TD]
[TD="class: xl63, align: right"]40[/TD]
[TD="class: xl63, align: right"]40[/TD]
[TD="class: xl63, align: right"]40[/TD]
[TD="class: xl63, align: right"]40
[/TD]
[TD="class: xl63, align: right"]40[/TD]
[TD="class: xl63, align: right"]40[/TD]
[TD="class: xl63"]VM7[/TD]
[TD="class: xl63, align: right"]6[/TD]
[TD="class: xl63, align: right"]22[/TD]
[TD="class: xl63, align: right"]38[/TD]
[TD="class: xl63, align: right"]54
[/TD]
[TD="class: xl63, align: right"]70[/TD]
[TD="class: xl63, align: right"]86[/TD]
</tbody>
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
Column B | Column C | Column D | Column E | Column F | Column G | Column H | |
Row 4 | |||||||
Row 5 | |||||||
Row 6 | |||||||
Row 7 | |||||||
Row 8 | |||||||
Row 9 | |||||||
Row 10 | |||||||
Row 11 | |||||||
Row 12 | |||||||
Row 13 |
<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>
[TD="width: 64"][/TD]
[TD="class: xl65, width: 390"]Reference Table[/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="class: xl64"]M users[/TD]
[TD="class: xl64, align: right"]0.6[/TD]
[TD="class: xl64, align: right"]2.6[/TD]
[TD="class: xl64, align: right"]4.6
[/TD]
[TD="class: xl64, align: right"]6.6
[/TD]
[TD="class: xl64, align: right"]8.6[/TD]
[TD="class: xl64, align: right"]10[/TD]
[TD="class: xl63"]BHCA [ M BHCA ][/TD]
[TD="class: xl63, align: right"]0.6[/TD]
[TD="class: xl63, align: right"]2.6[/TD]
[TD="class: xl63, align: right"]4.6
[/TD]
[TD="class: xl63, align: right"]6.6
[/TD]
[TD="class: xl63, align: right"]8.6[/TD]
[TD="class: xl63, align: right"]10[/TD]
[TD="class: xl63"]Erlangs [/TD]
[TD="class: xl63, align: right"]15000[/TD]
[TD="class: xl63, align: right"]65000[/TD]
[TD="class: xl63, align: right"]115000
[/TD]
[TD="class: xl63, align: right"]165000[/TD]
[TD="class: xl63, align: right"]215000[/TD]
[TD="class: xl63, align: right"]250000[/TD]
[TD="class: xl63"]VM 1[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2
[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63"]VM2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2
[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63"]VM3[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2
[/TD]
[TD="class: xl63, align: right"]2
[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63"]VM4[/TD]
[TD="class: xl63, align: right"]8[/TD]
[TD="class: xl63, align: right"]8[/TD]
[TD="class: xl63, align: right"]8
[/TD]
[TD="class: xl63, align: right"]8
[/TD]
[TD="class: xl63, align: right"]8[/TD]
[TD="class: xl63, align: right"]8[/TD]
[TD="class: xl63"]VM5[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2
[/TD]
[TD="class: xl63, align: right"]2
[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63, align: right"]2[/TD]
[TD="class: xl63"]VM6[/TD]
[TD="class: xl63, align: right"]40[/TD]
[TD="class: xl63, align: right"]40[/TD]
[TD="class: xl63, align: right"]40[/TD]
[TD="class: xl63, align: right"]40
[/TD]
[TD="class: xl63, align: right"]40[/TD]
[TD="class: xl63, align: right"]40[/TD]
[TD="class: xl63"]VM7[/TD]
[TD="class: xl63, align: right"]6[/TD]
[TD="class: xl63, align: right"]22[/TD]
[TD="class: xl63, align: right"]38[/TD]
[TD="class: xl63, align: right"]54
[/TD]
[TD="class: xl63, align: right"]70[/TD]
[TD="class: xl63, align: right"]86[/TD]
</tbody>