Good morning,
I was wondering if someonecould give me some help on a formula.
First of all, a bit ofbackground.
I have 2 tabs
Tab 1 contains data presentingdifferent projects, sometimes pack of the same package.
<tbody>
[TD="width: 112, bgcolor: transparent"]
[/TD]
[TD="width: 118, bgcolor: transparent"] A [/TD]
[TD="width: 118, bgcolor: transparent"] B [/TD]
[TD="width: 123, bgcolor: transparent"] C [/TD]
[TD="width: 123, bgcolor: transparent"] D [/TD]
[TD="width: 112, bgcolor: transparent"] E [/TD]
[TD="width: 112, bgcolor: transparent"] 1 [/TD]
[TD="width: 118, bgcolor: transparent"] Project no [/TD]
[TD="width: 118, bgcolor: transparent"] Project title [/TD]
[TD="width: 123, bgcolor: transparent"] Project start date [/TD]
[TD="width: 123, bgcolor: transparent"] Project Finish [/TD]
[TD="width: 112, bgcolor: transparent"] [/TD]
[TD="width: 112, bgcolor: transparent"] 2 [/TD]
[TD="width: 118, bgcolor: transparent"] 01 [/TD]
[TD="width: 118, bgcolor: transparent"] Title 1 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/01/2019 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/05/2019 [/TD]
[TD="width: 112, bgcolor: transparent"] [/TD]
[TD="width: 112, bgcolor: transparent"] 3 [/TD]
[TD="width: 118, bgcolor: transparent"] 01 [/TD]
[TD="width: 118, bgcolor: transparent"] Title 2 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/01/2019 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/05/2019 [/TD]
[TD="width: 112, bgcolor: transparent"] [/TD]
[TD="width: 112, bgcolor: transparent"] 4 [/TD]
[TD="width: 118, bgcolor: transparent"] 01 [/TD]
[TD="width: 118, bgcolor: transparent"] Title 3 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/01/2019 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/05/2019 [/TD]
[TD="width: 112, bgcolor: transparent"] [/TD]
[TD="width: 112, bgcolor: transparent"] 5 [/TD]
[TD="width: 118, bgcolor: transparent"] 02 [/TD]
[TD="width: 118, bgcolor: transparent"] Title 4 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/01/2019 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/06/2019 [/TD]
[TD="width: 112, bgcolor: transparent"] [/TD]
[TD="width: 112, bgcolor: transparent"] 6 [/TD]
[TD="width: 118, bgcolor: transparent"] 03 [/TD]
[TD="width: 118, bgcolor: transparent"] Title 5 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/02/2019 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/09/2019 [/TD]
[TD="width: 112, bgcolor: transparent"] [/TD]
[TD="width: 112, bgcolor: transparent"] 7 [/TD]
[TD="width: 118, bgcolor: transparent"] 03 [/TD]
[TD="width: 118, bgcolor: transparent"] Title 6 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/03/2019 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/08/2019 [/TD]
[TD="width: 112, bgcolor: transparent"] [/TD]
</tbody>
Tab 2 contains another tablethat counts the number of occurrences of an event (such as Project start dateor Project Finish), with the below formula:
<tbody>
[TD="width: 113, bgcolor: transparent"]
[/TD]
[TD="width: 119, bgcolor: transparent"] A [/TD]
[TD="width: 120, bgcolor: transparent"] B [/TD]
[TD="width: 121, bgcolor: transparent"] C [/TD]
[TD="width: 118, bgcolor: transparent"] D [/TD]
[TD="width: 116, bgcolor: transparent"] E [/TD]
[TD="width: 113, bgcolor: transparent"] 1 [/TD]
[TD="width: 119, bgcolor: transparent"] [/TD]
[TD="width: 120, bgcolor: transparent"] January [/TD]
[TD="width: 121, bgcolor: transparent"] February [/TD]
[TD="width: 118, bgcolor: transparent"] March [/TD]
[TD="width: 116, bgcolor: transparent"] April [/TD]
[TD="width: 113, bgcolor: transparent"] 2 [/TD]
[TD="width: 119, bgcolor: transparent"] Project Start [/TD]
[TD="width: 120, bgcolor: transparent"] [/TD]
[TD="width: 121, bgcolor: transparent"] [/TD]
[TD="width: 118, bgcolor: transparent"] [/TD]
[TD="width: 116, bgcolor: transparent"] [/TD]
[TD="width: 113, bgcolor: transparent"] 3 [/TD]
[TD="width: 119, bgcolor: transparent"] Project Finish [/TD]
[TD="width: 120, bgcolor: transparent"] [/TD]
[TD="width: 121, bgcolor: transparent"] [/TD]
[TD="width: 118, bgcolor: transparent"] [/TD]
[TD="width: 116, bgcolor: transparent"] [/TD]
[TD="width: 113, bgcolor: transparent"] 4 [/TD]
[TD="width: 119, bgcolor: transparent"] [/TD]
[TD="width: 120, bgcolor: transparent"] [/TD]
[TD="width: 121, bgcolor: transparent"] [/TD]
[TD="width: 118, bgcolor: transparent"] [/TD]
[TD="width: 116, bgcolor: transparent"] [/TD]
[TD="width: 113, bgcolor: transparent"] 5 [/TD]
[TD="width: 119, bgcolor: transparent"] [/TD]
[TD="width: 120, bgcolor: transparent"] [/TD]
[TD="width: 121, bgcolor: transparent"] [/TD]
[TD="width: 118, bgcolor: transparent"] [/TD]
[TD="width: 116, bgcolor: transparent"] [/TD]
[TD="width: 113, bgcolor: transparent"] 6 [/TD]
[TD="width: 119, bgcolor: transparent"] [/TD]
[TD="width: 120, bgcolor: transparent"] [/TD]
[TD="width: 121, bgcolor: transparent"] [/TD]
[TD="width: 118, bgcolor: transparent"] [/TD]
[TD="width: 116, bgcolor: transparent"] [/TD]
[TD="width: 113, bgcolor: transparent"] 7 [/TD]
[TD="width: 119, bgcolor: transparent"] [/TD]
[TD="width: 120, bgcolor: transparent"] [/TD]
[TD="width: 121, bgcolor: transparent"] [/TD]
[TD="width: 118, bgcolor: transparent"] [/TD]
[TD="width: 116, bgcolor: transparent"] [/TD]
</tbody>
From column B to E I have a formulathat would count the occurencies of an event such as Project Start or ProjectFinish
For January the formula wouldlook like this for this example:
=SUMPRODUCT(1*(MONTH('Tab 1'!$B$2:$B$7)=1)*(YEAR('Tab 2 '!$B$2:$B$7)=2019))
What works so far: theformula does pick up every occurrences happening in a specific month, but Iwould like now to go one step beyond and ask the formula to only count one occurrenceper Project no.
For example, for Project no01 there are 3 different project titles, and currently the formula will count 3different projects. BUut would like the formula to only return 1.
My question to you: how can Iask excel to look up first at the project number and count one occurrence anddiscard a new occurrence within the same Project no off the calculation?
I was wondering if someonecould give me some help on a formula.
First of all, a bit ofbackground.
I have 2 tabs
Tab 1 contains data presentingdifferent projects, sometimes pack of the same package.
[TD="width: 118, bgcolor: transparent"] A [/TD]
[TD="width: 118, bgcolor: transparent"] B [/TD]
[TD="width: 123, bgcolor: transparent"] C [/TD]
[TD="width: 123, bgcolor: transparent"] D [/TD]
[TD="width: 112, bgcolor: transparent"] E [/TD]
[TD="width: 112, bgcolor: transparent"] 1 [/TD]
[TD="width: 118, bgcolor: transparent"] Project no [/TD]
[TD="width: 118, bgcolor: transparent"] Project title [/TD]
[TD="width: 123, bgcolor: transparent"] Project start date [/TD]
[TD="width: 123, bgcolor: transparent"] Project Finish [/TD]
[TD="width: 112, bgcolor: transparent"] [/TD]
[TD="width: 112, bgcolor: transparent"] 2 [/TD]
[TD="width: 118, bgcolor: transparent"] 01 [/TD]
[TD="width: 118, bgcolor: transparent"] Title 1 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/01/2019 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/05/2019 [/TD]
[TD="width: 112, bgcolor: transparent"] [/TD]
[TD="width: 112, bgcolor: transparent"] 3 [/TD]
[TD="width: 118, bgcolor: transparent"] 01 [/TD]
[TD="width: 118, bgcolor: transparent"] Title 2 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/01/2019 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/05/2019 [/TD]
[TD="width: 112, bgcolor: transparent"] [/TD]
[TD="width: 112, bgcolor: transparent"] 4 [/TD]
[TD="width: 118, bgcolor: transparent"] 01 [/TD]
[TD="width: 118, bgcolor: transparent"] Title 3 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/01/2019 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/05/2019 [/TD]
[TD="width: 112, bgcolor: transparent"] [/TD]
[TD="width: 112, bgcolor: transparent"] 5 [/TD]
[TD="width: 118, bgcolor: transparent"] 02 [/TD]
[TD="width: 118, bgcolor: transparent"] Title 4 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/01/2019 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/06/2019 [/TD]
[TD="width: 112, bgcolor: transparent"] [/TD]
[TD="width: 112, bgcolor: transparent"] 6 [/TD]
[TD="width: 118, bgcolor: transparent"] 03 [/TD]
[TD="width: 118, bgcolor: transparent"] Title 5 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/02/2019 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/09/2019 [/TD]
[TD="width: 112, bgcolor: transparent"] [/TD]
[TD="width: 112, bgcolor: transparent"] 7 [/TD]
[TD="width: 118, bgcolor: transparent"] 03 [/TD]
[TD="width: 118, bgcolor: transparent"] Title 6 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/03/2019 [/TD]
[TD="width: 123, bgcolor: transparent"] 01/08/2019 [/TD]
[TD="width: 112, bgcolor: transparent"] [/TD]
</tbody>
Tab 2 contains another tablethat counts the number of occurrences of an event (such as Project start dateor Project Finish), with the below formula:
[TD="width: 119, bgcolor: transparent"] A [/TD]
[TD="width: 120, bgcolor: transparent"] B [/TD]
[TD="width: 121, bgcolor: transparent"] C [/TD]
[TD="width: 118, bgcolor: transparent"] D [/TD]
[TD="width: 116, bgcolor: transparent"] E [/TD]
[TD="width: 113, bgcolor: transparent"] 1 [/TD]
[TD="width: 119, bgcolor: transparent"] [/TD]
[TD="width: 120, bgcolor: transparent"] January [/TD]
[TD="width: 121, bgcolor: transparent"] February [/TD]
[TD="width: 118, bgcolor: transparent"] March [/TD]
[TD="width: 116, bgcolor: transparent"] April [/TD]
[TD="width: 113, bgcolor: transparent"] 2 [/TD]
[TD="width: 119, bgcolor: transparent"] Project Start [/TD]
[TD="width: 120, bgcolor: transparent"] [/TD]
[TD="width: 121, bgcolor: transparent"] [/TD]
[TD="width: 118, bgcolor: transparent"] [/TD]
[TD="width: 116, bgcolor: transparent"] [/TD]
[TD="width: 113, bgcolor: transparent"] 3 [/TD]
[TD="width: 119, bgcolor: transparent"] Project Finish [/TD]
[TD="width: 120, bgcolor: transparent"] [/TD]
[TD="width: 121, bgcolor: transparent"] [/TD]
[TD="width: 118, bgcolor: transparent"] [/TD]
[TD="width: 116, bgcolor: transparent"] [/TD]
[TD="width: 113, bgcolor: transparent"] 4 [/TD]
[TD="width: 119, bgcolor: transparent"] [/TD]
[TD="width: 120, bgcolor: transparent"] [/TD]
[TD="width: 121, bgcolor: transparent"] [/TD]
[TD="width: 118, bgcolor: transparent"] [/TD]
[TD="width: 116, bgcolor: transparent"] [/TD]
[TD="width: 113, bgcolor: transparent"] 5 [/TD]
[TD="width: 119, bgcolor: transparent"] [/TD]
[TD="width: 120, bgcolor: transparent"] [/TD]
[TD="width: 121, bgcolor: transparent"] [/TD]
[TD="width: 118, bgcolor: transparent"] [/TD]
[TD="width: 116, bgcolor: transparent"] [/TD]
[TD="width: 113, bgcolor: transparent"] 6 [/TD]
[TD="width: 119, bgcolor: transparent"] [/TD]
[TD="width: 120, bgcolor: transparent"] [/TD]
[TD="width: 121, bgcolor: transparent"] [/TD]
[TD="width: 118, bgcolor: transparent"] [/TD]
[TD="width: 116, bgcolor: transparent"] [/TD]
[TD="width: 113, bgcolor: transparent"] 7 [/TD]
[TD="width: 119, bgcolor: transparent"] [/TD]
[TD="width: 120, bgcolor: transparent"] [/TD]
[TD="width: 121, bgcolor: transparent"] [/TD]
[TD="width: 118, bgcolor: transparent"] [/TD]
[TD="width: 116, bgcolor: transparent"] [/TD]
</tbody>
From column B to E I have a formulathat would count the occurencies of an event such as Project Start or ProjectFinish
For January the formula wouldlook like this for this example:
=SUMPRODUCT(1*(MONTH('Tab 1'!$B$2:$B$7)=1)*(YEAR('Tab 2 '!$B$2:$B$7)=2019))
What works so far: theformula does pick up every occurrences happening in a specific month, but Iwould like now to go one step beyond and ask the formula to only count one occurrenceper Project no.
For example, for Project no01 there are 3 different project titles, and currently the formula will count 3different projects. BUut would like the formula to only return 1.
My question to you: how can Iask excel to look up first at the project number and count one occurrence anddiscard a new occurrence within the same Project no off the calculation?