23.08.2023 Views

CFI-Excel-eBook

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The Corporate Finance Institute Excel

The result we get is:

The SUMIFS formula added up all sales that occurred in January to give 24

(3.5+4.5+12+4) as the result for January. Similarly, we got the results for

February and March.

What happened in this formula is that SUMIFS function totaled up the sales for

the range given using two criteria:

1. One was to match dates greater than or equal to the first day of the month.

2. Second, to match dates less than or equal to the last day of the month.

So the formula worked in this way:

=SUMIFS(revenue, (B3:B11),”>=”&DATE(2017,1,1), (B3:B11),”<=”&DATE(2017,1,31))

Remember in column E, we must first type 1/1/2017 and then, using a custom

format, change it to a custom date format (“mmmm”) to display the month

names. If we don’t do this, the formula will not work properly.

Using concatenation with an ampersand (&) is necessary when building criteria

that use a logical operator with a numeric value. Hence, we added that to the

formula.

corporatefinanceinstitute.com

47

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!