Valkyrie_ride
New Member
- Joined
- Oct 3, 2017
- Messages
- 7
Dear all
Would like to seek help to Countif a range of cells within tables (that are not formatted as tables due to design needs) in an Excel sheet.
The problem is that the tables do not have the same amount of rows, so if we drag the formula down, it will not work. I thought of using OFFSET or INDEX MATCH, but I am not sure how to make use those to achieve what I want.
This is what I hoped to achieve in the 'To calculate' column. You can see that there are two separate tables and I want the countifs to start from the non-blank cells, stop at a blank cell, then re-start from the next non-blank cell.
I would appreciate it if anyone can guide me on this!
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Levels[/TD]
[TD]Data[/TD]
[TD]To calculate[/TD]
[/TR]
[TR]
[TD]B1[/TD]
[TD]3[/TD]
[TD]COUNTIF(B2:B6,">0.39")*0.5[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]3[/TD]
[TD]COUNTIF(B2:B6,">0.39")*0.5[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]5[/TD]
[TD]COUNTIF(B2:B6,">0.39")*0.5[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]8[/TD]
[TD]COUNTIF(B2:B6,">0.39")*0.5[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]12[/TD]
[TD]COUNTIF(B2:B6,">0.39")*0.5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B1[/TD]
[TD]5[/TD]
[TD]COUNTIF(B9:B10,">0.39")*0.5[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]5[/TD]
[TD]COUNTIF(B9:B10,">0.39")*0.5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Would like to seek help to Countif a range of cells within tables (that are not formatted as tables due to design needs) in an Excel sheet.
The problem is that the tables do not have the same amount of rows, so if we drag the formula down, it will not work. I thought of using OFFSET or INDEX MATCH, but I am not sure how to make use those to achieve what I want.
This is what I hoped to achieve in the 'To calculate' column. You can see that there are two separate tables and I want the countifs to start from the non-blank cells, stop at a blank cell, then re-start from the next non-blank cell.
I would appreciate it if anyone can guide me on this!
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Levels[/TD]
[TD]Data[/TD]
[TD]To calculate[/TD]
[/TR]
[TR]
[TD]B1[/TD]
[TD]3[/TD]
[TD]COUNTIF(B2:B6,">0.39")*0.5[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]3[/TD]
[TD]COUNTIF(B2:B6,">0.39")*0.5[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]5[/TD]
[TD]COUNTIF(B2:B6,">0.39")*0.5[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]8[/TD]
[TD]COUNTIF(B2:B6,">0.39")*0.5[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]12[/TD]
[TD]COUNTIF(B2:B6,">0.39")*0.5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B1[/TD]
[TD]5[/TD]
[TD]COUNTIF(B9:B10,">0.39")*0.5[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]5[/TD]
[TD]COUNTIF(B9:B10,">0.39")*0.5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]