Hi,
I'm having a small problem when summing up values in column G.
In column A, there is a list of dates. Depending on the value of J2 (where is mentioned the year) it should sum all values in column G that are related to that year.
However, sometimes there is no year known and then the value of the date in column A is blank (""). Those values should not be summed.
I've tried the following formula:
SUMPRODUCT(--(YEAR($A$2:$A$1000)=$J2);$G$2:$G$1000) ==> returns #VALUE!
So, I've tried to check if the values are blank with the following formulas:
SUMPRODUCT(--(YEAR(ISNUMBER($A$2:$A$1000))=$J2);$G$2:$G$1000) ==> returns 0
or SUMPRODUCT(--(ISNUMBER($A$2:$A$1000));--(YEAR($A$2:$A$1000)=$J2);$G$2:$G$1000) ==> returns #VALUE!
So, can please one of your experts help me in this matter?
Thanks a lot and have a nice day.
Best regards
So
I'm having a small problem when summing up values in column G.
In column A, there is a list of dates. Depending on the value of J2 (where is mentioned the year) it should sum all values in column G that are related to that year.
However, sometimes there is no year known and then the value of the date in column A is blank (""). Those values should not be summed.
I've tried the following formula:
SUMPRODUCT(--(YEAR($A$2:$A$1000)=$J2);$G$2:$G$1000) ==> returns #VALUE!
So, I've tried to check if the values are blank with the following formulas:
SUMPRODUCT(--(YEAR(ISNUMBER($A$2:$A$1000))=$J2);$G$2:$G$1000) ==> returns 0
or SUMPRODUCT(--(ISNUMBER($A$2:$A$1000));--(YEAR($A$2:$A$1000)=$J2);$G$2:$G$1000) ==> returns #VALUE!
So, can please one of your experts help me in this matter?
Thanks a lot and have a nice day.
Best regards
So