Dependent Drop Down Lists for Categories and Subcategories

heretolearnexcel

Board Regular
Joined
Jan 22, 2019
Messages
61
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have the following table of categories and subcategories to classify expenses:

CategorySubcategory
EntertainmentEntertainment
EducationBooks
SavingsEmergency Fund
CarFuel
Loans (as Loaner)Loans to Friends
Loan (as Loanee)Car Loan
CharityFriends
HealthTherapy
Personal CareSkin Care
Personal CareHygiene
HealthMedication
CarAccesories
UtilitiesCell Phone
Groceries
Gifts
Other
Clothing
Financial ServicesCredit Card Interest Charges
Financial ServicesCredit Card Commission
Professional Development
HealthOther


I register the expenses in the following table:

DateCategorySubcategoryDescriptionAmount
1-Aug-21GiftsEntertainment$10.00
6-Aug-21GroceriesEntertainment$20.00
8-Aug-21HealthEntertainment$25.00


I'm looking for a way to have a drop-down for "category" and "subcategory" in each row, and be able to select a category, and only display and select the subcategories that correspond to that category. I tried using various methods with the FILTER function, but they don't work because the relationship stays fixed, it doesn't move along with the rows.

I'd appreciate any suggestions, thanks in advance.
 
Last edited:

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
So, I suppose I'll have to create a separate list for each category and subcategory? I was hoping I could find a solution with only the original list or one for category and another for subcategory, at the most.
 
Upvote 0
So, I suppose I'll have to create a separate list for each category and subcategory? I was hoping I could find a solution with only the original list or one for category and another for subcategory, at the most.
Are there more than one sub-category within one category?
 
Upvote 0
Another option:
if you have 3 or more dependent data validation then it might be difficult to set it up as it requires lots of tables & lots of helper columns. I created a version that uses vba, you only need 1 table, 1 helper column & 1 named range. The code is a bit complicated but easy to set up and maintain. Here:
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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