Good afternoon.
I've been playing around for a few days now and I finally found the problem to why I get a #value error. The only problem is how to fix it. Here's the formula:
=SUMPRODUCT(('[filename.xls]Sheet'!$C$10:$C$750=B130)*('[filename.xls]Sheet'!$E$4:$M$4=$C$4)*('[filename.xls]Sheet'!$D$10:$D$750=$B$3)*('[filename.xls]Sheet'!$E$10:$E$750))
Basically, $E$4:$M$4 represents the text below:
<TABLE style="WIDTH: 540pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=720 border=0><COLGROUP><COL style="WIDTH: 60pt" span=9 width=80><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD class=xl68 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 60pt; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" width=80 height=17>Moins de 1 mois</TD><TD class=xl68 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 60pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" width=80>De 1 à 3 mois</TD><TD class=xl68 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 60pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" width=80>De 3 à 6 mois</TD><TD class=xl68 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 60pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" width=80>De 6 mois à 1 an</TD><TD class=xl68 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 60pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" width=80>De 1 an à 2 ans</TD><TD class=xl68 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 60pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" width=80>De 2 ans à 5 ans</TD><TD class=xl68 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 60pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" width=80>Plus de 5 ans</TD><TD class=xl68 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 60pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" width=80>Durée indéterminée</TD><TD class=xl68 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 60pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" width=80>Total</TD></TR></TBODY></TABLE>
I noticed that the sumproduct formula works until the above-mentionned text shows again at row 751 (note: rows 11:750 are text-free but contain quite a few blank lines).
If I have about 1000 row, how can I bypass the recurring text condition?
I use Excel 2007 but files are exported through .xls.
Thanks for your time and help
I've been playing around for a few days now and I finally found the problem to why I get a #value error. The only problem is how to fix it. Here's the formula:
=SUMPRODUCT(('[filename.xls]Sheet'!$C$10:$C$750=B130)*('[filename.xls]Sheet'!$E$4:$M$4=$C$4)*('[filename.xls]Sheet'!$D$10:$D$750=$B$3)*('[filename.xls]Sheet'!$E$10:$E$750))
Basically, $E$4:$M$4 represents the text below:
<TABLE style="WIDTH: 540pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=720 border=0><COLGROUP><COL style="WIDTH: 60pt" span=9 width=80><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD class=xl68 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 60pt; BORDER-BOTTOM: #d4d0c8; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" width=80 height=17>Moins de 1 mois</TD><TD class=xl68 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 60pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" width=80>De 1 à 3 mois</TD><TD class=xl68 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 60pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" width=80>De 3 à 6 mois</TD><TD class=xl68 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 60pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" width=80>De 6 mois à 1 an</TD><TD class=xl68 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 60pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" width=80>De 1 an à 2 ans</TD><TD class=xl68 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 60pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" width=80>De 2 ans à 5 ans</TD><TD class=xl68 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 60pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" width=80>Plus de 5 ans</TD><TD class=xl68 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 60pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" width=80>Durée indéterminée</TD><TD class=xl68 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 60pt; BORDER-BOTTOM: #d4d0c8; BACKGROUND-COLOR: transparent" width=80>Total</TD></TR></TBODY></TABLE>
I noticed that the sumproduct formula works until the above-mentionned text shows again at row 751 (note: rows 11:750 are text-free but contain quite a few blank lines).
If I have about 1000 row, how can I bypass the recurring text condition?
I use Excel 2007 but files are exported through .xls.
Thanks for your time and help