• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Stuck on a formula

droeyourhero

New Member
Hi Everyone!

I'm looking for help/suggestions for the following issue:

I'm trying to develop a spreadsheet to track equipment utilization and to either flag or prevent the selection of a piece of equipment that is over utilized based on an overlap in the time period. In the sample that I've provided I have a simple list of projects with start and end dates then I have a column for equipment ID and a column for the description of that corresponding piece of equipment.

The first three columns are conditionally formatted to highlight overlapping dates. The forth column is a simple drop-down list, and the fifth column is supposed to return either the equipment description if the piece of equipment has not been used on another project, or return "overallocated" if it has been chosen to be used on a project that has a time overlap with another project.

On the attached spreadsheet Projects 18010 and 18040 have Start and End dates that overlap. I chose Equipment C-100 for both and it returned "overallocated" as it was supposed to. But then I chose the same piece of equipment for Project 18020, which has a Start and End date that does not overlap with any of the other projects, and should allow me to choose Equipment C-100, but still returns "overallocated". This is where I'm stuck at.

Any help would be greatly appreciated.
 

Attachments

  • Equipment Utilization(test).xlsx
    12.9 KB · Views: 13
Actually, after checking some dates the formula seems to give incorrect results.

This is your corrected formula:
=IF(SUMPRODUCT(($C3<=$D$3:$D$9) * ($D3>=$C$3:$C$9) * ($E3=$E$3:$E$9)) > 1, "Overallocated", VLOOKUP(E3, 'Equipment A'!$A$2:$C$11, 2))
 
You are correct, I started switching back and forth, trying to test every scenario and it didn't quite seem to work. But with your corrections its working perfectly.

Thanks again!
 
Back
Top