Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Streep
 
Posts: n/a
Default double vlookup in same function

I need to look up values in a tabel that has subtables.
Example:
35376 WEEK 22
MONTH 33
MIN 11
TTIN 44
35377 WEEK 55
MONTH 88
MIN 77
TTIN 99
I enter 35377, MIN and the function should then return 77
I cannot use the system where the WEEK, MONTH etc are in separate columns
such as
WEEK MONTH
35376 22 33
35377 55 88

  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

How is this table layed out? Can't tell for sure from the post.

Biff

"Streep" wrote in message
...
I need to look up values in a tabel that has subtables.
Example:
35376 WEEK 22
MONTH 33
MIN 11
TTIN 44
35377 WEEK 55
MONTH 88
MIN 77
TTIN 99
I enter 35377, MIN and the function should then return 77
I cannot use the system where the WEEK, MONTH etc are in separate columns
such as
WEEK MONTH
35376 22 33
35377 55 88



  #3   Report Post  
Domenic
 
Posts: n/a
Default

Assumptions:

A1:C8 contains your table

Each record is contained in 4 rows


Formula:

=VLOOKUP(F1,OFFSET(A1,MATCH(E1,A1:A8,0)-1,1,4,2),2,0)

....where F1 contains MIN, and E1 contains 35377. Adjust the range
accordingly.

Hope this helps!

In article ,
Streep wrote:

I need to look up values in a tabel that has subtables.
Example:
35376 WEEK 22
MONTH 33
MIN 11
TTIN 44
35377 WEEK 55
MONTH 88
MIN 77
TTIN 99
I enter 35377, MIN and the function should then return 77
I cannot use the system where the WEEK, MONTH etc are in separate columns
such as
WEEK MONTH
35376 22 33
35377 55 88

  #4   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Let A2:C21 be the data area.
Assuming that each subtable has the entries WEEK, MONTH, MIN, and TTIN
and F2 houses a lookup value like 35377 and G2 a lookup value like MIN...

In H2 enter:

=MATCH(F2,$A$2:$A$21,0)

In E2 enter:

=IF(ISNUMBER(H2),VLOOKUP(G2,INDEX($B$2:$B$21,H2):$ C$21,2,0),"")

Streep wrote:
I need to look up values in a tabel that has subtables.
Example:
35376 WEEK 22
MONTH 33
MIN 11
TTIN 44
35377 WEEK 55
MONTH 88
MIN 77
TTIN 99
I enter 35377, MIN and the function should then return 77
I cannot use the system where the WEEK, MONTH etc are in separate columns
such as
WEEK MONTH
35376 22 33
35377 55 88

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
format cell based on results of vlookup function Edith F Excel Worksheet Functions 1 July 21st 05 07:39 PM
Using ~ in VLookup function Andyp95 Excel Worksheet Functions 3 June 29th 05 04:35 AM
how do I write a vlookup function within an iserror function so t. JBLeeds Excel Worksheet Functions 2 March 16th 05 10:30 AM
How can I see an example of the vlookup function in excel? Ian G Excel Worksheet Functions 2 November 14th 04 11:34 PM
Regarding IF function or vLOOKUP function wuwu Excel Worksheet Functions 2 November 13th 04 01:38 PM


All times are GMT +1. The time now is 09:05 AM.

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"