View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_] Ashish Mathur[_2_] is offline
external usenet poster
 
Posts: 1,766
Default Looking up data.

Hi,

You could try this

=sumproduct((range1=A2)*(range2=B2)*(range3))

range1 is the range on sheet 1 which has the item code
range2 is the range on sheet 1 which has the dates
range3 if the range on sheet 1 which has the units

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Kewlstix" wrote in message
...
Howdy. I have been trying to figure out how to do the following;
Example Columns: Date, ItemCode, Desc, Units.
On another sheet, I have Item Code, Date, Units, followed by dates in row
1.
I need to sum all the units that match Item Code, Date. I just don't know
how to do it. I've tried to use and(), but have not received the desired
results.

Can you help me? I really want to be able to do this.