ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Enter dates and return availability (https://www.excelbanter.com/excel-worksheet-functions/67883-enter-dates-return-availability.html)

Statler

Enter dates and return availability
 
Hi. I want to be able to enter a couple of dates and have excel then pull out
the availability of a product between those dates... For example:
I want to know how many items are availalbe between the 1st Jan and 5th Jan.
So I enter the dates and can excel then check my data and sum the items from
each day? So if there were 8 things available on each day, it would return
40.

Can anyone help? Thanks

vezerid

Enter dates and return availability
 
Assuming dates in A2:A10, quantities in B2:B10. Further assuming
StartDate in G1, EndDate in G2.

=SUMPRODUCT(B2:B1, --(A2:A10=G1), --(A2:A10<=G2))

HTH
Kostis Vezerides


Statler

Enter dates and return availability
 
Thankyou! That's just the pointer I needed - have been working with it over
the weekend and the sumproduct is good, thanks! Go well.

"vezerid" wrote:

Assuming dates in A2:A10, quantities in B2:B10. Further assuming
StartDate in G1, EndDate in G2.

=SUMPRODUCT(B2:B1, --(A2:A10=G1), --(A2:A10<=G2))

HTH
Kostis Vezerides




All times are GMT +1. The time now is 06:31 AM.

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