Forum Discussion
JennyHoA20181
Mar 10, 2021Brass Contributor
Excel - match dates in dfferent formats
Hello, In the excel attached I am trying to sum all the dates in the second tab into a different format on the first tab. i.e Sum of all dates in January 2018. Even when I format the dates in...
- Mar 10, 2021
Sorry for the misprint. Corrected formula is
=SUMIFS(Sheet2!$D:$D, Sheet2!$B:$B,">" & EOMONTH($A26,-1), Sheet2!$B:$B,"<=" & EOMONTH($A26,0), Sheet2!$C:$C,E$1)
SergeiBaklan
Mar 10, 2021Diamond Contributor
Format doesn't matter. To sum within month you may use
=SUMIFS(Sheet2!$D:$D,Sheet2!$C:$C,">" & EOMONTH(B$1,-1),Sheet2!$C:$C,"<=" & EOMONTH(B$1,0),Sheet2!$B:$B,$A2)
- JennyHoA20181Mar 10, 2021Brass Contributor
Sorry please see attached. The highlighted cell should bring back 423. The school term is not a date. I am trying to match column B on sheet 2, with column A on sheet 1
Thank you!
- SergeiBaklanMar 10, 2021Diamond Contributor
Sorry for the misprint. Corrected formula is
=SUMIFS(Sheet2!$D:$D, Sheet2!$B:$B,">" & EOMONTH($A26,-1), Sheet2!$B:$B,"<=" & EOMONTH($A26,0), Sheet2!$C:$C,E$1)
- JennyHoA20181Mar 11, 2021Brass ContributorThank you! This is so useful for me and all my other spreadsheets!
- IlirUMar 10, 2021Brass ContributorHi,
Try below formula:
=SUMPRODUCT((YEAR(Sheet2!$B$2:$B$100000)=YEAR($A2))*(MONTH(Sheet2!$B$2:$B$100000)=MONTH($A2))*(Sheet2!$C$2:$C$100000=B$1)*(Sheet2!$D$2:$D$100000))
Hope this helps.
Regards,
IlirU- JennyHoA20181Mar 11, 2021Brass ContributorThank you! this works!