I have a named range table "LabData2" with >30000 lines of analyses with multiple sample names and multiple samples per day for a 1 year period.
Table column headers
ColA ColB ColC ColD ColE
[TABLE="width: 764"]
<tbody>[TR]
[TD]SAMPLE_TITLE
[/TD]
[TD]COMPONENT_NAME
[/TD]
[TD]SAMPLED_DATE
[/TD]
[TD]RESULT_TEXT
[/TD]
[TD]SAMPLE
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Sample = SAMPLE_TITLE Space COMPENENT_NAME
I want to capture the RESUL_TEXT (col D) based on the SAMPLE (col E) and Date, cell $A$1.
Formula doesn’t want to work, keep getting a #DIV/0 error.
=if(DAVERAGE(LabData2,$D$8,I1:J2),I6,DAVERAGE(LabData2,$D$8,I1:J2)) where
I1 = SAMPLE
I2 = 1CP65C AES (Sample name)
J1 = DATE
J2 = value from cell A1
I6 is the cell value to use if there is not a sample for that day.
Table column headers
ColA ColB ColC ColD ColE
[TABLE="width: 764"]
<tbody>[TR]
[TD]SAMPLE_TITLE
[/TD]
[TD]COMPONENT_NAME
[/TD]
[TD]SAMPLED_DATE
[/TD]
[TD]RESULT_TEXT
[/TD]
[TD]SAMPLE
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Sample = SAMPLE_TITLE Space COMPENENT_NAME
I want to capture the RESUL_TEXT (col D) based on the SAMPLE (col E) and Date, cell $A$1.
Formula doesn’t want to work, keep getting a #DIV/0 error.
=if(DAVERAGE(LabData2,$D$8,I1:J2),I6,DAVERAGE(LabData2,$D$8,I1:J2)) where
I1 = SAMPLE
I2 = 1CP65C AES (Sample name)
J1 = DATE
J2 = value from cell A1
I6 is the cell value to use if there is not a sample for that day.