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

Count positive and negative returns

In this exercise, your task is to count the number of positive and negative returns for the various months of the year.

To do so, use the function COUNTIFS(). You have already seen this function. It returns the count of the first range of cells depending on multiple criteria.

  COUNTIFS(criteria_range1, criterion1, criteria_range2, criterion2)

Notice that we have already extracted information about the month of each return by using the function MONTH(). This function receives a date and returns a number corresponding to the month of the year corresponding to that date.

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 H3, use the function COUNTIFS() to count the number of positive returns (criterion1) occurred in January (criterion2). Define criteria_range2 and criterion2 with cells belonging to column E.

  • In I3, count the number of negative returns occurred in January.

  • Use the autofill feature to complete the table. Remember to use absolute references with the operator $ for both the returns and the months columns.

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