Count instances in a cell

laxjuan05

New Member
Joined
Jan 3, 2017
Messages
21
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID

[/TD]
[TD]Submitted
[/TD]
[TD]# submitted
[/TD]
[/TR]
[TR]
[TD]1.1
[/TD]
[TD]1/1/18
2/5/18
[/TD]
[TD]2

[/TD]
[/TR]
[TR]
[TD]1.2
[/TD]
[TD]6/5/18
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]1.3
[/TD]
[TD]2/1/18
2/5/18
3/1/18
[/TD]
[TD]3
[/TD]
[/TR]
</tbody>[/TABLE]
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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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