Finding Count of Groups of Data in a Row

wmunsey81

New Member
Joined
Nov 30, 2017
Messages
29
Hello all my Excel Gurus!

I want to count the number of segments, or groups of data, in this array. The results should be 3. (I think I might have to add zeros in the blanks)

[TABLE="width: 907"]
<tbody>[TR]
[TD][TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD="align: center"]20[/TD]
[TD][/TD]
[TD="align: center"]85[/TD]
[TD="align: center"]65[/TD]
[TD="align: center"]65[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]22[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Then add one more step into this.
If I had 20 in stock. How many segments are greater than 20. The answer would be 2.

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD="align: center"]20[/TD]
[TD][/TD]
[TD="align: center"]85[/TD]
[TD="align: center"]65[/TD]
[TD="align: center"]65[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]22[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

The groups would be events as each column is basically a day of use of an item. I have a feeling that the second answer is a nesting of the first answer. If anyone could help or needs more info (it took me a little bit to understand the question as well), let me know.
 
Hello all my Excel Gurus!

I want to count the number of segments, or groups of data, in this array. The results should be 3. (I think I might have to add zeros in the blanks)

[TABLE="width: 907"]
<tbody>[TR]
[TD][TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD="align: center"]20[/TD]
[TD][/TD]
[TD="align: center"]85[/TD]
[TD="align: center"]65[/TD]
[TD="align: center"]65[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]22[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Then add one more step into this.
If I had 20 in stock. How many segments are greater than 20. The answer would be 2.

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD="align: center"]20[/TD]
[TD][/TD]
[TD="align: center"]85[/TD]
[TD="align: center"]65[/TD]
[TD="align: center"]65[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]22[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

The groups would be events as each column is basically a day of use of an item. I have a feeling that the second answer is a nesting of the first answer. If anyone could help or needs more info (it took me a little bit to understand the question as well), let me know.


I am sorry, the "array" terminology may be a bit confusing as this would be something in a VBA code. This is actually data in cells in a table.

Hopefully that helps a little more in finding the answer I was looking for.
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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