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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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,213,482
Messages
6,113,915
Members
448,532
Latest member
9Kimo3

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