Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 273
Default Referencing 3 values for a lookup

I have a spreadsheet that contains data that has three identifiers: Week,
Type & Coupon. I was wondering if there was a way to reference this data by
calling out these three identifiers.

Example:

200701 200701 200702 200702 200703 200703
Count Value Count Value Count Value
Coupon1 2 10.5 3 15.4 9 21.4
Coupon2 5 2.3 10 12.8 16 16.7
Coupon3 7 8.4 2 4.3 16 12.7

I would like to Reference which Coupon, Type and Week in order to get a value:

Coupon1 Value 200702 15.4


Thanks in advance for your help,
Chad




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 176
Default Referencing 3 values for a lookup

I have made a couple assuptions as to what cells your values occur. First,
your Coupon 1,2,3 values occur in A3,A4,A5... and your dates occur in
B1,C1,D1, etc.

Also:
The Coupon value you want to look up is located in A7.
The option where you choose "Count" or "Value" is located in A8
The Date value is located in A9.

All that being said, here is your formula:

=VLOOKUP(A7,$A$3:$G$5,MATCH(A9,$A$1:$G$1,0)+(A8="V alue"))

Change the ranges to fit your data.

--
Regards,
Dave


"Chad" wrote:

I have a spreadsheet that contains data that has three identifiers: Week,
Type & Coupon. I was wondering if there was a way to reference this data by
calling out these three identifiers.

Example:

200701 200701 200702 200702 200703 200703
Count Value Count Value Count Value
Coupon1 2 10.5 3 15.4 9 21.4
Coupon2 5 2.3 10 12.8 16 16.7
Coupon3 7 8.4 2 4.3 16 12.7

I would like to Reference which Coupon, Type and Week in order to get a value:

Coupon1 Value 200702 15.4


Thanks in advance for your help,
Chad




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dav Dav is offline
external usenet poster
 
Posts: 1
Default Referencing 3 values for a lookup


If your data is in a1:g5 so coupon1 is in a3

and the parameters you are wishing to match are coupon in a7, date in
a8, value in a9

try something like

=SUMPRODUCT((B1:G1=A8)*(B2:G2=A9)*OFFSET(B2,MATCH( A7,A3:A5,0),0,1,6))

Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=572196

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
Lookup on 2 Values Bobak Excel Worksheet Functions 1 May 8th 06 02:45 PM
Summing lookup values ~C Excel Worksheet Functions 4 April 27th 06 06:33 PM
How do I use vlookup with two lookup values? pinpalchris Excel Worksheet Functions 4 April 25th 06 06:57 PM
vlookup using two lookup values? tjb Excel Worksheet Functions 10 November 25th 05 05:21 AM
Lookup values in one column to return another [email protected] Excel Worksheet Functions 4 November 17th 05 09:42 PM


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