HURTMYPONY
Board Regular
- Joined
- Oct 27, 2003
- Messages
- 159
I am trying to get an overall average of the difference between two columns (D and E) with date values with two criteria...
I will be unable to build a helper column, so it has to be all-in-one, unfortunately.
1. The value in C must match a value Cell A1.
2. The value in E must not be blank.
This array works until it encounters a cell with blank value in E (hence my second criterion):
<code>
=AVERAGE(IF(C:C=$A$1,E:E-D:D))
</code>
I cannot figure out how to get it to consider a second criterion.
Can someone show me how to add a second criterion or offer a different solution?
Thank you so much!
I will be unable to build a helper column, so it has to be all-in-one, unfortunately.
1. The value in C must match a value Cell A1.
2. The value in E must not be blank.
This array works until it encounters a cell with blank value in E (hence my second criterion):
<code>
=AVERAGE(IF(C:C=$A$1,E:E-D:D))
</code>
I cannot figure out how to get it to consider a second criterion.
Can someone show me how to add a second criterion or offer a different solution?
Thank you so much!
Last edited: