Data Validation

sgaurav

Board Regular
Joined
May 16, 2003
Messages
107
How to do data validation in sheet 1 and cell A4 if the list of Data is stored in a different sheet...lets say "Sheet2". So what I am asking is I have data in sheet 2 but I want to do data validation in sheet1.

Thanks
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Select the cells in Sheet2, go to the Name Box on the Formula Bar, type SList, and hit enter.

Use

=SList

as Source

in the cell (on Sheet1) you want to have a dropdown list.
 
Upvote 0
I am sorry I didn't quite understand it..can you please email me some easy instructions...btw where is this name box located...is there any way you can just go to data and then validation and then select the list from different sheet?

Thanks
 
Upvote 0
sgaurav said:
I am sorry I didn't quite understand it..can you please email me some easy instructions...btw where is this name box located...is there any way you can just go to data and then validation and then select the list from different sheet?

Thanks

Where is the list on Sheet2 exactly -- A2:A10, C4:K4,...?

And which cell(s) do you want to validate on Sheet1?
 
Upvote 0
sgaurav said:
The data is in "Sheet2" and the range is DC11:DC202...

Great, but you forgot to answer: "And which cell(s) do you want to validate on Sheet1?"

When the list is in some other sheet than the sheet where you want to data validate a cell, you have to use names for ranges instead of ranges themselves.

Select DC11:DC202 on Sheet2.
Go to the Name Box on the Formula Bar, type SList, and hit enter.
Activate the cell on Sheet1 where you want to choose from SList.
Activate Data|Validation.
Choose List for Allow.
Enter in the box for Source:

=SList

Click OK.
 
Upvote 0
In Excel 2007 and I think in 2003 as well it works to put in source the range as =[sheetname]![First cell of the range]:[Last cell of the range]

In our example it goes like:
Activate the cell on Sheet1 where you want to choose from the list
Activate Data|Validation.
Choose List for Allow.
Enter in the box for Source:

=Sheet2!DC11:DC202

Click OK.

(Error: "You cannot use references to other worksheets or workbooks for Data Validation criteria" appreas if you have only one cell as lists source. For any range from another sheet even =Sheet2!A1:A1 it works perfect.)
 
Upvote 0
In Excel 2007 and I think in 2003 as well it works to put in source the range as =[sheetname]![First cell of the range]:[Last cell of the range]

In our example it goes like:
Activate the cell on Sheet1 where you want to choose from the list
Activate Data|Validation.
Choose List for Allow.
Enter in the box for Source:

=Sheet2!DC11:DC202

Click OK.

(Error: "You cannot use references to other worksheets or workbooks for Data Validation criteria" appreas if you have only one cell as lists source. For any range from another sheet even =Sheet2!A1:A1 it works perfect.)

It's a best practice to assign a name to a range like Sheet2!DC11:DC202 and use the assigned name as list source in a cell one wants to data validate.
 
Upvote 0
Likely going to have an duh moment in a few, but what is meant by "Activate Data"

using 2007

Thanks
 
Upvote 0

Forum statistics

Threads
1,224,884
Messages
6,181,569
Members
453,053
Latest member
Kiranm13

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top