#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default VLOOKUP Tables

Is there a way to have a VLOOKUP function look up a value in 2 columns
instead of 1 column?
Lookup_Value = looking up 1 cell that has a number in it. (Got that part)
Table_Array = Selected my area in my worksheet - ex:
01 topo table 30
02 topo model 31 reception desk
Col_index_num = This is where I would like it to look at both 2nd and 4th
column information. See above - If i enter a 01 or 02 - I get the correct
answer but if I enter a 31 I get a 0. I need a VLOOKUP mixed with a little
HLOOKUP.
Range_lookup = TRUE

Is this possible?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 209
Default VLOOKUP Tables

'
'Cell Formula using the OFFSET worksheet formula with multiple criteria to
' find a value in the same way that the VLOOKUP worksheet formula
' uses a single criteria to find a value.
'
'
'================================================= ===
'Forumla Example 1:
'Using actual values as the search criteria in EXAMPLE 1:
'{=OFFSET(E11,MAX(ROW(1:6)*--(B12:B17="John")*--(C12:C17="Nov")),0)}
' or
'Forumla Example 2:
'Using cell references as the search criteria in EXAMPLE 1:
'{=OFFSET(E11,MAX(ROW(1:6)*--(B12:B17=A6)*--(C12:C17=A7)),0)}
'
' - Remember to use CTRL-SHIFT-ENTER to make the formula an array
' showing the '{' and "}" at the beginning and ending of the formula
'
'Note: Just as VLOOKUP will give you the FIRST value it finds that meets it's
' criteria, this formul will give you the LAST value it finds that meets
' all of it's criteria.
'
'================================================= ===
--
Hope this helps.
Thanks in advance for your feedback.
Gary Brown


"Tara Stokes" wrote:

Is there a way to have a VLOOKUP function look up a value in 2 columns
instead of 1 column?
Lookup_Value = looking up 1 cell that has a number in it. (Got that part)
Table_Array = Selected my area in my worksheet - ex:
01 topo table 30
02 topo model 31 reception desk
Col_index_num = This is where I would like it to look at both 2nd and 4th
column information. See above - If i enter a 01 or 02 - I get the correct
answer but if I enter a 31 I get a 0. I need a VLOOKUP mixed with a little
HLOOKUP.
Range_lookup = TRUE

Is this possible?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default VLOOKUP Tables

You lost me. I have a list of numbers in column D and a list of numbers in
column H. I need the function to look in both columns and reply with an
answer that matches a different cell I've identified. I'm only matching up 1
cell not 2 cells. I need the function to look in 2 columns for the info. Ex:
ColumnA Column B Column C Column
D ColumnE
01 topo table 30 chair
02 topo model 31 reception desk

I want my cell to return the value for 31 = reception desk. Where E1 is
where my search info is.
=VLOOKUP(E1,A1:D4,2,TRUE) Since I can only have the VLOOKUP command look at
1 column of the table - I get a 0 return for 31. If my search was 01 or 02 -
I got the right answer.
Am I looking at this wrong?

"Gary Brown" wrote:

'
'Cell Formula using the OFFSET worksheet formula with multiple criteria to
' find a value in the same way that the VLOOKUP worksheet formula
' uses a single criteria to find a value.
'
'
'================================================= ===
'Forumla Example 1:
'Using actual values as the search criteria in EXAMPLE 1:
'{=OFFSET(E11,MAX(ROW(1:6)*--(B12:B17="John")*--(C12:C17="Nov")),0)}
' or
'Forumla Example 2:
'Using cell references as the search criteria in EXAMPLE 1:
'{=OFFSET(E11,MAX(ROW(1:6)*--(B12:B17=A6)*--(C12:C17=A7)),0)}
'
' - Remember to use CTRL-SHIFT-ENTER to make the formula an array
' showing the '{' and "}" at the beginning and ending of the formula
'
'Note: Just as VLOOKUP will give you the FIRST value it finds that meets it's
' criteria, this formul will give you the LAST value it finds that meets
' all of it's criteria.
'
'================================================= ===
--
Hope this helps.
Thanks in advance for your feedback.
Gary Brown


"Tara Stokes" wrote:

Is there a way to have a VLOOKUP function look up a value in 2 columns
instead of 1 column?
Lookup_Value = looking up 1 cell that has a number in it. (Got that part)
Table_Array = Selected my area in my worksheet - ex:
01 topo table 30
02 topo model 31 reception desk
Col_index_num = This is where I would like it to look at both 2nd and 4th
column information. See above - If i enter a 01 or 02 - I get the correct
answer but if I enter a 31 I get a 0. I need a VLOOKUP mixed with a little
HLOOKUP.
Range_lookup = TRUE

Is this possible?

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
VLOOKUP help, help with tables SC Excel Discussion (Misc queries) 1 April 2nd 08 10:21 PM
vlookup tables april Excel Discussion (Misc queries) 2 January 3rd 08 04:11 PM
VLookup Tables Jo-Jo Excel Worksheet Functions 3 November 18th 07 03:12 AM
vlookup on 3 different tables - please HELP Nir Excel Worksheet Functions 3 October 30th 06 02:54 PM
VLOOKUP with TABLES Serge Excel Discussion (Misc queries) 8 April 28th 06 05:51 AM


All times are GMT +1. The time now is 08:57 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"