"Counting a series of dates"

Marwan69

Board Regular
Joined
Mar 14, 2018
Messages
80
Hello everyone,

I have a series of dates from 2013 till 2018. I'd like to count the exact days for them but they aren't in sequence. Meaning a date could start from 12 march 2013, the next one from 15...etc.

[TABLE="width: 125"]
<colgroup><col></colgroup><tbody>[TR]
[TD]08-Jan-13[/TD]
[/TR]
[TR]
[TD]09-Jan-13[/TD]
[/TR]
[TR]
[TD]12-Jan-13[/TD]
[/TR]
[TR]
[TD]15-Jan-13

Many thanks,
Marwan[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Thanks VBA Greek. I have used the day function and counted the days in a serial then add them up. What do you think?
BTW I did your formula and gave me 2006. My formula gave me 21,498 days.
 
Last edited:
Upvote 0
I dont think you need the DAY function. If you use MIN and MAX, they will yield the oldest and the newest date respectively and then you just need to subtract them as far I can see
 
Upvote 0
But I'm looking for exact days. As I mentioned the dates aren't sequentially stated. You'd find 13 Jan 2013 the next day will be 17 Jan 2013....till 2018.
 
Last edited:
Upvote 0
hmm, ok, I must have misunderstood. So you just want to count how many dates you have? You may need to use the COUNT function?
 
Upvote 0
The count function will only count the number of text within a cell regardless of dates or else. However, the DAY function counts actual days in a date. Thanks so much Greek and I'd like you to confirm my work please.

Many thanks,
Marwan
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,171
Members
453,021
Latest member
Justyna P

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