I want to count the amount of times a date in one column exceeds the date in another column. I already seem to have found a way to do this, but I would like to know what exactly is wrong with my first formula.
17-4-2016 . . . 21-3-2016
17-6-2016 . . . 11-11-2016
17-6-2016 . . . 15-4-2016
23-3-2017 . . . 1-4-2016
23-3-2017 . . . 23-3-2016
23-3-2017 . . . 26-9-2016
23-3-2017 . . . 1-4-2016
23-3-2017 . . . 12-4-2016
23-3-2017 . . . 11-4-2016
23-3-2017 . . . 15-4-2016
My own formula: =COUNTIF(B1:B10;">"&A1:A10) , which gives me a value of 0, while 1 date clearly exceeds the date in the corresponding cell.
I found this formula to work: =SUMPRODUCT(--(B1:B10>A1:A10)) , which gives the correct value of 1.
I would like to know the error in my own formula and how the second one does work.
MMDDYYYYand you have yours asDDMMYYYYso it's evaluating them as text instead of dates. Then thecountifin the second part, the criteria, I think it's only taking the last value of the range instead of the whole range for the comparison and not comparing each row across. - Mike=COUNTIF(F1:F10,">"&E1:E10)-1- Mike