Ramballah
Active Member
- Joined
- Sep 25, 2018
- Messages
- 334
- Office Version
- 365
- Platform
- Windows
Hi,
I have a table that goes as follows
Now this is a miniature and simplified version obviously but it's enough for what I need.
I need a countif, if there are pairs next to each other. So for example B-C are a pair of 1's. I need to only count ONE 1. and not two 1's. I cant figure it out my self somehow. Pretty sure its got something to do with a right or left formula... but I can't figure it out. To also clarify, A3 is not a pair, its a single one. So that should not be counted. Sometimes you get four 1's in a row, that needs to be counted as 2 as there are 2pairs. if theres five or three 1's then it only gets counted as 1 or 2. Because it needs to only count in pairs...
I hope my explanation is enough,
Thanks in advance,
Ramballah
I have a table that goes as follows
A | B | C | D | E | F | G |
2 | 1 | 1 | 2 | 1 | 1 | 2 |
1 | 2 | 1 | 1 | 2 | 1 | 1 |
1 | 1 | 1 | 1 | 2 | 1 | 1 |
I need a countif, if there are pairs next to each other. So for example B-C are a pair of 1's. I need to only count ONE 1. and not two 1's. I cant figure it out my self somehow. Pretty sure its got something to do with a right or left formula... but I can't figure it out. To also clarify, A3 is not a pair, its a single one. So that should not be counted. Sometimes you get four 1's in a row, that needs to be counted as 2 as there are 2pairs. if theres five or three 1's then it only gets counted as 1 or 2. Because it needs to only count in pairs...
I hope my explanation is enough,
Thanks in advance,
Ramballah