Countifs/sumproduct help!!!

Status
Not open for further replies.

jeongs1

New Member
Joined
May 23, 2017
Messages
44
Please see below:
Column J and I are the ones where I need help with:
* 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)

ABCDEFGHIJ
1Customer IDService TypeContract IDContract Start DateContract End DateContract Entered DateContract AmountTypeRevenue MonthNote
21Cleaning21/1/201912/31/201912/15/20185,000.00SYSR12
3100Cleaning353/1/201912/31/201912/15/20182,000.00SYMR10
4100Maintenance353/1/201912/31/201912/15/20183,000.00SYMR10
5100Maintenance353/1/201912/31/20193/15/2019(1,000.00)SYMR10Discount given due to service complaint
6582Maintenance794/1/20193/31/20202/15/20183,000.00MYSR2424 because two contracts signed/entered at the same time
7582Maintenance804/1/20203/31/20212/15/20185,000.00MYSR2424 because two contracts signed/entered at the same time
8582Maintenance854/1/20213/31/20223/10/20204,500.00SYSR12SYSR with 12 months because A NEW CONTRACT was ENTERED separate from the two that was signed and entered at the same time
976Cleaning1232/1/20191/31/20201/15/20193,000.00MYMR24
1076Installation1232/1/20191/31/20202/1/20191,000.00MYMR24
1176Installation1232/1/20191/31/20202/1/2019(500.00)MYMR24Discount given as there was a delayed installation timing
1276Maintenance1232/1/20191/31/20201/15/20193,000.00MYMR24
1376Cleaning2542/1/20201/31/20212/1/20192,500.00MYMR24
1476Installation2542/1/20201/31/20211/15/20191,500.00MYMR24
1576Maintenance2542/1/20201/31/20212/1/20193,750.00MYMR24

<colgroup><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Status
Not open for further replies.

Forum statistics

Threads
1,214,566
Messages
6,120,266
Members
448,953
Latest member
Dutchie_1

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