Bắt đầu ngayBắt đầu miễn phí

Count prices and dividends

You are provided with a time series of end-of-month prices and dividends for the ABC stock, spanning the period December 2012 to December 2017.

Your first task is to count the number of historical prices and the number of times the company paid a dividend.

Use the function COUNT() which takes as argument a range of cells (for instance A1:A20) and returns the number of values included in that range.

An extension of this function is COUNTIFS(), which allows you to count the number of cells meeting specific conditions. In this case, in addition to the range of cells, you have to specify the condition you want to test as argument. The condition must be enclosed with quotes (for example “>10”).

Bài tập này là một phần của khóa học

Phân tích tài chính với Google Sheets

Xem khóa học

Hướng dẫn bài tập

  • In F2, count the number of historical prices using the function COUNT(). Pass as the argument the range of cells containing the historical prices.

  • In F11, count the number of dividends larger than zero using COUNTIFS(). Pass as arguments the range of cells containing the historical dividends and a condition.

Bài tập tương tác thực hành

Biến lý thuyết thành hành động với một trong các bài tập tương tác của chúng tôi

Bắt đầu bài tập