Solved

Excel dropbox based on table

Posted on 2013-11-20
2
236 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

839 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