#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 144
Default lookup

Is there a way to lookup information in a table using both colm A and B as
the lookup value?

For example I have a list of names in Colm A and in Colm B I have one of the
four (1) Premium (2) Comm (3) Paid (4) Profit. The four things in colm B are
listed over and over again for each name in colm. Colm's C - ?? are months
Jan - Dec.

I need to be able to write a formula that will find Cindy in colm A and
Premium in colm B and then return the x colm #. Just like vlookup only with
two lookup values.

Hope this makes sense. Any help will be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default lookup

F1 has the name, F2 has the classification (Premium etc). The
following *array* formula will do:

=INDEX(C2:C100,MATCH(F1&F2,A2:A100&B2:B100,0))

Since it is an array formula, you must commit it with key combo Ctrl
+Shift+Enter

HTH
Kostis Vezerides

On Feb 14, 5:57 pm, Jordan wrote:
Is there a way to lookup information in a table using both colm A and B as
the lookup value?

For example I have a list of names in Colm A and in Colm B I have one of the
four (1) Premium (2) Comm (3) Paid (4) Profit. The four things in colm B are
listed over and over again for each name in colm. Colm's C - ?? are months
Jan - Dec.

I need to be able to write a formula that will find Cindy in colm A and
Premium in colm B and then return the x colm #. Just like vlookup only with
two lookup values.

Hope this makes sense. Any help will be greatly appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 144
Default lookup

Vezerid. Thank you very much for your reply. This helps alot. One
additional question is you dont mind. Using the formula that you gave me, if
C2:C100 is information for January and D2:D100 is information for Febraury
and so on through December, is there a way to use a formual so that it will
know which month to look for?

Each row that the formula is on shows the month it is for so I could easily
use a month() to determin which colm in the index to use.

Thanks again for your help.

"vezerid" wrote:

F1 has the name, F2 has the classification (Premium etc). The
following *array* formula will do:

=INDEX(C2:C100,MATCH(F1&F2,A2:A100&B2:B100,0))

Since it is an array formula, you must commit it with key combo Ctrl
+Shift+Enter

HTH
Kostis Vezerides

On Feb 14, 5:57 pm, Jordan wrote:
Is there a way to lookup information in a table using both colm A and B as
the lookup value?

For example I have a list of names in Colm A and in Colm B I have one of the
four (1) Premium (2) Comm (3) Paid (4) Profit. The four things in colm B are
listed over and over again for each name in colm. Colm's C - ?? are months
Jan - Dec.

I need to be able to write a formula that will find Cindy in colm A and
Premium in colm B and then return the x colm #. Just like vlookup only with
two lookup values.

Hope this makes sense. Any help will be greatly appreciated.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default lookup

You need to replace C2:C100 in the formula I gave you with one of
various expressions that can make the range dynamic. The solution I am
proposing assumes that you have the month numbers in row 1 (C1:N1) and
that F3 contains the month in question

=INDEX(OFFSET(B2:B100,MATCH(F3,C1:N1,0)),MATCH(F1& F2,A2:A100&B2:B100,0))

HTH
Kostis

On Feb 14, 8:24 pm, Jordan wrote:
Vezerid. Thank you very much for your reply. This helps alot. One
additional question is you dont mind. Using the formula that you gave me, if
C2:C100 is information for January and D2:D100 is information for Febraury
and so on through December, is there a way to use a formual so that it will
know which month to look for?

Each row that the formula is on shows the month it is for so I could easily
use a month() to determin which colm in the index to use.

Thanks again for your help.

"vezerid" wrote:
F1 has the name, F2 has the classification (Premium etc). The
following *array* formula will do:


=INDEX(C2:C100,MATCH(F1&F2,A2:A100&B2:B100,0))


Since it is an array formula, you must commit it with key combo Ctrl
+Shift+Enter


HTH
Kostis Vezerides


On Feb 14, 5:57 pm, Jordan wrote:
Is there a way to lookup information in a table using both colm A and B as
the lookup value?


For example I have a list of names in Colm A and in Colm B I have one of the
four (1) Premium (2) Comm (3) Paid (4) Profit. The four things in colm B are
listed over and over again for each name in colm. Colm's C - ?? are months
Jan - Dec.


I need to be able to write a formula that will find Cindy in colm A and
Premium in colm B and then return the x colm #. Just like vlookup only with
two lookup values.


Hope this makes sense. Any help will be greatly appreciated.



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
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Sumproduct - Condition based on lookup of a Lookup Hari Excel Discussion (Misc queries) 12 May 31st 06 09:28 AM
Advanced Lookup (lookup for 2 values) 0-0 Wai Wai ^-^ Excel Worksheet Functions 2 March 30th 06 07:09 PM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM
How do I lookup and return different values when the lookup value. kg Excel Discussion (Misc queries) 1 January 20th 05 12:53 AM


All times are GMT +1. The time now is 11:32 AM.

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

About Us

"It's about Microsoft Excel"