Resource utilization between two dates

emfc00

New Member
Joined
Mar 19, 2019
Messages
14
Hi all,
I have a spreadsheet tracking a project (start and end dates for various tasks) with resources assigned (via the denotation of a 1) for each of those tasks. I've created named ranges for "Start", "End", and each of the resource columns. I would now like to create a calendar of sorts to look for any gaps in resource utilization. To do this I've created rows for each of the resources and each column next to that is a day. I tried to use if/and functions to return a 1 if a resource is allocated on a given day, but all I get are 0's. Here is what I used:

Excel Formula:
=IF(AND(Resource=1,Start<=D$5,End>=D$5),1,0)

Will this not work with ranges? Should I be using a lookup instead?

Thanks!
 
My first formula was a bit lazy, and assumed the Resources range was either 1 or blank (equivalent to 0). The #VALUE error suggest that's not the case - a single rogue space character would be sufficient to throw an error.

The 2nd formula is more robust, testing explicitly that the cell value = 1.
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Brilliant! Thanks for the explanation.

I just realized that this will show me gaps, but not where I might over assign. Is there a way to tweak it so it will instead count how many occurrences meet that match?

For example, if resource A is simultaneously assigned a task from 1-10 January and another task from 8-16 January. Then it should show a 2 for 8, 9 and 10 January. Or am I overreaching capabilities here?
 
Upvote 0
ABCDEFGHIJKLMN
1PersonPersonPerson
2StartEndABC
31 Jan 202010 Jan 20201
415 Feb 202015 Apr 20201
514 Feb 202020 Feb 202011
612 Jan 202014 Feb 20201
720 Feb 202029 Feb 20201
81 Apr 20205 May 20201
916 Apr 202030 Apr 202011
10
11Person1 Jan 20202 Jan 20203 Jan 2020....13 Feb 202014 Feb 202015 Feb 202016 Feb 2020....14 Apr 202015 Apr 202016 Apr 2020
12A111 11     1
13B     122 221
14C     111   1
Sheet3
Cell Formulas
RangeFormula
C12:N14C12=IFERROR(1/(1/COUNTIFS(Start,"<="&C$11,End,">="&C$11,INDEX($C$3:$E$9,,MATCH($B12,$C$2:$E$2,)),1)),"")
Named Ranges
NameRefers ToCells
End=Sheet3!$B$3:$B$9C12:N14
Start=Sheet3!$A$3:$A$9C12:N14
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,030
Members
448,940
Latest member
mdusw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top