Solved

Excel validation source

Posted on 2007-03-21
4
131 Views
Last Modified: 2010-04-30
I am using data validation and I need to set it up so that if a cell is added to the source, it will automatically add it to my list box. For example, right now the source for the validation is:
=$BA$1:$BA$28
How do I set it up so that if I input into Range("BA29 "), it will automatically update it?


0
Comment
Question by:tiehaze
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:WJReid
Comment Utility
Hi,

If you make it a dynamic range,

Insert|Name|Define, then type in the Name of the Range you want (RangeName) for example and in the formula box type

=offset(BA1,0,0,counta(BA1:BA200))
This will allow up to 200 entries.

then do the validation and set it up to =RangeName
0
 
LVL 13

Accepted Solution

by:
WJReid earned 500 total points
Comment Utility
Hi,

In the Data|Validation, first select List, then in the Source box type =RangeName or whatever you call the range you have used for the validation.
You could also use $ to make it absolute values, e.g.

=offset($BA$1,0,0,counta($BA$1:$BA$200))
then you can copy the validation to other cells. If you need more than 200 entries, just change the 200 in the formula to whatever you like.

Bill
0
 
LVL 45

Expert Comment

by:patrickab
Comment Utility
You could set it up with this in the 'source box in Data Validation:

=BA:BA

That would include anything you have in column BA.

If you want to include only those cells containing something put this in the source box:

=OFFSET($D$1,0,0,COUNTA($D:$D),1)
0
 
LVL 45

Expert Comment

by:patrickab
Comment Utility
Bill - That's a cross over... although I got the column wrong in the dynamic range - Patrick
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
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 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.

763 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

14 Experts available now in Live!

Get 1:1 Help Now