Please see below screenshot.
Column J and I are the ones where I need help with. I have tried "countifs" with multiple scenarios, yet cannot get to work exactly how I picture it.
* Does the customer have one contract with one service type for the entire year? If so, return SYSR (Single Year Single Rev)
* Does the customer have one contract with multiple services for the entire year? If so, return SYMR (Single Year Multi Rev)
* Does the customer have multiple contracts signed at the same time with one service? If so, return MYSR (Multi Year Single Rev)
* Does the customer have multiple contracts signed at the same time with multiple services? If so, return MYMR (Multi Year Multi Rev)
[TABLE="width: 1000"]
<colgroup><col><col><col><col><col><col span="2"><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Customer ID[/TD]
[TD]Service Type[/TD]
[TD]Contract ID[/TD]
[TD]Contract Start Date[/TD]
[TD]Contract End Date[/TD]
[TD]Contract Entered Date[/TD]
[TD]Contract Amount[/TD]
[TD]Type[/TD]
[TD]Revenue Month[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]Cleaning[/TD]
[TD]2[/TD]
[TD]1/1/2019[/TD]
[TD]12/31/2019[/TD]
[TD]12/15/2018[/TD]
[TD]5,000.00[/TD]
[TD]SYSR[/TD]
[TD="align: right"]12[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]100[/TD]
[TD]Cleaning[/TD]
[TD]35[/TD]
[TD]3/1/2019[/TD]
[TD]12/31/2019[/TD]
[TD]12/15/2018[/TD]
[TD]2,000.00[/TD]
[TD]SYMR[/TD]
[TD="align: right"]10[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]100[/TD]
[TD]Maintenance[/TD]
[TD]35[/TD]
[TD]3/1/2019[/TD]
[TD]12/31/2019[/TD]
[TD]12/15/2018[/TD]
[TD]3,000.00[/TD]
[TD]SYMR[/TD]
[TD="align: right"]10[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]582[/TD]
[TD]Maintenance[/TD]
[TD]79[/TD]
[TD]4/1/2019[/TD]
[TD]3/31/2020[/TD]
[TD]2/15/2018[/TD]
[TD]3,000.00[/TD]
[TD]MYSR[/TD]
[TD="align: right"]24[/TD]
[TD]*24 because two contracts signed/entered at the same time[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]582[/TD]
[TD]Maintenance[/TD]
[TD]80[/TD]
[TD]4/1/2020[/TD]
[TD]3/31/2021[/TD]
[TD]2/15/2018[/TD]
[TD]5,000.00[/TD]
[TD]MYSR[/TD]
[TD="align: right"]24[/TD]
[TD]*24 because two contracts signed/entered at the same time[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]76[/TD]
[TD]Cleaning[/TD]
[TD]123[/TD]
[TD]2/1/2019[/TD]
[TD]1/31/2019[/TD]
[TD]1/15/2019[/TD]
[TD]3,000.00[/TD]
[TD]MYMR[/TD]
[TD="align: right"]24[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]76[/TD]
[TD]Installation[/TD]
[TD]123[/TD]
[TD]2/1/2019[/TD]
[TD]1/31/2019[/TD]
[TD]2/1/2019[/TD]
[TD]1,000.00[/TD]
[TD]MYMR[/TD]
[TD="align: right"]24[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]76[/TD]
[TD]Maintenance[/TD]
[TD]123[/TD]
[TD]2/1/2019[/TD]
[TD]1/31/2019[/TD]
[TD]1/15/2019[/TD]
[TD]3,000.00[/TD]
[TD]MYMR[/TD]
[TD="align: right"]24[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]76[/TD]
[TD]Cleaning[/TD]
[TD]254[/TD]
[TD]2/1/2020[/TD]
[TD]1/31/2021[/TD]
[TD]2/1/2019[/TD]
[TD]2,500.00[/TD]
[TD]MYMR[/TD]
[TD="align: right"]24[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]76[/TD]
[TD]Installation[/TD]
[TD]254[/TD]
[TD]2/1/2020[/TD]
[TD]1/31/2021[/TD]
[TD]1/15/2019[/TD]
[TD]1,500.00[/TD]
[TD]MYMR[/TD]
[TD="align: right"]24[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]76[/TD]
[TD]Maintenance[/TD]
[TD]254[/TD]
[TD]2/1/2020[/TD]
[TD]1/31/2021[/TD]
[TD]2/1/2019[/TD]
[TD]3,750.00[/TD]
[TD]MYMR[/TD]
[TD="align: right"]24[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Any thoughts? My brain is too fried! HELP!!!
Column J and I are the ones where I need help with. I have tried "countifs" with multiple scenarios, yet cannot get to work exactly how I picture it.
* Does the customer have one contract with one service type for the entire year? If so, return SYSR (Single Year Single Rev)
* Does the customer have one contract with multiple services for the entire year? If so, return SYMR (Single Year Multi Rev)
* Does the customer have multiple contracts signed at the same time with one service? If so, return MYSR (Multi Year Single Rev)
* Does the customer have multiple contracts signed at the same time with multiple services? If so, return MYMR (Multi Year Multi Rev)
[TABLE="width: 1000"]
<colgroup><col><col><col><col><col><col span="2"><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Customer ID[/TD]
[TD]Service Type[/TD]
[TD]Contract ID[/TD]
[TD]Contract Start Date[/TD]
[TD]Contract End Date[/TD]
[TD]Contract Entered Date[/TD]
[TD]Contract Amount[/TD]
[TD]Type[/TD]
[TD]Revenue Month[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]1[/TD]
[TD]Cleaning[/TD]
[TD]2[/TD]
[TD]1/1/2019[/TD]
[TD]12/31/2019[/TD]
[TD]12/15/2018[/TD]
[TD]5,000.00[/TD]
[TD]SYSR[/TD]
[TD="align: right"]12[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]100[/TD]
[TD]Cleaning[/TD]
[TD]35[/TD]
[TD]3/1/2019[/TD]
[TD]12/31/2019[/TD]
[TD]12/15/2018[/TD]
[TD]2,000.00[/TD]
[TD]SYMR[/TD]
[TD="align: right"]10[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]100[/TD]
[TD]Maintenance[/TD]
[TD]35[/TD]
[TD]3/1/2019[/TD]
[TD]12/31/2019[/TD]
[TD]12/15/2018[/TD]
[TD]3,000.00[/TD]
[TD]SYMR[/TD]
[TD="align: right"]10[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]582[/TD]
[TD]Maintenance[/TD]
[TD]79[/TD]
[TD]4/1/2019[/TD]
[TD]3/31/2020[/TD]
[TD]2/15/2018[/TD]
[TD]3,000.00[/TD]
[TD]MYSR[/TD]
[TD="align: right"]24[/TD]
[TD]*24 because two contracts signed/entered at the same time[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]582[/TD]
[TD]Maintenance[/TD]
[TD]80[/TD]
[TD]4/1/2020[/TD]
[TD]3/31/2021[/TD]
[TD]2/15/2018[/TD]
[TD]5,000.00[/TD]
[TD]MYSR[/TD]
[TD="align: right"]24[/TD]
[TD]*24 because two contracts signed/entered at the same time[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]76[/TD]
[TD]Cleaning[/TD]
[TD]123[/TD]
[TD]2/1/2019[/TD]
[TD]1/31/2019[/TD]
[TD]1/15/2019[/TD]
[TD]3,000.00[/TD]
[TD]MYMR[/TD]
[TD="align: right"]24[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]76[/TD]
[TD]Installation[/TD]
[TD]123[/TD]
[TD]2/1/2019[/TD]
[TD]1/31/2019[/TD]
[TD]2/1/2019[/TD]
[TD]1,000.00[/TD]
[TD]MYMR[/TD]
[TD="align: right"]24[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]76[/TD]
[TD]Maintenance[/TD]
[TD]123[/TD]
[TD]2/1/2019[/TD]
[TD]1/31/2019[/TD]
[TD]1/15/2019[/TD]
[TD]3,000.00[/TD]
[TD]MYMR[/TD]
[TD="align: right"]24[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]76[/TD]
[TD]Cleaning[/TD]
[TD]254[/TD]
[TD]2/1/2020[/TD]
[TD]1/31/2021[/TD]
[TD]2/1/2019[/TD]
[TD]2,500.00[/TD]
[TD]MYMR[/TD]
[TD="align: right"]24[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]76[/TD]
[TD]Installation[/TD]
[TD]254[/TD]
[TD]2/1/2020[/TD]
[TD]1/31/2021[/TD]
[TD]1/15/2019[/TD]
[TD]1,500.00[/TD]
[TD]MYMR[/TD]
[TD="align: right"]24[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]76[/TD]
[TD]Maintenance[/TD]
[TD]254[/TD]
[TD]2/1/2020[/TD]
[TD]1/31/2021[/TD]
[TD]2/1/2019[/TD]
[TD]3,750.00[/TD]
[TD]MYMR[/TD]
[TD="align: right"]24[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Any thoughts? My brain is too fried! HELP!!!