Calculating Project Start Date

Datatellsall2

New Member
Joined
Jul 17, 2018
Messages
23
Hi There,

I'm analyzing a large amount of time entry data (30,000+ rows). I'm trying to calculate the day a project started and ended for one person...in the example below I'm trying to solve for when the project started and ended for Amy (via a function).

[TABLE="width: 500"]
<tbody>[TR]
[TD]Project #[/TD]
[TD]Name of Person working on project[/TD]
[TD]Date[/TD]
[TD]Day of Entry[/TD]
[TD]Project Start for Amy (day #)[/TD]
[TD]Project End for Amy (day #)[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]John[/TD]
[TD]4/1/19[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Amy[/TD]
[TD]4/4/19[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]John[/TD]
[TD]4/5/19[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Amy[/TD]
[TD]4/6/19[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Amy[/TD]
[TD]4/7/19[/TD]
[TD]7[/TD]
[TD][/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Thanks!
M
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Try


Book1
ABCDEF
1Project #Name of Person working on projectDateDay of EntryProject Start for Amy (day #)Project End for Amy (day #)
21John4/1/20191  
31Amy4/4/201944 
41John4/5/20195  
51Amy4/6/20196  
61Amy4/7/20197 7
Sheet5
Cell Formulas
RangeFormula
E2{=IF(B2<>"amy","",IF(MIN(IF($B$2:$B$6="amy",$D$2:$D$6))=D2,D2,""))}
E3{=IF(B3<>"amy","",IF(MIN(IF($B$2:$B$6="amy",$D$2:$D$6))=D3,D3,""))}
E4{=IF(B4<>"amy","",IF(MIN(IF($B$2:$B$6="amy",$D$2:$D$6))=D4,D4,""))}
E5{=IF(B5<>"amy","",IF(MIN(IF($B$2:$B$6="amy",$D$2:$D$6))=D5,D5,""))}
E6{=IF(B6<>"amy","",IF(MIN(IF($B$2:$B$6="amy",$D$2:$D$6))=D6,D6,""))}
F2{=IF(B2<>"amy","",IF(MAX(IF($B$2:$B$6="amy",$D$2:$D$6))=D2,D2,""))}
F3{=IF(B3<>"amy","",IF(MAX(IF($B$2:$B$6="amy",$D$2:$D$6))=D3,D3,""))}
F4{=IF(B4<>"amy","",IF(MAX(IF($B$2:$B$6="amy",$D$2:$D$6))=D4,D4,""))}
F5{=IF(B5<>"amy","",IF(MAX(IF($B$2:$B$6="amy",$D$2:$D$6))=D5,D5,""))}
F6{=IF(B6<>"amy","",IF(MAX(IF($B$2:$B$6="amy",$D$2:$D$6))=D6,D6,""))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
If all your headers are the same except for the name you can pull the name out of the header so you do not have to hardcode it.

Code:
=IF(B2<>MID(E$1,19,SEARCH("(",E$1)-20),"",IF(MIN(IF($B$2:$B$6=MID(E$1,19,SEARCH("(",E$1)-20),$D$2:$D$6))=D2,D2,""))

Code:
=IF(B2<>MID(F$1,17,SEARCH("(",F$1)-17),"",IF(MAX(IF($B$2:$B$6=MID(F$1,17,SEARCH("(",F$1)-17),$D$2:$D$6))=D2,D2,""))

Enter with CTRL+SHIFT+ENTER
 
Upvote 0
This is so close! The only other factor I need to consider is that I have multiple projects, so I need the function to look at column A to determine if the same start/end dates are for the same project.

And the names aren't in the header, so I don't think the second message will work...

Thanks!
M
 
Upvote 0
IF you have access to MINIF and MAXIF

E2
Code:
=IF(AND(B2="amy",MINIFS($C$2:$C$9,$B$2:$B$9,"amy",$A$2:$A$9,A2)=C2),DAY(MINIFS($C$2:$C$9,$B$2:$B$9,"amy",$A$2:$A$9,A2)),"")

F2
Code:
=IF(AND(B2="amy",MAXIFS($C$2:$C$9,$B$2:$B$9,"amy",$A$2:$A$9,A2)=C2),DAY(MAXIFS($C$2:$C$9,$B$2:$B$9,"amy",$A$2:$A$9,A2)),"")

IF you do not have MINIF and MAXIF

E2
Code:
=IF(AND(B2="amy",MIN(IF((($B$2:$B$9="amy")*($A$2:$A$9=A2)*($C$2:$C$9)),$C$2:$C$9))=C2),DAY(MIN(IF((($B$2:$B$9="amy")*($A$2:$A$9=A2)*($C$2:$C$9)),$C$2:$C$9))),"")

F2
Code:
=IF(AND(B2="amy",MAX(($B$2:$B$9="amy")*($A$2:$A$9=A2)*$C$2:$C$9)=C2),DAY(MAX(($B$2:$B$9="amy")*($A$2:$A$9=A2)*$C$2:$C$9)),"")
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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