Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup | Excel Worksheet Functions | |||
Sumproduct - Condition based on lookup of a Lookup | Excel Discussion (Misc queries) | |||
Advanced Lookup (lookup for 2 values) | Excel Worksheet Functions | |||
Pivot table doing a lookup without using the lookup function? | Excel Discussion (Misc queries) | |||
How do I lookup and return different values when the lookup value. | Excel Discussion (Misc queries) |