How to count consecutive text occurrences in a column?

Status
Not open for further replies.

rageagainstjg

New Member
Joined
Aug 17, 2011
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hello all,
Column A has entries that can be Y, N, or W. I want column B to count the number of consecutive occurrences of either Y, N or W, as you work your way down the column. An example of what I want is shown at the link. What I need is the formula for column B, manually entering it sucks!
Thank you for any help you can provide.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Maybe drag down from A2: =IF(A1=A2,B1+1,1)
You would have to enter 1 in A1 though.
 
Upvote 0
Maybe drag down from A2: =IF(A1=A2,B1+1,1)
You would have to enter 1 in A1 though.
You have hit the nail on the head perfectly! thank you!

I now have another problem, a time problem, would you be willing to look at this question?

I am attempting to calculate how long consecutive occurrence instances happened. So with that being said please look at this link and know that column “D” is the one I need the formula for
 
Upvote 0
Sorry, that one is out of my league. Looks like some sort of Max minus Min over groups of Y's or N's.
 
Upvote 0
In any case you have duplicated this latest question. How to count time if value is present?

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,214,975
Messages
6,122,537
Members
449,088
Latest member
RandomExceller01

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