Data Validation / VLookup / Result

Joneye

Well-known Member
Joined
May 28, 2010
Messages
785
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. MacOS
Posted something similar today but Ive reworked this a bit more.

I have got my data validation to look updata via a vlooup, what I need in cell H2 is the ability to scroll from cells D7 to D13 and choose one. (Column E will serve a purpose but not now)

Can this be done?


<b>Excel 2003</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th><th>G</th><th>H</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style=";">list one</td><td style=";">list two</td><td style=";">chosen data</td><td style=";">Costing</td><td style="text-align: right;;"></td><td style=";">list one</td><td style=";">list two</td><td style=";">Result</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style=";">hello</td><td style=";">good morning</td><td style="text-align: right;;">1</td><td style="text-align: right;;">£13.00</td><td style="text-align: right;;"></td><td style=";">goodbye</td><td style=";">good night </td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style=";">hello</td><td style=";">good morning</td><td style="text-align: right;;">2</td><td style="text-align: right;;">£14.00</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style=";">hello</td><td style=";">good morning</td><td style="text-align: right;;">3</td><td style="text-align: right;;">£15.00</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style=";">hello</td><td style=";">good morning</td><td style="text-align: right;;">4</td><td style="text-align: right;;">£16.00</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style=";">hello</td><td style=";">good morning</td><td style="text-align: right;;">5</td><td style="text-align: right;;">£17.00</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style=";">goodbye</td><td style=";">good night </td><td style="text-align: right;;">6</td><td style="text-align: right;;">£18.00</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style=";">goodbye</td><td style=";">good night </td><td style="text-align: right;;">7</td><td style="text-align: right;;">£19.00</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style=";">goodbye</td><td style=";">good night </td><td style="text-align: right;;">8</td><td style="text-align: right;;">£20.00</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style=";">goodbye</td><td style=";">good night </td><td style="text-align: right;;">9</td><td style="text-align: right;;">£21.00</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style=";">goodbye</td><td style=";">good night </td><td style="text-align: right;;">10</td><td style="text-align: right;;">£22.00</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">12</td><td style=";">goodbye</td><td style=";">good night </td><td style="text-align: right;;">11</td><td style="text-align: right;;">£23.00</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">13</td><td style=";">goodbye</td><td style=";">good night </td><td style="text-align: right;;">12</td><td style="text-align: right;;">£24.00</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">14</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">G2</th><td style="text-align:left">=VLOOKUP(<font color="Blue">F2,A2:B13,2,0</font>)</td></tr></tbody></table></td></tr></table><br />
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Posted something similar today but Ive reworked this a bit more.

I have got my data validation to look updata via a vlooup, what I need in cell H2 is the ability to scroll from cells D7 to D13 and choose one. (Column E will serve a purpose but not now)

Can this be done?

With a helper column.

