ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Drop Down List Validation (https://www.excelbanter.com/excel-discussion-misc-queries/167679-drop-down-list-validation.html)

mico

Drop Down List Validation
 
Why is this a valid statement as a validation source
=INDIRECT(VLOOKUP(A2,CenterCodeDesc,2,FALSE))
but this is not
=INDIRECT(VLOOKUP(A:A,CenterCodeDesc,2,FALSE))

How do I create a validation source using column A for Vlookup?

Thanks

ToddEZ

Drop Down List Validation
 
you can't vlookup a whole column, only one cell at a time

"mico" wrote:

Why is this a valid statement as a validation source
=INDIRECT(VLOOKUP(A2,CenterCodeDesc,2,FALSE))
but this is not
=INDIRECT(VLOOKUP(A:A,CenterCodeDesc,2,FALSE))

How do I create a validation source using column A for Vlookup?

Thanks


Jim Thomlinson

Drop Down List Validation
 
The first argument of the vlookup function is a single value and not a range.
You are looking up one item in a range of items, returning a cell 2 columns
to the right...
If you were to look up a range of values within a range of values what
exactly would you expect to be returned?
--
HTH...

Jim Thomlinson


"mico" wrote:

Why is this a valid statement as a validation source
=INDIRECT(VLOOKUP(A2,CenterCodeDesc,2,FALSE))
but this is not
=INDIRECT(VLOOKUP(A:A,CenterCodeDesc,2,FALSE))

How do I create a validation source using column A for Vlookup?

Thanks



All times are GMT +1. The time now is 02:44 PM.

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