Thanks.
I am not getting the formulas to work for me. I event went to the first example above (not trying to reference a Table on another worksheet) to try something more fundamental. The issues I am having when I apply those formulas are:
1. When I type A in D5, I get C in E8 and vice versa.
2. The first date referenced doesn't quite align to the correct value for either site. Using the exact scenario above I get 06-01-17 as my first event date for Site A (even though it's referencing site in the next column over, but that is also the wrong date for Site C).
3. I am not getting valid data when I copy the D8 and E8 formulas down. I just get an invalid number (#NUM!) reference.
| | | | |
Date Failure | Site | Start Date | | |
A | End Date | | | |
A | Count Records | | | |
C | Site | | | |
C | A | | | |
A | | | | |
C | Date Failure | Site | Calc days between | Days Between |
C | C | | | |
A | #NUM! | | | |
A | #NUM! | | | |
A | #NUM! | | | |
A | #NUM! | | | |
A | #NUM! | | | |
A | #NUM! | | | |
C | #NUM! | | | |
C | #NUM! | | | |
A | #NUM! | | | |
C | #NUM! | | | |
C | #NUM! | | | |
C | | | | |
A | | | | |
A | | | | |
<thead style="border-collapse: collapse; border-spacing: 0px 0px; font-size: 13px; margin-bottom: 0px;">
[TH="align: center"][/TH]
[TH="align: center"]A[/TH]
[TH="align: center"]B[/TH]
[TH="align: center"]C[/TH]
[TH="align: center"]D[/TH]
[TH="align: center"]E[/TH]
[TH="align: center"]F[/TH]
[TH="align: center"]G[/TH]
</thead><tbody style="border-collapse: collapse; border-spacing: 0px 0px; font-size: 13px; margin-bottom: 0px;">
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"]03-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]03-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"]19-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]03-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"]12[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]05-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]Average[/TD]
[TD="align: right"]Avg Excluding Zero[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]05-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]06-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]06-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: center"]8[/TD]
[TD="align: right"]06-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"]06-01-17[/TD]
[TD="align: right"]#NUM![/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: center"]9[/TD]
[TD="align: right"]09-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: center"]10[/TD]
[TD="align: right"]09-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: center"]11[/TD]
[TD="align: right"]09-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: center"]12[/TD]
[TD="align: right"]09-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: center"]13[/TD]
[TD="align: right"]09-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: center"]14[/TD]
[TD="align: right"]09-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: center"]15[/TD]
[TD="align: right"]11-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: center"]16[/TD]
[TD="align: right"]13-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: center"]17[/TD]
[TD="align: right"]15-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: center"]18[/TD]
[TD="align: right"]15-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: center"]19[/TD]
[TD="align: right"]17-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: right"]
#NUM!
[/TD]
[TD="align: center"]20[/TD]
[TD="align: right"]18-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: center"]21[/TD]
[TD="align: right"]19-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: center"]22[/TD]
[TD="align: right"]19-01-17[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
</tbody>
I've been over the formulas a couple of times, and I honestly can't wrap my head around the second if statement in the Array Formulas, so it's hard for me to dissect where the issue could possible lie.
Along those same lines, and if I'm able to get the above to work (moving onto the second version where I am trying to reference Table1) what is the purpose of the underlined parts in the array formula below?
<thead style="border-collapse: collapse; border-spacing: 0px 0px; font-size: 13px; margin-bottom: 0px;">[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
</thead><tbody style="border-collapse: collapse; border-spacing: 0px 0px; font-size: 13px; margin-bottom: 0px;">[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] , align: center"]D8[/TH]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] , align: center"]E8[/TH]
I ask because, now that I am going to extract the data from my original table, Table1, and essentially eliminate the need for having the copied that I was having to bring in manually, I'm not exactly sure what $A$2 will be referencing?