Call List of values based on Selection - Validation

Stormseed

Banned
Joined
Sep 18, 2006
Messages
3,274
I have 2 Fields (Columns) and I have implemented Validation Lists in both these 2 columns.

I have around 10 values in Column A which are available in the List and have around 50 values in Column B in the List.

In other words, one of the five values or items can be selected for a single and unique value in Column A.

I want some serious help to understand and learn something new.

Ok, is it possible to call one of these 5 values in Column B depending upon the selection of the value in Column A ? Both the columns have validation lists.

Can I do this via normal Excel or do I need to use VBA ?and how do I get going ?

thank you very much for your time and efforts. Please help.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
I gave it a shot creating the dependant lists with "Static Named Ranges" as in the link provided by Jon. It is a resolution provided by one of the board guru Mr. Aladin.

However, I am trying since last couple of hours and cant find a way to make it work. Everytime I validate the List in Column B with indirect(), it gives me the following error:

"The Source currently evaluates to an error. Do you wish to continue?"

I am so tired now...Any ideas where I am going wrong ?
 
Upvote 0
Can you give us some idea about the lists and what formula you are using in validation? Maybe a small sample of your data?
 
Upvote 0
Can you give us some idea about the lists and what formula you are using in validation? Maybe a small sample of your data?

thanks again Jon,

Here is the information table (deleted some rows as the list is long):
Call Logging Dispositions ver 1.01.xls
DADBDCDDDE
1AO-AccountOpening&ModificationAO-AccountnotactivatedAP-ApprovalrequiredBR-BrokeragecreditnotreceivedCB-Cheque/payorder/DDnotreceived/delayed
2AP-ForApprovalAO-ActivationofdeactivatedclientaccountBR-BrokeragecreditwronglygivenCB-Chequebounced
3BR-BrokerageAO-BankModificationRequestBR-BrokerageRectifiction/ChangeofBrokerageSlabCB-Chequedeposited,butcreditnotreflectinginclientledger
4CB-ClientBankingAO-CommodityA/cOpeningBR-IssueofTDScertificteCB-chequestoptransfer
5CP-ComplianceAO-Trading/DPDeactivationorclosurerequestBR-RequestforchangeinclientmappingCB-IntimationofChequeDeposit
Data


In the table:
the range in Column DA is named as "Departments",
the range in Column DB is named as "AO"
the range in column DC is named as "AP"
the range in column DD is named as "BR"
the range in column DE is named as "CB"

The range in DA which is the Primary list is shown in Column C of my worksheet. The first row is the header row. I need to have a list populated in Column D of my worksheet which is dependant on the selection I make in Column C. If I select AP - For Approval then only the range in column DC should be seen while I click the dropdown arrow.

I use the following formula in cell D2:
Code:
=INDIRECT(C2)

thanks for your kind help.
 
Upvote 0
INDIRECT(LEFT(C2,2))

Sir, that was a quickie and it does look so simple. However it did not click in my mind. thanks again...really !

Also it worked the other way, I changed the names of the "named ranges" from Col DB to DE to whole names which are reflected in Col DA.

Doing this it worked like a charm !!! I decide to go with your input of the nesting the Left() as it looks nice and tidy ;)
 
Upvote 0
Mr. Aladin,

I am experiencing a small issue here:

I am making a provision of extra blank rows in all the columns and hereby changing the range of the Named Ranges to a few extra blank cells. However, this change is being reflected as "blanks" in the dropdown validation lists.

Is there any way I can choose to hiding these blank rows in the lists ?

thanks again for your kind help.
 
Upvote 0
Stormseed,
why are you making a provision of extra blank cells in all of the Named Ranges exactly?
 
Upvote 0

Forum statistics

Threads
1,214,650
Messages
6,120,734
Members
448,987
Latest member
marion_davis

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