Hi, I am trying use the below formula but it is returning #Ref! error, when I try SUMIFS separately and SUMPRODUCT separately they both returns correct result and also the complete formula with F9 showing the correct values.
INDEX(SUMIFS('Daily Income Record'!$C$4:$C$1514, 'Daily Income Record'!$B$4:$B$1514, ">="&EOMONTH('Daily Income Record'!$B4,-1)+1, 'Daily Income Record'!$B$4:$B$1514, "<="&EOMONTH('Daily Income Record'!$B4,0)),SUMPRODUCT(MAX(('Daily Income Record'!$B$4:$B$1514=EOMONTH('Daily Income Record'!$B4,0))*ROW('Daily Income Record'!$B$4:$B$1514))))
INDEX(SUMIFS('Daily Income Record'!$C$4:$C$1514, 'Daily Income Record'!$B$4:$B$1514, ">="&EOMONTH('Daily Income Record'!$B4,-1)+1, 'Daily Income Record'!$B$4:$B$1514, "<="&EOMONTH('Daily Income Record'!$B4,0)),SUMPRODUCT(MAX(('Daily Income Record'!$B$4:$B$1514=EOMONTH('Daily Income Record'!$B4,0))*ROW('Daily Income Record'!$B$4:$B$1514))))