derek davis
Member
Hello everyone, could I have a little assistance please. I am trying to create a EOM gain total in excel. I have supplied an xlsx example. I have tried to use sumif with EOMonth, but the end result always seems to give "0". Here is the formula that I used
SUMIFS(A:A+F:F-$L$2,E:E,">="&N23+n2,E:E,"<="&EOMONTH(N23+n2,0)). The EOM gain total that I need is "A+F-L2" for each month of the year. I can't define the number of cells in "A",F:F or"E" as they are variable, so I used A:A and E:E. At the moment we are in year 2019 but 2020 which appears in "N52"is looming up and I will need to define the year somehow. When you open the sheet navigate to A75 for the raw data and look at O27 for where I need the result of the month gain total to appear. Thank you.
SUMIFS(A:A+F:F-$L$2,E:E,">="&N23+n2,E:E,"<="&EOMONTH(N23+n2,0)). The EOM gain total that I need is "A+F-L2" for each month of the year. I can't define the number of cells in "A",F:F or"E" as they are variable, so I used A:A and E:E. At the moment we are in year 2019 but 2020 which appears in "N52"is looming up and I will need to define the year somehow. When you open the sheet navigate to A75 for the raw data and look at O27 for where I need the result of the month gain total to appear. Thank you.