Formula Wanted to Count the number of dates entered in each week

C_M2840

New Member
Joined
May 21, 2017
Messages
8
Hi All,

I need a formula which will tell me how many dates I have data for during a week number.

Column B is the week number, Column C is the Date, I may have for example 20 different rows of data all from the 18/4/17 which all occurred in week 16, I want to be able to put in a formula that counts all the different dates entered along side Week 16 and tells me how many different ones there are.

Thankyou!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
The COUNTIFS function should return the value you want.
=COUNTIFS( B:B, 16 ) is a single condition formula that will return the number of values in column B = 16. (Replace 16 in the function with a cell reference if desired)
=COUNTIFS( B:B, 16, C:C, 18/4/17 ) includes multiple conditions and will return the number of values in column B = 16 where the corresponding value in column C = 18/4/17. (Replace the argument values in the function with a cell reference if desired)
Check-out Excel's Help (or search the web) for a detailed explanation about this function.
 
Upvote 0
Does this mean you want a count of unique dates "counts all the different dates entered"?

If you want unique dates per week # then try the formula in cell E2 of the example below.This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Drag formula down row as needed.

If you want a count of all dates in the week# then the countif function as suggested by Col Delane.
Excel Workbook
ABCDEF
1Week #DateUnique Date CountAll Dates in Week#
2164/17/201846
3164/18/2017
4164/18/2017
5164/19/2017
6164/20/2017
7164/20/2017
8174/26/201712
9174/26/2017
Sheet
 
Upvote 0
Thankyou the is formula has fixed my problem, however caused another to arise.

For use in pivot tables and charts I need to number of dates data has been entered for within a particular week in every cell in the column, not just at the first entry for the week number, is this possible? E.g. I need every cell in column E where the corresponding row contains data filled.

Thanks in advance.
 
Upvote 0
This should do what you want.
This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Drag formula down as needed.
Excel Workbook
ABCDE
1Week #DateUnique Date Count
2164/17/20184
3164/18/20174
4164/18/20174
5164/19/20174
6164/20/20174
7164/20/20174
8174/26/20171
9174/26/20171
Sheet
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,286
Members
449,076
Latest member
kenyanscott

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