I have a matrix of values that looks like this (simplified)
0,0,0,0,0,5,4,0,7,7
0,0,3,4,7,6,6,6,7,3
0,0,0,0,2,8,3,7,4,5
There are always 10 digits in each row (10 columns) and let's say I want to begin counting from the first nonzero value. I always know the start point for the first nonzero value (I have its position as a separate field), so in the first row I want to count from the 6th digit as it's the first nonzero value for example.
I have a second condition. I want to know (starting from the first nonzero value through to the 10th digit) how many of those values are less than 5, which should give me the following
Row 1 = 2
Row 2 = 3
Row 3 = 3
Anyone have a formula that would get me the preceding? I was trying to use sumproduct with the offset function to know avail. Thanks.
0,0,0,0,0,5,4,0,7,7
0,0,3,4,7,6,6,6,7,3
0,0,0,0,2,8,3,7,4,5
There are always 10 digits in each row (10 columns) and let's say I want to begin counting from the first nonzero value. I always know the start point for the first nonzero value (I have its position as a separate field), so in the first row I want to count from the 6th digit as it's the first nonzero value for example.
I have a second condition. I want to know (starting from the first nonzero value through to the 10th digit) how many of those values are less than 5, which should give me the following
Row 1 = 2
Row 2 = 3
Row 3 = 3
Anyone have a formula that would get me the preceding? I was trying to use sumproduct with the offset function to know avail. Thanks.
Last edited: