LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Lookup Values

I've gotten pretty good at VLOOKUP functions, figuring out how to lookup a
value in a different worksheet based on two values in the first worksheet.
Now I need to figure out how to look up a value in a different worksheet
based on three values in the first worksheet. I have a sheet that is going
to host all my data (accounting categories with corresponding account
numbers). I use the account numbers as the lookup value. The table is then
one of the sheets in the workbook, named for the year (2009, 2010, etc.).
Now here's where it gets tricky. I have to other values. The first is the
accounting period number, which is what I have been using in the past. Those
13 numbers are the first row across the top. The second number is going to
be the week in the period (1, 2, 3, or 4) . So I want to look for a value in
the 2009 sheet, for period 9, week 2. How would I go about doing this? Is
it even possible? For reference, here is the formula that I have been using

VLOOKUP(A10,INDIRECT("'"&$P$3&"'!$A$1:$P$165"),MAT CH($P$4,INDIRECT("'"&$P$3&"'!$A$1:$O$1"),0),FALSE)

Where $P$3 is the year and $P$4 is the period.
$A$1:$P$165 is the table with all the values.
$A$1:$O$1 is the first row of the worksheet with the numbers 1-13.

Thanks in advance.
 
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
i wish to lookup values in column A, & add adjacent values in colu Browny Excel Discussion (Misc queries) 4 September 26th 08 05:00 PM
Lookup with two lookup values KimC Excel Discussion (Misc queries) 1 September 1st 08 04:05 AM
How do I use LOOKUP to return a range of values, then SUM values? irvine79 Excel Worksheet Functions 5 August 4th 06 01:33 PM
Advanced Lookup (lookup for 2 values) 0-0 Wai Wai ^-^ Excel Worksheet Functions 2 March 30th 06 07:09 PM
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 12:48 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"