Discussion
Set up a 3 column table like this :
Index Product Price
1 A 10
2 B 15
3 C 20
4 D 6
5 E 9
(you can hide the index column if needs be)
Create a combo box (on the Forms Toolbar), set the Input range to the product list (A to E here) and the cell link value to a cell of your choice. The cell link will display the index of the currently selected item in the drop down.
Then, in the cell you want the price to appear in, write a formula like :-
=VLOOKUP(cell_link_cell, table_range, 3)
The 3 refers to the 3rd column of your table.
>> Edited by TheGroover on Friday 20th February 16:11
Index Product Price
1 A 10
2 B 15
3 C 20
4 D 6
5 E 9
(you can hide the index column if needs be)
Create a combo box (on the Forms Toolbar), set the Input range to the product list (A to E here) and the cell link value to a cell of your choice. The cell link will display the index of the currently selected item in the drop down.
Then, in the cell you want the price to appear in, write a formula like :-
=VLOOKUP(cell_link_cell, table_range, 3)
The 3 refers to the 3rd column of your table.
>> Edited by TheGroover on Friday 20th February 16:11
TheGroover said:
Set up a 3 column table like this :
Index Product Price
1 A 10
2 B 15
3 C 20
4 D 6
5 E 9
(you can hide the index column if needs be)
Create a combo box (on the Forms Toolbar), set the Input range to the product list (A to E here) and the cell link value to a cell of your choice. The cell link will display the index of the currently selected item in the drop down.
Then, in the cell you want the price to appear in, write a formula like :-
=VLOOKUP(cell_link_cell, table_range, 3)
The 3 refers to the 3rd column of your table.
>> Edited by TheGroover on Friday 20th February 16:11
works a treat thanks my user thinks i'm a genius now!
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff