Solved

Excel dropbox based on table

Posted on 2013-11-20
2
211 Views
Last Modified: 2013-11-20
I am trying to figure out how I can create a dropdown box in the Account Column of the Bank_Template worksheet (see file attached) based on the information in the ChartofAccounts worksheet, the dropdown box should display the Name (Column C) in the Chart of Account but return the actual Code (column A) in the Bank_Template worksheet...

Also, when the user selects the account I need for Column F of the Bank_Template to automatically populate with the correspondent Tax Code (Column E) of the ChartofAccounts worksheet.

I am not sure how I can accomplish this... attached is a template with a sample data of what I am trying to accomplish.
Template.xlsx
0
Comment
Question by:joeserrone
2 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 39663787
You can't do that with Data Validation, you would require VBA...

I would suggest the easiest way would be to insert a new column after the Account Column that populates with the correct code after selection made in Account.

So first, in the Chart Of Accounts, select all the names in column C and name that range by typing a name in the Name Box to the left of the Formula Bar., say, Names

Then in the Template sheet, C2, go to Data Validation, choose List and enter =Names

You can copy that down.

Now in new column, in D2, enter formula:

=IF(C2="","",INDEX(ChartOFAccounts!$A$2:$A$3,MATCH(C2,Names,0)))

copied down

and in the GST class, similar formula

=IF(C2="","",INDEX(ChartOFAccounts!$E$2:$E$3,MATCH(C2,Names,0)))

copied down

adjust ranges to suit.
Copy-of-Template.xlsx
0
 

Author Comment

by:joeserrone
ID: 39664651
Great advice! I really like this approach...
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now