<table valign="middle" colspan="11" style="font-family:Calibri; color:#000000; background-color:#FFFFFF; font-size:11px; font-weight:bold; font-style:normal; " border="1" cellpadding="2" cellspacing="0"><colgroup><col width="28pt"><col width="45,75pt"><col width="69,75pt"><col width="60,75pt"><col width="39,75pt"><col width="60pt"><col width="45,75pt"><col width="54,75pt"><col width="34,5pt"><col width="34,5pt"><col width="60pt"></colgroup><tbody><tr style="background-color:#FAFAFA"><td colspan="11" align="center">Worksheet 'Tabelle1'</td></tr><tr style="background-color:#cacaca"><td>
</td><td align="center">A</td><td align="center">B</td><td align="center">C</td><td align="center">D</td><td align="center">E</td><td align="center">F</td><td align="center">G</td><td align="center">H</td><td align="center">I</td><td align="center">J</td></tr><tr><td style="background-color:#cacaca" align="center">1</td><td align="left">list one</td><td align="left">list two</td><td align="left">chosen data</td><td align="left">Costing</td><td align="right">
</td><td align="left">list one</td><td align="left">list two</td><td align="left">Result</td><td align="right">
</td><td style="color:#FFFFFF; background-color:#B2B2B2; " align="right">
</td></tr><tr><td style="background-color:#cacaca" align="center">2</td><td style="font-weight:normal; " align="left">hello</td><td style="font-weight:normal; " align="left">good morning</td><td style="font-weight:normal; " align="right">1</td><td style="font-weight:normal; " align="left">£13.00</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="left">goodbye</td><td style="font-weight:normal; " align="left">good night</td><td style="font-weight:normal; " align="left">£21.00</td><td style="font-weight:normal; " align="right">
</td><td style="color:#FFFFFF; background-color:#B2B2B2; font-weight:normal; " align="left">£18.00</td></tr><tr><td style="background-color:#cacaca" align="center">3</td><td style="font-weight:normal; " align="left">hello</td><td style="font-weight:normal; " align="left">good morning</td><td style="font-weight:normal; " align="right">2</td><td style="font-weight:normal; " align="left">£14.00</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="color:#FFFFFF; background-color:#B2B2B2; font-weight:normal; " align="left">£19.00</td></tr><tr><td style="background-color:#cacaca" align="center">4</td><td style="font-weight:normal; " align="left">hello</td><td style="font-weight:normal; " align="left">good morning</td><td style="font-weight:normal; " align="right">3</td><td style="font-weight:normal; " align="left">£15.00</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="color:#FFFFFF; background-color:#B2B2B2; font-weight:normal; " align="left">£20.00</td></tr><tr><td style="background-color:#cacaca" align="center">5</td><td style="font-weight:normal; " align="left">hello</td><td style="font-weight:normal; " align="left">good morning</td><td style="font-weight:normal; " align="right">4</td><td style="font-weight:normal; " align="left">£16.00</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="color:#FFFFFF; background-color:#B2B2B2; font-weight:normal; " align="left">£21.00</td></tr><tr><td style="background-color:#cacaca" align="center">6</td><td style="font-weight:normal; " align="left">hello</td><td style="font-weight:normal; " align="left">good morning</td><td style="font-weight:normal; " align="right">5</td><td style="font-weight:normal; " align="left">£17.00</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="color:#FFFFFF; background-color:#B2B2B2; font-weight:normal; " align="left">£22.00</td></tr><tr><td style="background-color:#cacaca" align="center">7</td><td style="font-weight:normal; " align="left">goodbye</td><td style="font-weight:normal; " align="left">good night</td><td style="font-weight:normal; " align="right">6</td><td style="font-weight:normal; " align="left">£18.00</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="color:#FFFFFF; background-color:#B2B2B2; font-weight:normal; " align="left">£23.00</td></tr><tr><td style="background-color:#cacaca" align="center">8</td><td style="font-weight:normal; " align="left">goodbye</td><td style="font-weight:normal; " align="left">good night</td><td style="font-weight:normal; " align="right">7</td><td style="font-weight:normal; " align="left">£19.00</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="color:#FFFFFF; background-color:#B2B2B2; font-weight:normal; " align="left">£24.00</td></tr><tr><td style="background-color:#cacaca" align="center">9</td><td style="font-weight:normal; " align="left">goodbye</td><td style="font-weight:normal; " align="left">good night</td><td style="font-weight:normal; " align="right">8</td><td style="font-weight:normal; " align="left">£20.00</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="color:#FFFFFF; background-color:#B2B2B2; font-weight:normal; " align="left">
</td></tr><tr><td style="background-color:#cacaca" align="center">10</td><td style="font-weight:normal; " align="left">goodbye</td><td style="font-weight:normal; " align="left">good night</td><td style="font-weight:normal; " align="right">9</td><td style="font-weight:normal; " align="left">£21.00</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="color:#FFFFFF; background-color:#B2B2B2; font-weight:normal; " align="left">
</td></tr><tr><td style="background-color:#cacaca" align="center">11</td><td style="font-weight:normal; " align="left">goodbye</td><td style="font-weight:normal; " align="left">good night</td><td style="font-weight:normal; " align="right">10</td><td style="font-weight:normal; " align="left">£22.00</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="color:#FFFFFF; background-color:#B2B2B2; font-weight:normal; " align="left">
</td></tr><tr><td style="background-color:#cacaca" align="center">12</td><td style="font-weight:normal; " align="left">goodbye</td><td style="font-weight:normal; " align="left">good night</td><td style="font-weight:normal; " align="right">11</td><td style="font-weight:normal; " align="left">£23.00</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="color:#FFFFFF; background-color:#B2B2B2; font-weight:normal; " align="left">
</td></tr><tr><td style="background-color:#cacaca" align="center">13</td><td style="font-weight:normal; " align="left">goodbye</td><td style="font-weight:normal; " align="left">good night</td><td style="font-weight:normal; " align="right">12</td><td style="font-weight:normal; " align="left">£24.00</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="font-weight:normal; " align="right">
</td><td style="color:#FFFFFF; background-color:#B2B2B2; font-weight:normal; " align="left">
</td></tr></tbody></table>
<table valign="middle" colspan="2" style="table-layout:auto; color:#000000; background-color:#FFFFFF; font-family:Calibri; font-size:10px;" border="3" cellpadding="2" cellspacing="0"><colgroup><col width="40pt"><col></colgroup><tbody><tr style="background-color:#eeaaaa"><td>Cell</td><td>Formula</td></tr><tr><td>J2</td><td>{=IF(COUNTIF($A$2:$A$13,$F$2)<ROWS(J$2:J2),"",INDEX($D$2:$D$13,SMALL(IF($A$2:$A$13=$F$2,ROW($D$2:$D$13)-ROW($D$2)+1),ROWS(J$2:J2))))}</td></tr></tbody></table><table style="font-family:Arial; font-size:8pt; background-color:#FFFFFF"><tbody><tr><td style="font-weight:bold">Contains array formula!</td></tr><tr><td>Do not enter the curly brackets {}.
</td></tr><tr><td>Enter the formula with CTRL-SHIFT-ENTER instead of just ENTER.
</td></tr></tbody></table>
<table valign="middle" colspan="5" style="color:#000000; background-color:#FFFFFF; font-family:Calibri; font-size:10px;" border="3" cellpadding="2" cellspacing="0"><tbody><tr style="background-color:#aaeeee"><td>Cell
</td><td>Validationtype</td><td>Operator</td><td>Value1</td><td>Value2</td></tr><tr><td>H2</td><td>List</td><td>
</td><td>=J2:INDEX($J$2:$J$17,COUNTIF($A$2:$A$13,$F$2))</td><td>
</td></tr></tbody></table><table style="font-family:Arial; font-size:7pt"><tbody><tr><td style="color:#333333">Created with Tab2HTML (v2.4.1). ©Gerd alias Bamberg
</td></tr></tbody></table>
 
Upvote 0
Awesome many thanks im gonna fix this into my task now
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,875
Members
452,949
Latest member
Dupuhini

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