Originally Posted by
timbo1957
Hi John,
You aren't comparing apples with apples -
Your range for your sum DAYS360(C3,J3)/COUNTA(C3:J3) is greater than the range of data which you say is in C3:D3.
What this does is include a blank cell and the DAYS360 function can't find date in E,F,G,H,I,or J.
If you need to include blank cells you could get around it by using CHOOSE
The CHOOSE function in this case would use up the number generated by the COUNTA function to work out which sum to use the same for the second part of the sum.
=CHOOSE(COUNTA(C3:J3),DAYS360(C3,C3),DAYS360(C3,D3),DAYS360(C3,E3),DAYS360(C3,F3),DAYS360(C3,G3),DAYS360(C3,H3),DAYS360(C3,I3),DAYS360(C3,J3))/CHOOSE(COUNTA(C3:J3),COUNTA(C3),COUNTA(C3:D3),COUNTA(C3:E3),COUNTA(C3:F3),COUNTA(C3:G3),COUNTA(C3:H3),COUNTA(C3:I3),COUNTA(C3:J3))
Bookmarks