ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   data lookup/validation syntax (https://www.excelbanter.com/excel-programming/436245-data-lookup-validation-syntax.html)

Doug Howell

data lookup/validation syntax
 
In Excel 2007 I have a sheet "sheet1" which has a part number in a
cell. (A5)
I want cell (D5) to have a data validation drop down menu which is
populated from "sheet2".

Sheet2 data looks something like this:

Column A Column B
partnumber1 tradename1
partnumber1 tradename2
partnumber2 tradename3
partnumber3 tradename4

The drop down in (D5) sheet1 should only contain tradenames which have
partnumber matching (A5) sheet1.


Ideas?
Can I use SQL syntax in the data validation lookup?


Gord Dibben

data lookup/validation syntax
 
Perhaps Debra Dalgleish's site can get you going.

http://www.contextures.on.ca/xlDataVal02.html


Gord Dibben MS Excel MVP

On Mon, 16 Nov 2009 13:07:52 -0800 (PST), Doug Howell
wrote:

In Excel 2007 I have a sheet "sheet1" which has a part number in a
cell. (A5)
I want cell (D5) to have a data validation drop down menu which is
populated from "sheet2".

Sheet2 data looks something like this:

Column A Column B
partnumber1 tradename1
partnumber1 tradename2
partnumber2 tradename3
partnumber3 tradename4

The drop down in (D5) sheet1 should only contain tradenames which have
partnumber matching (A5) sheet1.


Ideas?
Can I use SQL syntax in the data validation lookup?




All times are GMT +1. The time now is 10:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com