hsandeep
Well-known Member
- Joined
- Dec 6, 2008
- Messages
- 1,226
- Office Version
- 2010
- Platform
- Windows
- Mobile
My Data Range is B2:G10 having 4 columns B,C,D & E. These 4 Columns are ‘continuous’ & have values which are either ‘INCREASING’ from B to E or ‘DECREASING’ from B to E.
Reference range is from G2:G10
Output required:
1. I2=’Nearest’ value from B to E with reference to G
2. I3=’First Left side’ value to the ’Nearest’ value found in I2. If there is NO ‘’First Left side’ value then I3=I2
How to accomplish?
Thanks in advance.
I am using Excel 2007.
Sheet1 Increasing
<colgroup><col style="FONT-WEIGHT: bold; WIDTH: 30px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"></colgroup><tbody>
[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD="align: right"]44.00[/TD]
[TD="align: right"]50.00[/TD]
[TD="align: right"]55.68[/TD]
[TD="align: right"]58.00[/TD]
[TD="align: right"]55.70[/TD]
[TD="bgcolor: #ffff00, align: right"]55.68[/TD]
[TD="bgcolor: #ffcc00, align: right"]50.00[/TD]
[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="bgcolor: #cacaca, align: center"]5[/TD]
[TD="bgcolor: #cacaca, align: center"]6[/TD]
[TD="bgcolor: #cacaca, align: center"]7[/TD]
[TD="bgcolor: #cacaca, align: center"]8[/TD]
[TD="align: right"]33.00[/TD]
[TD="align: right"]88.00[/TD]
[TD="align: right"]99.00[/TD]
[TD="align: right"]100.00[/TD]
[TD="align: right"]100.00[/TD]
[TD="bgcolor: #ffff00, align: right"]100.00[/TD]
[TD="bgcolor: #ffcc00, align: right"]99.00[/TD]
[TD="bgcolor: #cacaca, align: center"]9[/TD]
[TD="bgcolor: #cacaca, align: center"]10[/TD]
[TD="align: right"]33.00[/TD]
[TD="align: right"]88.00[/TD]
[TD="align: right"]99.00[/TD]
[TD="align: right"]100.00[/TD]
[TD="align: right"]40.00[/TD]
[TD="bgcolor: #ffff00, align: right"]33.00[/TD]
[TD="bgcolor: #ffcc00, align: right"]33.00[/TD]
</tbody>
Sheet 2 Decreasing
<colgroup><col style="FONT-WEIGHT: bold; WIDTH: 30px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"></colgroup><tbody>
[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD="align: right"]101.00[/TD]
[TD="align: right"]88.00[/TD]
[TD="align: right"]75.00[/TD]
[TD="align: right"]58.00[/TD]
[TD="align: right"]75.05[/TD]
[TD="bgcolor: #ffff00, align: right"]75.00[/TD]
[TD="bgcolor: #ffcc00, align: right"]88.00[/TD]
[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="bgcolor: #cacaca, align: center"]5[/TD]
[TD="bgcolor: #cacaca, align: center"]6[/TD]
[TD="bgcolor: #cacaca, align: center"]7[/TD]
[TD="bgcolor: #cacaca, align: center"]8[/TD]
[TD="bgcolor: #cacaca, align: center"]9[/TD]
[TD="bgcolor: #cacaca, align: center"]10[/TD]
[TD="align: right"]500.00[/TD]
[TD="align: right"]400.00[/TD]
[TD="align: right"]300.00[/TD]
[TD="align: right"]100[/TD]
</tbody>
Reference range is from G2:G10
Output required:
1. I2=’Nearest’ value from B to E with reference to G
2. I3=’First Left side’ value to the ’Nearest’ value found in I2. If there is NO ‘’First Left side’ value then I3=I2
How to accomplish?
Thanks in advance.
I am using Excel 2007.
Sheet1 Increasing
B | C | D | E | F | G | H | I | J | |
<colgroup><col style="FONT-WEIGHT: bold; WIDTH: 30px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"></colgroup><tbody>
[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD="align: right"]44.00[/TD]
[TD="align: right"]50.00[/TD]
[TD="align: right"]55.68[/TD]
[TD="align: right"]58.00[/TD]
[TD="align: right"]55.70[/TD]
[TD="bgcolor: #ffff00, align: right"]55.68[/TD]
[TD="bgcolor: #ffcc00, align: right"]50.00[/TD]
[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="bgcolor: #cacaca, align: center"]5[/TD]
[TD="bgcolor: #cacaca, align: center"]6[/TD]
[TD="bgcolor: #cacaca, align: center"]7[/TD]
[TD="bgcolor: #cacaca, align: center"]8[/TD]
[TD="align: right"]33.00[/TD]
[TD="align: right"]88.00[/TD]
[TD="align: right"]99.00[/TD]
[TD="align: right"]100.00[/TD]
[TD="align: right"]100.00[/TD]
[TD="bgcolor: #ffff00, align: right"]100.00[/TD]
[TD="bgcolor: #ffcc00, align: right"]99.00[/TD]
[TD="bgcolor: #cacaca, align: center"]9[/TD]
[TD="bgcolor: #cacaca, align: center"]10[/TD]
[TD="align: right"]33.00[/TD]
[TD="align: right"]88.00[/TD]
[TD="align: right"]99.00[/TD]
[TD="align: right"]100.00[/TD]
[TD="align: right"]40.00[/TD]
[TD="bgcolor: #ffff00, align: right"]33.00[/TD]
[TD="bgcolor: #ffcc00, align: right"]33.00[/TD]
</tbody>
Sheet 2 Decreasing
B | C | D | E | F | G | H | I | J | |
500 | 400 | 300 | 100 | 100 | 300 | ||||
<colgroup><col style="FONT-WEIGHT: bold; WIDTH: 30px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"></colgroup><tbody>
[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD="align: right"]101.00[/TD]
[TD="align: right"]88.00[/TD]
[TD="align: right"]75.00[/TD]
[TD="align: right"]58.00[/TD]
[TD="align: right"]75.05[/TD]
[TD="bgcolor: #ffff00, align: right"]75.00[/TD]
[TD="bgcolor: #ffcc00, align: right"]88.00[/TD]
[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="bgcolor: #cacaca, align: center"]5[/TD]
[TD="bgcolor: #cacaca, align: center"]6[/TD]
[TD="bgcolor: #cacaca, align: center"]7[/TD]
[TD="bgcolor: #cacaca, align: center"]8[/TD]
[TD="bgcolor: #cacaca, align: center"]9[/TD]
[TD="bgcolor: #cacaca, align: center"]10[/TD]
[TD="align: right"]500.00[/TD]
[TD="align: right"]400.00[/TD]
[TD="align: right"]300.00[/TD]
[TD="align: right"]100[/TD]
</tbody>