ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Check Date Range and Multiply Stock Qty (https://www.excelbanter.com/excel-worksheet-functions/173582-check-date-range-multiply-stock-qty.html)

Jon[_6_]

Check Date Range and Multiply Stock Qty
 
Hi all,

Further to Petes successful resolution of my earlier query (thanks
again Pete) I am now looking for the following info:

where A = Date Column (date)
where B = Model Column (text and number)
where C = Qty of Model (number)

Pete gave me the following formula to count the number of products in
each month:

=SUMPRODUCT((MONTH(A1:A1000)=1)*(YEAR(A1:A1000)=20 08)*(B1:B1000="Ec80"))

However I now need to count the TOTAL number of products i.e. the
above formula multiplied by the qty in stock of each model

Date Model Qty
01/01/08 EC80 10
20/01/08 EC80 5
31/01/08 ZX40 7

So using the formula above I get "2" as the result

I then need to use this to sum the total of Column C which should give
me a result of "15"

Thanks in advance!!

Jon

Marcelo

Check Date Range and Multiply Stock Qty
 
=SUMPRODUCT((MONTH(A1:A1000)=1)*(YEAR(A1:A1000)=20 08)*(B1:B1000="Ec80"),(c1:c1000))

--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Jon" escreveu:

Hi all,

Further to Petes successful resolution of my earlier query (thanks
again Pete) I am now looking for the following info:

where A = Date Column (date)
where B = Model Column (text and number)
where C = Qty of Model (number)

Pete gave me the following formula to count the number of products in
each month:

=SUMPRODUCT((MONTH(A1:A1000)=1)*(YEAR(A1:A1000)=20 08)*(B1:B1000="Ec80"))

However I now need to count the TOTAL number of products i.e. the
above formula multiplied by the qty in stock of each model

Date Model Qty
01/01/08 EC80 10
20/01/08 EC80 5
31/01/08 ZX40 7

So using the formula above I get "2" as the result

I then need to use this to sum the total of Column C which should give
me a result of "15"

Thanks in advance!!

Jon


Pete_UK

Check Date Range and Multiply Stock Qty
 
Okay, Jon, to sum column C with the same criteria you need to change
the formula to:

=SUMPRODUCT((MONTH(A1:A1000)=1)*(YEAR(A1:A1000)=20 08)*(B1:B1000="Ec80")*(C1:C1000))

Hope this helps.

Pete

On Jan 18, 11:09*am, Jon wrote:
Hi all,

Further to Petes successful resolution of my earlier query (thanks
again Pete) I am now looking for the following info:

where A = Date Column (date)
where B = Model Column (text and number)
where C = Qty of Model (number)

Pete gave me the following formula to count the number of products in
each month:

=SUMPRODUCT((MONTH(A1:A1000)=1)*(YEAR(A1:A1000)=20 08)*(B1:B1000="Ec80"))

However I now need to count the TOTAL number of products i.e. the
above formula multiplied by the qty in stock of each model

Date * * * * * * * * Model * * * * * * * Qty
01/01/08 * * * * * EC80 * * * * * * * * 10
20/01/08 * * * * * EC80 * * * * * * * * *5
31/01/08 * * * * * ZX40 * * * * * * * * * 7

So using the formula above I get "2" as the result

I then need to use this to sum the total of Column C which should give
me a result of "15"

Thanks in advance!!

Jon




All times are GMT +1. The time now is 07:55 AM.

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