Enter the following formula in Cell O2
=SUMIFS('Daily Revenues'!$D$2:$D$13,'Daily Revenues'!$B$2:$B$13,"="&K2,'Daily Revenues'!$A$2:$A$13,">"&I2,'Daily Revenues'!$A$2:$A$13,"<"&J2)
and drag/copy down as required. Change the range in formula as per your data.
Above formula will give you Revenue
for aFranchise
between the Start Date
and End Date
excluding these dates. For example, between 01/01/16
and 07/01/16
will give result for 02/01/16 to 06/01/16
i.e 02,03,04,05,06
. If you want to include start and end date use the following formula:
=SUMIFS('Daily Revenues'!$D$2:$D$13,'Daily Revenues'!$B$2:$B$13,"="&K2,'Daily Revenues'!$A$2:$A$13,">="&I2,'Daily Revenues'!$A$2:$A$13,"<="&J2)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…