Thanks for the reply Tigeravatar (and you too Marcol. You replied whilst I was sorting out my post).
The formula is for part of a complicated booking system:
Columns A&B contain the From and To dates, with the dates formatted dd/mm/yyyy.
Column C contains one of 4, 2 letter codes denoting where the equipment has been taken from.
Column G contains the length of work time, in hours, you will have the piece of equipment (with a work day being 7.5hrs).
What I'm looking to do is calculate how many work hours a piece of equipment has been out of a locker in any given month.
For example, on entry the information is set up like this:
The sheet has been set up so that new entries are added into the next available empty row but, at the click of a button, they are organised in date order under the correct headings, like this:
What I would like to be able to do is, using the sumproduct formula, pull out only those items from the front locker (FL) that were removed in April (so it would ignore the January ones). I need to use both columns A&B as some dates may straddle a month. If an item was removed for 10 days starting on 30th April, as far as our records are concerned, the days it was out of the locker in May, still count as an April hire, if you catch my drift (it's engineering logic I think).
If I pull the information into a blank sheet and take out the headings in column A, the sumproduct formula I mentioned initially works fine. It's the headings that are throwing the formula off and I can't remove them. And, given the way the sheet is set up, the headings move whenever new information is added so I can't even write the formula to ignore certain cells. I just can't work out how to write the formula to get it to ignore text but still look for April (i.e. Month(A18:A105)=4).
Hope that makes sense.
Bookmarks