Solved

Excel validation source

Posted on 2007-03-21
4
140 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
ID: 18764432
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
ID: 18764468
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
ID: 18764475
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
ID: 18764492
Bill - That's a cross over... although I got the column wrong in the dynamic range - Patrick
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

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;…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

770 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