List Validation Lookup

marka87uk

Board Regular
Joined
Mar 24, 2007
Messages
247
Hi,

I have a block of data in a sheet with two columns Group and Name. Each Group is a number in which a number of Names can fall into.

On a separate sheet I have a cell which will have a Group number in, and I wish for another range of cells to have a list validation but only of the Names in the one Group specified, i.e. the user should only be able to select names in the Group selected.

It would be too long of a process to define a name for each set of Names manually as the data could change.

How would you achieve this?

Many thanks in advance! :)
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi,

I have a block of data in a sheet with two columns Group and Name. Each Group is a number in which a number of Names can fall into.

On a separate sheet I have a cell which will have a Group number in, and I wish for another range of cells to have a list validation but only of the Names in the one Group specified, i.e. the user should only be able to select names in the Group selected.

It would be too long of a process to define a name for each set of Names manually as the data could change.

How would you achieve this?

Many thanks in advance! :)
Is the source data sorted or grouped together like this:

Book1
AB
1GroupName
21Biff
31Sue
41Lisa
52Bob
62Tom
72Grace
83Sam
93Carol
103Mike
Sheet1
 
Upvote 0
Yes, that's exactly how it's grouped.
Let's assume the source data is in the range Sheet1 A2:B10.

On some other sheet you enter the group number in cell A2 (or, this could be a drop down list of group numbers).

Create this named formula:

Name: List
Refers to:

=OFFSET(Sheet1!$B$2,MATCH(Sheet2!$A$2,Sheet1!$A$2:$A$10,0)-1,,COUNTIF(Sheet1!$A$2:$A$10,Sheet2!$A$2))

Then, as the source for the name drop down use: =List
 
Upvote 0
Thanks very much for your help but I'm unable to get it working correctly (I assume I've done something wrong!).

The formula cell returns 0.

Any ideas what I'm doing wrong or would it be possible for you to post an example workbook?

Thanks!
 
Upvote 0
Thanks a lot!

I didn't understand what you meant at first with creating the named formula but I realise now what I needed to do. :)
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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