Forum Discussion
mhargett123
Oct 27, 2024Copper Contributor
Array Formula Error Help Request
Hi, Can anyone explain why formula #1 works, but formula #2 does not? Formula #1 =SUMIFS(HistGLdata!$AO:$AO,HistGLdata!$C:$C,$B41,HistGLdata!$D:$D,$C41,HistGLdata!$E:$E,$D41)/1000 Formul...
HansVogelaar
Oct 27, 2024MVP
Does column E on HistGLdata contain a #N/A value? SUMIFS will simply ignore it, but the array HistGLdata!$E:$E=$D41 will contain #N/A, so the sum will be #N/A too.
Try
=SUM((HistGLdata!$AO:$AO)*(HistGLdata!$C:$C=$B41)*(HistGLdata!$D:$D=$C41)*(IFERROR(HistGLdata!$E:$E,"")=$D41))/1000
(No need to use -- if you're multiplying)
mhargett123
Oct 27, 2024Copper Contributor
Yes, the array did contain #N/A and that was the issue. Your suggestion worked!! Many thanks!!
Cheers,
Mike
Cheers,
Mike