Count consecutively number of text...

fgtc87

New Member
Joined
Dec 7, 2014
Messages
12
Hi all,


I have used a formula to output yes and no, now i am trying to figure out how to count how many consecutively yes and no there are in a coloumn


For example

A..... B ......C..... D....... F
ID
1......5......6......4....... No
2......1......8......10..... No
3......3......7......2....... No
4......12....3......1 .......Yes
5......4......2......11..... Yes
6......8......1......3....... Yes
7......12....3......1 .......Yes
8......4......2......11..... No
9......8......1......3....... No


So for example in column F there are 3 number of no.... then 4 number of Yes... and then 2 number of No

Is there a way i can have this probably next to the column F may be in G.

Any help will be greatly appreciated

Thanks in advance
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
thats not the question! is the answer 2 groups of no and 1 group of yes
or
1 group of 3 no
1 group of 4 yes
1 group of 2 no
 
Upvote 0
Ill try to clarify this i dont want it to say 4 groups of 3 no's (but i am trying to find this question online atm Lol)


Some thing like this below i hope it clarifies my question


A.....B......C..... D.......F..........G
ID
1......5......6......4.......No
2......1......8......10.....No
3......3......7......2.......No........3
4......12....3......1.......Yes
5......4......2......11.....Yes
6......8......1......3.......Yes
7......12....3......1.......Yes.......4
8......4......2......11..... No
9......8......1......3....... No.......2
10......3......7......2.......Yes
11......12....3......1.......Yes
12......4......2......11.....Yes
13......8......1......3.......Yes
14......12....3......1.......Yes.....5
15......4......2......11..... No......1
16......8......1......3.......Yes
17......3......7......2.......Yes
18......12....3......1.......Yes.....3

Thanks
 
Upvote 0
Try this formula in G2, copied down.

Excel Workbook
ABCDEFG
1ID*
21564No 
321810No
43372No3
541231Yes
654211Yes
76813Yes
871231Yes4
984211No
109813No2
1110372Yes
12111231Yes
13124211Yes
1413813Yes
15141231Yes5
16154211No1
1716813Yes
1817372Yes
19181231Yes3
20
Count
 
Upvote 0
Hi,

New Question relating to above example... I would have started new thread but thought this might be easier since it already has my example.


I did some research and wanted to find out for example how many times in Column G the number 3 came or the number 1,2,3,4,5,etc

I found the formula =countif(G$2:G$19,H2) Where Column H would be 1,2,3,4,5,etc

This works well but i need to count every second value.

Just to clarify i need the formula to count Column G but only for 'No' values e.g from above table,

Number.........Occurrence
1...................1
2...................1
3...................1
4...................0
5...................0


Any help will be greatly appreciated

Thanks in advance
 
Upvote 0
Like this?

Excel Workbook
ABCDEFGHI
1IDNumberCount
21564No11
321810No21
43372No331
541231Yes40
654211Yes50
76813Yes
871231Yes4
984211No
109813No2
1110372Yes
12111231Yes
13124211Yes
1413813Yes
15141231Yes5
16154211No1
1716813Yes
1817372Yes
19181231Yes3
20
Count 2
 
Upvote 0

Forum statistics

Threads
1,215,503
Messages
6,125,175
Members
449,212
Latest member
kenmaldonado

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