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

Example 3 – Using COUNT function with AVERAGE function

Suppose the prices of a certain commodity are given below:

If we wish to find out the average price from January 8 to 12, we can use

AVERAGE function along with COUNT and OFFSET functions.

The formula to use will be:

The OFFSET function helped in creating dynamic rectangular ranges. By giving

the starting reference B2, we specified the rows and columns the final range

would include.

OFFSET would now return a range originating from the last entry in column B.

Now the COUNT function is used for all of column B to get the required row

offset. COUNT counts only numeric values, so the headings if any are

automatically ignored.

corporatefinanceinstitute.com

181

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

Saved successfully!

Ooh no, something went wrong!