Nhưng mà anh tuainhan ơi quan trọng là nó có mấy điểm nguyên trong khi trong khung thì lại không có kết quả giống dưới bảng kia mà! Hàm VLOOKUP k hợp lí lắm! Bạn xem lại công thức =VLOOKUP(C3,$D$13:$E$16,2,1
Chúng ta nhiều khi không thấy tầm quan trọng của Range_lookup (1 hay 0). Khi giá trị trong vùng dò tìm được sắp xếp theo giá trị tăng dần và 1 được chọn thì giá trị nhỏ hơn, gần với giá trị dò tìm sẽ được chọn, không chọn giá trị cao hơn.
Ví dụ nếu giá trị dò tìm ĐTB từ 7-8.9 thì 7 sẽ được chọn và kết quả trả về Khá.
Nếu hàm vlookup trong trường hợp này không dùng 1 mà dùng 0 để tìm giá trị chính xác thì sẽ bị báo lỗi #N/A.
Bạn xem hướng dẫn của Excel
range_lookup Optional. A logical value that specifies whether you want VLOOKUP to find an exact match or an approximate match:
If range_lookup is either TRUE (1) or is omitted, an exact or approximate match is returned. If an exact match is not found, the next largest value that is less than lookup_value is returned.
Important If range_lookup is either TRUE (1) or is omitted, the values in the first column of table_array must be placed in ascending sort order; otherwise, VLOOKUP might not return the correct value.
For more information, see Sort data in a range or table.
If range_lookup is FALSE, the values in the first column of table_array do not need to be sorted.
If the range_lookup argument is FALSE (0), VLOOKUP will find only an exact match. If there are two or more values in the first column of table_array that match the lookup_value, the first value found is used. If an exact match is not found, the error value #N/A is returned.