Count number of weeks of submitted business

Joined
Aug 3, 2021
Messages
14
Office Version
  1. 2016
Platform
  1. Windows
I'm trying to use a formula to count the number of weeks a client has submitted new business during a quarter. The data is in a table, and submitted business includes a date column. Is there a way to count unique weeks based on the condition that an entry equals "New Business Submit"?

Table is shown below:
DateGoalQtrDayWk
10/12/21New Clients4342
10/18/21Submit New Business4243
10/18/21Submit New Business4243
11/02/21New Clients4345
11/03/21Submit New Business4445
11/03/21Submit New Business4445
11/11/21Submit New Business4546
11/11/21New Clients4546
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Like this?

Book2
ABCDEFGH
1DateGoalQtrDayWkWeekCount
210/12/2021New Clients434242 
310/18/2021Submit New Business4243432
410/18/2021Submit New Business4243432
511/2/2021New Clients434545 
611/3/2021Submit New Business4445452
711/3/2021Submit New Business4445452
811/11/2021Submit New Business4546461
911/11/2021New Clients454646 
10
Sheet1
Cell Formulas
RangeFormula
F2:F9F2=WEEKNUM(A2)
G2:G9G2=IF(B2="Submit New Business",COUNTIFS(C:C,C2,B:B,"Submit New Business",F:F,F2),"")
 
Upvote 0
Like this?

Book2
ABCDEFGH
1DateGoalQtrDayWkWeekCount
210/12/2021New Clients434242 
310/18/2021Submit New Business4243432
410/18/2021Submit New Business4243432
511/2/2021New Clients434545 
611/3/2021Submit New Business4445452
711/3/2021Submit New Business4445452
811/11/2021Submit New Business4546461
911/11/2021New Clients454646 
10
Sheet1
Cell Formulas
RangeFormula
F2:F9F2=WEEKNUM(A2)
G2:G9G2=IF(B2="Submit New Business",COUNTIFS(C:C,C2,B:B,"Submit New Business",F:F,F2),"")

I'm looking to count the number of weeks where at least one piece of new business was submitted. So in the chart I included, the total would be 3. I hope that makes sense?
 
Upvote 0
Try

Book2
ABCDEFGH
1DateGoalQtrDayWkWeekCount
210/12/2021New Clients434242 
310/18/2021Submit New Business4243431
410/18/2021Submit New Business424343 
511/2/2021New Clients434545 
611/3/2021Submit New Business4445451
711/3/2021Submit New Business444545 
811/11/2021Submit New Business4546461
911/11/2021New Clients454646 
10
11Total Count3
12
Sheet1
Cell Formulas
RangeFormula
F2:F9F2=WEEKNUM(A2)
G2:G9G2=IF(IF(B2="Submit New Business",COUNTIFS($B$2:B2,"Submit New Business",$F$2:F2,F2),"")>1,"",COUNTIFS($B$2:B2,"Submit New Business",$F$2:F2,F2))
G11G11=SUM(G2:G9)
 
Upvote 0
Solution

Forum statistics

Threads
1,214,954
Messages
6,122,461
Members
449,085
Latest member
ExcelError

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