Count instances in a cell

laxjuan05

New Member
Joined
Jan 3, 2017
Messages
21
ID

Submitted
# submitted
1.1
1/1/18
2/5/18
2

1.2
6/5/18
1
1.3
2/1/18
2/5/18
3/1/18
3

<tbody>
</tbody>
Hello!

Is there a way to count instances in a cell. have a cell that contains multiple submittal dates and want to know if there is a way to get the number of entries in a cell? Is there a way to get column in the example chart above.

Thank you in advance!
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
With the "Submitted" column being Column B, try this:

Code:
=LEN(B2)-LEN(SUBSTITUTE(B2,CHAR(10),""))+1
 
Upvote 0
Ben,

Was looking at the data I have and I have an issue with the formula and my data. Example is not shown in the example data, but there are ID's (Column A) where # submitted (Column B) is blank. Currently the formula returns value of 1 if cell column B is blank. Is there away to return nothing or a 0 if cell is blank?
 
Upvote 0
Try

Code:
=IF(ISBLANK(B2),"",LEN(B2)-LEN(SUBSTITUTE(B2,CHAR(10),""))+1)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,096
Latest member
Anshu121

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