Greetings,
I am trying to come up with a way to calculate the number of items in-work on every date in a given date range. I'm going to make this generic, but basically, I'm in a manufacturing environment -- different products go into work on different dates, and the # of days in-process can vary from product to product. I want to construct a formula that identifies the number of products that will be in WIP (work-in-process) on each day in the given time frame.
I've attached a sample spreadsheet demonstrating what I'm looking for, including some sample data. Any help would be appreciated.
Thanks!
Last edited by NBVC; 04-21-2011 at 04:18 PM.
Welcome to the forum!
Here's one method:
Amend ranges as necessary and copy down.Code:=SUMPRODUCT(--($B$2:$B$7<=A10),--($C$2:$C$7>=A10))
Cheers,
Docendo discimus.
Please consider:
- Thanking those who helped you. Click the reputation icon
in the contributor's post and add Reputation.
- Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.
Given use of XL2007 you could also use:
=COUNTIFS($B$2:$B$7,"<="&$A10,$C$2:$C$7,">="&$A10)
If the "parts" range is much bigger than your example I'd advise COUNTIFS but note, unlike SUMPRODUCT, it's not backwards compatible with earlier versions of XL.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Thank you both -- the SUMPRODUCT method worked great and gave me what I needed. I'll have a look at the new COUNTIFS function as well. I greatly appreciate your prompt replies.
Cheers.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks