ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Looking up data. (https://www.excelbanter.com/excel-worksheet-functions/242758-looking-up-data.html)

Kewlstix

Looking up data.
 
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.

Ashish Mathur[_2_]

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.



Ms-Exl-Learner

Looking up data.
 
Try Sumif.

=SUMFI(range,criteria,sum range)

=SUMIF("Date Range", "Date Criteria","Unit")

=SUMIF("ITEM CODES RANGE", "Particular Item Code","Unit")

Have a look in sumif examples in help menu.

If this post helps, Click Yes!

--------------------
(MS-Exl-Learner)
--------------------



"Kewlstix" wrote:

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.



All times are GMT +1. The time now is 11:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com