Hi,
I have a table calculating times based on several criteria. I have a problem with calculation if one of the cells in the criteria range (B2:B1000) is "" then I get #VALUE! Error. The following is sample table (real table has more than 1000 rows) and in this case B7 is empty cell value:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]=SUMPRODUCT(--(YEAR(A2:A1000)=B1),(B2:B1000))<strike></strike>[/TD]
[TD]2018[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]=IF(D2="","",D2)[/TD]
[TD]3:15[/TD]
[TD][/TD]
[TD]5.6.2017[/TD]
[/TR]
[TR]
[TD]
[TD]1:12[/TD]
[TD][/TD]
[TD]15.9.2017[/TD]
[/TR]
[TR]
[TD]
[TD]2:14[/TD]
[TD][/TD]
[TD]6.1.2018[/TD]
[/TR]
[TR]
[TD]
[TD]0:55[/TD]
[TD][/TD]
[TD]15.2.2018[/TD]
[/TR]
[TR]
[TD]
[TD]4:06[/TD]
[TD][/TD]
[TD]20.4.2018[/TD]
[/TR]
[TR]
[TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
[TD]2:16[/TD]
[TD][/TD]
[TD]28.7.2018[/TD]
[/TR]
[TR]
[TD]
[TD]1:20[/TD]
[TD][/TD]
[TD]30.10.2018[/TD]
[/TR]
[TR]
[TD]
[TD]3:15[/TD]
[TD][/TD]
[TD]3.2.2019[/TD]
[/TR]
</tbody>[/TABLE]
.
.
.
etc.
I tried a couple of solution but I can't get it working without error. I tried to use
I have a table calculating times based on several criteria. I have a problem with calculation if one of the cells in the criteria range (B2:B1000) is "" then I get #VALUE! Error. The following is sample table (real table has more than 1000 rows) and in this case B7 is empty cell value:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]=SUMPRODUCT(--(YEAR(A2:A1000)=B1),(B2:B1000))<strike></strike>[/TD]
[TD]2018[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]=IF(D2="","",D2)[/TD]
[TD]3:15[/TD]
[TD][/TD]
[TD]5.6.2017[/TD]
[/TR]
[TR]
[TD]
=IF(D3="","",D3)
<strike></strike>[/TD][TD]1:12[/TD]
[TD][/TD]
[TD]15.9.2017[/TD]
[/TR]
[TR]
[TD]
=IF(D4="","",D4)
<strike></strike>[/TD][TD]2:14[/TD]
[TD][/TD]
[TD]6.1.2018[/TD]
[/TR]
[TR]
[TD]
=IF(D5="","",D5)
<strike></strike>[/TD][TD]0:55[/TD]
[TD][/TD]
[TD]15.2.2018[/TD]
[/TR]
[TR]
[TD]
=IF(D6="","",D6)
<strike></strike>[/TD][TD]4:06[/TD]
[TD][/TD]
[TD]20.4.2018[/TD]
[/TR]
[TR]
[TD]
=IF(D7="","",D7)
[/TD][TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
=IF(D8="","",D8)
<strike></strike>[/TD][TD]2:16[/TD]
[TD][/TD]
[TD]28.7.2018[/TD]
[/TR]
[TR]
[TD]
=IF(D9="","",D9)
<strike></strike>[/TD][TD]1:20[/TD]
[TD][/TD]
[TD]30.10.2018[/TD]
[/TR]
[TR]
[TD]
=IF(D10="","",D10)
<strike></strike>[/TD][TD]3:15[/TD]
[TD][/TD]
[TD]3.2.2019[/TD]
[/TR]
</tbody>[/TABLE]
.
.
.
etc.
I tried a couple of solution but I can't get it working without error. I tried to use
<>"" or LEN function but still receiving the error. I would appreciate any help or suggestion.