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!
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Functions like AND, OR, MAX, MEDIAN collapse any array to a single value.

I am guessing you want something like this?

ABCD
1
2
3
4TestDate
515 Feb 2020
6
7ResourceStartEndResult
811 Jan 202031 Mar 20201
9215 Feb 202015 Apr 20200
10312 Jan 202022 Feb 20200
1111 Feb 202029 Feb 20201
1211 Apr 20205 May 20200
13110 Feb 202020 Feb 20201
Sheet1
Cell Formulas
RangeFormula
D8:D13D8=(Resource=1)*(Start<=D$5)*(End>=D$5)
Dynamic array formulas.
Named Ranges
NameRefers ToCells
End=Sheet1!$C$8:$C$13D8
Resource=Sheet1!$A$8:$A$13D8
Start=Sheet1!$B$8:$B$13D8


Is this along the right lines? What do you intend doing with the result? And what version of Excel are you running - the solution shown will display differently if you don't have Excel 365.
 
Upvote 0
Hopefully this makes more sense. I can have multiple (or no) resources assigned to various tasks.


1606877212732.png


I want to be able to use data from the above input to create a timeline like below, but with 1's where that resource would be working that day. In this way I can look for gaps in coverage.

1606877416437.png


Sorry for the lack of clarity. I was realizing on the drive home that I should have included some pictures or something.
 
Upvote 0
Much clearer, thanks.

I'll post back later, but with a bit of luck, someone else may want to respond in the meantime.
 
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 Jan2 Jan3 Jan....13 Feb14 Feb15 Feb16 Feb....14 Apr15 Apr16 Apr
12A111 11     1
13B     111 111
14C     111   1
Sheet1
Cell Formulas
RangeFormula
C12:N14C12=IF(OR((C$11>=Start)*(C$11<=End)*INDEX($C$3:$E$9,,MATCH($B12,$C$2:$E$2,))),1,"")
Named Ranges
NameRefers ToCells
End=Sheet1!$B$3:$B$9C12:N14
Start=Sheet1!$A$3:$A$9C12:N14
 
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 Jan2 Jan3 Jan....13 Feb14 Feb15 Feb16 Feb....14 Apr15 Apr16 Apr
12A111 11     1
13B     111 111
14C     111   1
Sheet1
Cell Formulas
RangeFormula
C12:N14C12=IF(OR((C$11>=Start)*(C$11<=End)*INDEX($C$3:$E$9,,MATCH($B12,$C$2:$E$2,))),1,"")
Named Ranges
NameRefers ToCells
End=Sheet1!$B$3:$B$9C12:N14
Start=Sheet1!$A$3:$A$9C12:N14

Thank you for all of the help thus far! Fairly certain I did this correct, but I am getting an error. I have D7 highlighted. I used new named ranges for "Resources" (K6:T111 on previous picture) and "Title" (K4:T4 in previous picture).
1606884014319.png
 
Upvote 0
See if array-entering the formula (CTRL-SHIFT-ENTER) makes a difference?

Sorry, I can only test Excel 365 on this machine, and I'm rapidly forgetting when array-enter was needed in previous Excel versions.
 
Upvote 0
I can get it to work by perfectly by mimicking exactly what you displayed earlier and am using 365. But when I try it with my data it produces the error.

Test.xlsx
BCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBN
3StartEndResources
41/4/20212/4/2023T Cnslt 1T Cnslt 2Cnslt 1Cnslt 2Editor-ILTDirector1/4/20211/5/20211/6/20211/7/20211/8/20211/11/20211/12/20211/13/20211/14/20211/15/20211/19/20211/20/20211/21/20211/22/20211/25/20211/26/20211/27/20211/28/20211/29/20212/1/20212/2/20212/3/20212/4/20212/5/20212/8/20212/9/20212/10/20212/11/20212/12/20212/16/20212/17/20212/18/20212/19/20212/22/20212/23/20212/24/20212/25/20212/26/20213/1/20213/2/20213/3/20213/4/20213/5/20213/8/20213/9/20213/10/20213/11/20213/12/20213/15/20213/16/20213/17/20213/18/20213/19/2021
51ᅠ1/4/20212/4/2023T Cnslt 1#VALUE!
61.1ᅠ1/4/20212/4/20231T Cnslt 2#VALUE!
71.2ᅠ1/4/20219/24/2021Cnslt 1#VALUE!
81.2.1ᅠ1/4/20216/28/202111Cnslt 2#VALUE!
91.2.2ᅠ6/29/20219/24/202111Editor-ILT#VALUE!
101.3ᅠ9/27/202110/12/2021Director#VALUE!
111.3.1ᅠ9/27/20219/29/202111
121.3.2ᅠ9/30/202110/4/202111
131.3.3ᅠ10/5/202110/7/202111
141.3.4ᅠ10/8/202110/12/202111
151.4ᅠ10/13/202112/17/2021
161.4.110/13/202111/1/202111
171.4.211/2/202111/10/202111
181.4.311/11/202112/2/202111
191.4.410/13/202111/5/202111
201.4.511/8/202111/19/202111
211.4.611/22/202112/2/202111
221.4.712/3/202112/17/2021
231.4.7.1ᅠ12/3/202112/7/202111
241.4.7.2ᅠ12/8/202112/10/202111
251.4.7.3ᅠ12/13/202112/15/202111
261.4.7.4ᅠ12/16/202112/17/202111
271.4.7.5ᅠ12/3/202112/8/202111
281.4.7.6ᅠ12/9/202112/14/202111
291.4.7.7ᅠ12/15/202112/17/202111
301.5ᅠ12/17/202112/17/2021
Est. Development
Cell Formulas
RangeFormula
O4:BN4O4=WORKDAY(N4,1,Holidays)
N4N4='Est. Development'!D6
N5:N10N5=IF(OR((N$4>=Start)*(N$4<=End)*INDEX(Resource,,MATCH($M5,Title,))),1,"")
Named Ranges
NameRefers ToCells
End='Est. Development'!$E$6:$E$30N5:N10
Holidays=Holidays!$E$8:$G$27O4:BN4
Resource='Est. Development'!$F$6:$K$30N5:N10
Start='Est. Development'!$D$6:$D$30N4:N10
Title='Est. Development'!$F$4:$K$4N5:N10
 
Upvote 0
Does it make a difference with:

N5: =IF(OR((N$4>=Start)*(N$4<=End)*(INDEX(Resource,,MATCH($M5,Title,))=1)),1,"")
 
Upvote 0
Solution
Does it make a difference with:

N5: =IF(OR((N$4>=Start)*(N$4<=End)*(INDEX(Resource,,MATCH($M5,Title,))=1)),1,"")
That did the trick! What is the difference that would require that slight alteration? Thank you so much... you made my night!
 
Upvote 0

Forum statistics

Threads
1,215,257
Messages
6,123,916
Members
449,133
Latest member
rduffieldc

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