Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Vertical Lookup from a List

Both worked! Thanks!
--
BDG


"Arvi Laanemets" wrote:

Hi


"B Golden" wrote in message
...
Got it...

Cell A1 is the pull down referring to a named list on a separate sheet.
To
make it simple, say the list contains A, B, C & D, which also is the name
of
the array that I want to call up. If I choose B, I want my formula to
read
VLOOKUP(A4,A1,2) and then refer to named array B to get my answer.


The syntax for VLOOKUP is :
VLOOKUP(LookupValue,LookupRange,ColumNumber,LookFo rNearest)

LookupValue is the value, the function is looking for in leftmost column of
LookupRange;
LookupRange is a contignous range, which must start with lookup column, and
contain return column;
Column number is the relative position of return column in LookupRange
(lookup column number is 1)
LookForNearest determines the behaviour of function when no exact match is
found.
When LookForNearest is False or 0, the exact match is searched for,
regardless of lookup column order. When no matching valie is found in
leftmost column, and #N/A error is returned;
When LookForNearest is True or 1, and the lookup table is sorted by
leftmost column, the nearest match for LookupValue is returned. When the
table is unordered, the function behaviour is not predictable;

VLOOKUP(A4,A1,2) doesn´t have any sinnvoll meaning and does return an error
(because lookup range is a singel cell, you are looking for a value A4 in
cell A1, and are attempting to return a value from second column of this
cell !!!).

OK. Let's quess what you did mean at all. You have some named ranges (A, B C
and D), with at least 2 columns in any of them, are you? Depending on
selection in data validation list in A1, you want to look for value in cell
A4 in leftmost column of one of those named ranges, and return according
value from second column of same range. Am I right so long?

On fly:
=VLOOKUP(A4,CHOOSE(MATCH(A1,{"A";"B";"C";"D"},0),A ,B,C,D),2,0)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Relative Value to a Vertical Lookup Result? jillteresa Excel Worksheet Functions 3 May 19th 06 03:38 PM
lookup? list data into summary table Joe Excel Worksheet Functions 6 December 22nd 05 12:25 AM
Vertical Lookup problem William Excel Worksheet Functions 3 November 22nd 05 11:48 AM
How to lookup the dates of a list that are only the first of the . Snaggle22 Excel Worksheet Functions 3 April 12th 05 10:39 PM
Lookup closest number in list Jeff Excel Discussion (Misc queries) 6 November 26th 04 07:27 PM


All times are GMT +1. The time now is 11:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"