I have created an array formula that checks specific conditions in a row, and returns results based on those criteria. The conditions are as follows:
1. Condition A not met - number stays the same
2. Condition A met (but not all three conditions) - increment number
3. All three conditions met - set number to 0
For some reason I cannot get the array to increment the number in the result - full disclosure, I don't really understand array formulas too well so it may be something obvious.
Here's what I would expect to get:
[TABLE="class: grid, width: 200, align: center"]
<tbody>[TR]
[TD="align: center"]Con A[/TD]
[TD="align: center"]Con B[/TD]
[TD="align: center"]Con C[/TD]
[TD="align: center"]Array[/TD]
[/TR]
[TR]
[TD="align: center"]X[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]X[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD="align: center"]X[/TD]
[TD="align: center"][/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"][/TD]
[TD="align: center"]2[/TD]
[/TR]
</tbody>[/TABLE]
My formula included when condition (2) was met, it would increment the "Array" column by one. For example the array formula would be entered in D4 and contain "D3+1" when condition (2) was met. This works for a non-array formula, but doesn't seem to work for an array formula. It's not populating a running total down the array as I had expected. It appears to be treating each previous cell in the column as having a value of zero, or no value - hence I cannot create an incremental value.
1. Condition A not met - number stays the same
2. Condition A met (but not all three conditions) - increment number
3. All three conditions met - set number to 0
For some reason I cannot get the array to increment the number in the result - full disclosure, I don't really understand array formulas too well so it may be something obvious.
Here's what I would expect to get:
<tbody>[TR]
[TD="align: center"]Con A[/TD]
[TD="align: center"]Con B[/TD]
[TD="align: center"]Con C[/TD]
[TD="align: center"]Array[/TD]
[/TR]
[TR]
[TD="align: center"]X[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]X[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD="align: center"]X[/TD]
[TD="align: center"][/TD]
[TD="align: center"]X[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]X[/TD]
[TD="align: center"]X[/TD]
[TD="align: center"][/TD]
[TD="align: center"]2[/TD]
[/TR]
</tbody>[/TABLE]
My formula included when condition (2) was met, it would increment the "Array" column by one. For example the array formula would be entered in D4 and contain "D3+1" when condition (2) was met. This works for a non-array formula, but doesn't seem to work for an array formula. It's not populating a running total down the array as I had expected. It appears to be treating each previous cell in the column as having a value of zero, or no value - hence I cannot create an incremental value.
Last edited: