I am trying to write an array formula that does the following:
- Checks that the date in column C is less than or equal to a given date, if so - takes the count (or sum, since it's an array) and multiplies it by 6
- If the date is not less than or equal to the specified date, it then checks that the date in column D is less than or equal to a given date, if so - takes the count (or sum, since it's an array) and multiplies it by 3
- If the date is not less than or equal to the specified date, it then checks that the date in column B is less than or equal to a given date, if so - takes the count (or sum, since it's an array) and multiplies it by 1
- And then sums the total point value
All the while I need to ignore the blanks. I've tried variations of the following:
=SUM(IF(AND($C$3:$C$11<>"",$C$3:$C$11<=B14)>0,6,IF(AND($D$3:$D$11<>"",$D$3:$D$11<=B14)>0,3,IF(AND($B$3:$B$11<>"",$B$3:$B$11<=B14)>0,1))))
=SUM(IF($C$3:$C$11<=$B14,((COUNT(IF($C$3:$C$11<=$B14,6)))-(COUNT(IF($C$3:$C$11="",1)))),IF($D$3:$D$11<=$B14,((COUNT(IF($D$3:$D$11<=$B14,3)))-(COUNT(IF($D$3:$D$11="",1)))),IF($B$3:$B$11<=$B14,((COUNT(IF($B$3:$B$11<=$B14,1)))-(COUNT(IF($B$3:$B$11="",1))))))))
It's not calculating correctly - I've summed this small example up manually and it's off.
Any help on this would be much appreciated! And yes, I am using CSE properly.
Bookmarks