Data Validation Drop Down List using INDIRECT and VLOOKUP

SteveAB

New Member
Joined
Jan 5, 2017
Messages
4
Hi All,
This is my first time on the forum and hope everyone is enjoying the new year.
I am using Excel 2016 and creating an estimating workbook. To simplify my question I'll use the following example.

I have created a table called Inventory as shown below.
ABCD
CATEGORYITEMUNITPRICE
1Bolts25x10mm boltEach$0.20
2Bolts50x10mm boltEach$0.30
3Nuts10mm nutEach$0.15
4Washer10mm flat washerEach$0.10
5Washer10mm split washerEach$0.12

<tbody>
</tbody>

I have created another table called Estimate shown below
FG
1CategoryItem
2BoltDrop down list
showing choices of bolts from Inventory table

<tbody>
</tbody>

I'm trying to achieve a drop down list to give me choices for the category selected. In this example, the category is "Bolt".

To try and achieve this I have used the following formula in Data Validation source.
=INDIRECT(VLOOKUP(F2,A1:D5,2,FALSE))
Unfortunately my logic doesn't work :(
Any suggestions?

Cheers
Steve
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Like this...

Data Range
A
B
C
D
E
F
G
1
CATEGORY​
ITEM​
UNIT​
PRICE​
------​
CATEGORY​
ITEM​
2
Bolts​
25x10mm bolt​
Each​
$0.20​
Bolts​
25x10mm bolt​
3
Bolts​
50x10mm bolt​
Each​
$0.30​
4
Nuts​
10mm nut​
Each​
$0.15​
5
Washer​
10mm flat washer​
Each​
$0.10​
6
Washer​
10mm split washer​
Each​
$0.12​

As the source for the drop down list in G2 use this formula:

=OFFSET(A1,MATCH(F2,A:A,0)-1,1,COUNTIF(A:A,F2))
 
Upvote 0
Yes, the dependent drop down lists work well.
This one was for INDIRECT VLOOKUP. I also found one using INDIRECT MATCH which seems to be a better way of doing things. I suppose it depends on the context.
 
Upvote 0

Forum statistics

Threads
1,215,488
Messages
6,125,092
Members
449,206
Latest member
ralemanygarcia

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