Using validation for Categories and Sub-Categories

Michael Lees

New Member
Joined
Jan 1, 2004
Messages
3
People,

I have a spreadsheet in which two columns contain respectively the Category and the Sub-Category of expenses (e.g.: Car and Mechanic, House and Furniture, etc.).

Since all expenses are calculated and displayed in another sheet, I MUST avoid entering non-existing Categories and Sub-Categories. To do this, I am using a Validation drop-down menu for the Category cells and the Sub-Category cells (each cell will show a drop-down with all the options).

The problem is that not all sub-categories correspond to all categories. That is, Furniture is NOT a sub-category for Car!

The way things are right now, I can make a mistake and enter an invalid sub-category for a certain category (since the Sub-CAtegory drop down shows ALL sub-categories, not only the ones for the value in the Category column).

My question is: how can I have the drop-down in the Sub-Category column display only the options for the value selected in the next-door cell, in the Category column? That is, have the values in the drop-down vary according to the value entered in the cell next-door.

I tried using the OFFSET, ADDRESS and CORRESPOND function, and did get something, but nothing that can be put in the VALIDATION configuration.

Thanks for ANY help!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
I did perform a search before posting (not with exactly the keywords you mentioned...), but didn't find anything.

However, the tip you mentioned sounds good. But I am in the middle of nowhere and without Excel, so I can't try it.

I'll come back with good news, I hope.

Thanks,

ML
 
Upvote 0
Unbelievable easy. I wasn't aware of being able to use names in cell Validation.

Thank you, thank you very much.
 
Upvote 0

Forum statistics

Threads
1,203,171
Messages
6,053,875
Members
444,692
Latest member
Queendom

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