Count Dates within a cell

GreyFox8991

New Member
Joined
Jul 20, 2022
Messages
20
Office Version
  1. 2016
Platform
  1. Windows
Hello excel community,

I have some data with a varying amount of dates in each cell. What I am looking for is a possible formula to count the amount of dates within the present cell. I will include some test data for context in a screenshot.

I would like the end result to be:

if cell B2 has two dates formatted in mm/dd/yyyy or date format, then the count of dates would be 2
if cell B3 has 5 dates formatted in mm/dd/yyyy or date format, then the count of dates would be 5.

Any help would be greatly appreciated.
 

Attachments

  • Excel_dates_20220809.PNG
    Excel_dates_20220809.PNG
    7.5 KB · Views: 5

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Looks like we should be able to just count the number of commas and add 1.
So for an entry in cell B2, the formula would look like:
Excel Formula:
=LEN(B2)-LEN(SUBSTITUTE(B2,",",""))+1
 
Upvote 0
Solution
Thank you Joe, this is a great solution. I will mark this as a solution. Thank you so much for your help.
 
Upvote 0
You are welcome.
Glad I was able to help!
:)
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,849
Members
449,051
Latest member
excelquestion515

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