Hi,
I have made this formula to sum number of actions happening in each month:
Everything works fine when the dates is in the same year:
If for example the first date is in year 2021 and the rest is in 2022 I get a strange number back:
Formula for January:
=IF([Month 1]@row = 1; COUNTIF([Year 1]@row; 2022); "") + IF([Month 2]@row = 1; COUNTIF([Year 2]@row; 2022); "") + IF([Month 3]@row = 1; COUNTIF([Year 3]@row; 2022); "") + IF([Month 4]@row = 1; COUNTIF([Year 4]@row; 2022); "")
Formula for February:
=(IF([Year 1]@row = "2022"; COUNTIF([Month 1]@row; 2); "") + (IF([Year 2]@row = "2022"; COUNTIF([Month 2]@row; 2); "")) + (IF([Year 3]@row = "2022"; COUNTIF([Month 3]@row; 2); "")) + (IF([Year 4]@row = "2022"; COUNTIF([Month 4]@row; 2); "")))
Can anyone explain what I have done wrong here and how it can be solved in a good way?
Best,
Daniel