Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jennifer
 
Posts: n/a
Default Help with Look Up Table Please?

I don't know if this is possible but here is my table:

Item Date Qty
xyz 7/3 452
xyz 7/4 225
zzy 7/2 120
abc 7/1 352

Can I do a lookup that will first search for Item, then date and return qty?
So if Item = xyz, and date = 7/4, then 452, else 0?

Any help is appreciated! TIA
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ragdyer
 
Posts: n/a
Default Help with Look Up Table Please?

Say your datalist is A2 to C5,
And you enter your search criteria in
D1 = item
D2 = date

Then try this:

=SUMPRODUCT((A2:A5=D1)*(B2:B5=D2)*C2:C5)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Jennifer" wrote in message
...
I don't know if this is possible but here is my table:

Item Date Qty
xyz 7/3 452
xyz 7/4 225
zzy 7/2 120
abc 7/1 352

Can I do a lookup that will first search for Item, then date and return
qty?
So if Item = xyz, and date = 7/4, then 452, else 0?

Any help is appreciated! TIA


  #3   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default Help with Look Up Table Please?

Enter as an array formula with Ctrl+Shift+Enter

E1 contains Item
E2 contains date

=IF(ISNA(INDEX($C$2:$C$5,MATCH(1,($A$2:$A$5=E1)*($ B$2:$B$5=E2),0))),0,INDEX($C$2:$C$5,MATCH(1,($A$2: $A$5=E1)*($B$2:$B$5=E2),0)))

HTH

"Jennifer" wrote:

I don't know if this is possible but here is my table:

Item Date Qty
xyz 7/3 452
xyz 7/4 225
zzy 7/2 120
abc 7/1 352

Can I do a lookup that will first search for Item, then date and return qty?
So if Item = xyz, and date = 7/4, then 452, else 0?

Any help is appreciated! TIA

  #4   Report Post  
Posted to microsoft.public.excel.misc
Jennifer
 
Posts: n/a
Default Help with Look Up Table Please?

It worked. Thanks a bunch!

"Toppers" wrote:

Enter as an array formula with Ctrl+Shift+Enter

E1 contains Item
E2 contains date

=IF(ISNA(INDEX($C$2:$C$5,MATCH(1,($A$2:$A$5=E1)*($ B$2:$B$5=E2),0))),0,INDEX($C$2:$C$5,MATCH(1,($A$2: $A$5=E1)*($B$2:$B$5=E2),0)))

HTH

"Jennifer" wrote:

I don't know if this is possible but here is my table:

Item Date Qty
xyz 7/3 452
xyz 7/4 225
zzy 7/2 120
abc 7/1 352

Can I do a lookup that will first search for Item, then date and return qty?
So if Item = xyz, and date = 7/4, then 452, else 0?

Any help is appreciated! TIA

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
How to import a table on a Web page to Excel? Dmitry Kopnichev Excel Discussion (Misc queries) 8 November 11th 05 10:26 AM
Pivot -- want to use Max and Sum in same table Dave Excel Worksheet Functions 1 July 13th 05 04:37 AM
Change Data In Pivot Table John Calder New Users to Excel 1 July 7th 05 10:41 PM
Pivot Table - Multiple consolidation Range tengreen Excel Worksheet Functions 1 July 1st 05 07:18 PM
Removing errors from a Pivot table Mighty Magpie Excel Discussion (Misc queries) 2 February 3rd 05 03:15 PM


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