Count number of days from dates

nparsons75

Well-known Member
Joined
Sep 23, 2013
Messages
1,254
Office Version
  1. 2016
Hi,

I have a pivot table with changes on the use of a slicer. I need to have a count of the number of days in the list. In the example, the count should be 14. I have tried adding a new calculated field but cant get the answer i need, 14. Any help appreciated.

Row Labels
03/08/2021
04/08/2021
05/08/2021
09/08/2021
11/08/2021
12/08/2021
13/08/2021
18/08/2021
19/08/2021
20/08/2021
23/08/2021
25/08/2021
27/08/2021
31/08/2021
Grand Total
 
Ok I have now added another column, calculated field which takes the sum of the dates in the CW column. (see image). I now get a number, currently 19 but this is not the correct answer? As the pivot table changes due to the slicer selections, this number should change to reflect the count of the ones, but it doesn't. It does not change and stays on 19?
Screenshot is difficult to work with, could you share part of your sheet here, e.g. with XL2BB refer to my signature, or
share the file in google drive or similar
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
With dates are in CX column

=COUNTIF(CX:CX,">30000")

Count dates those later than 30000 (30000 equals 18-Feb-1982), to excluding other strange values within CX. Those values possible maximum 30000.
 
Upvote 0

Forum statistics

Threads
1,214,947
Messages
6,122,413
Members
449,082
Latest member
tish101

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