Dropdown list dependent

eduzs

Well-known Member
Joined
Jul 6, 2014
Messages
704
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Hi all,
I need to populate a drop down list in a cell based on the value of another cell.
If type in A1 cell "Fruits", in B1 it only lists "Apples, Lemons,..." of vegetables lists.
Thanks
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Thanks.
I have this formula (list / data validation formula) that works IF the 1st column "A" is sorted alphabetically, lists "B" column in order of appearance.
=OFFSET($A$1,MATCH($J4,$A:$A,0)-1,1,COUNTIF($A:$A,$J4))
I want a formula that auto sort alphabetically and that works in non continuous A$ list ("A,B,D,E,A,A,B,D,B,B").
The above formula works in a table like that:
[TABLE="width: 100"]
<tbody>[TR]
[TD]Vendor[/TD]
[TD]Model[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]

Selected vendor B result 2, 1

It will return wrong result in this table:

[TABLE="width: 100"]
<tbody>[TR]
[TD]Vendor[/TD]
[TD]Model[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]

Selectec vendor: B result 2, 4

It also does not sorts result alphabetically.

Thanks
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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