Solved

Excel dropbox based on table

Posted on 2013-11-20
2
245 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

735 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