CÁC HÀM LẤY THÔNG TIN TÀI CHÍNH
Lấy số liệu bảng cân đối kế toán, kết quả kinh doanh, lưu chuyển tiền tệ và chỉ số tài chính vào ô Excel bằng hàm FA của FireAnt for Excel.
- 🇻🇳 Tiếng Việt
- 🇬🇧 English
- 🇰🇷 한국어
- 🇨🇳 中文
Nhóm hàm này dùng để làm gì
Nhóm hàm này đưa số liệu báo cáo tài chính của doanh nghiệp niêm yết vào thẳng ô Excel. Bạn không cần tải file báo cáo hay gõ tay từng con số.
Mỗi doanh nghiệp công bố ba báo cáo chính. FireAnt có một lớp hàm riêng cho từng báo cáo:
| Báo cáo và lớp hàm | Cho bạn biết điều gì |
|---|---|
Bảng cân đối kế toán (CĐKT)FA.BalanceSheet | Tại một thời điểm, doanh nghiệp có bao nhiêu tài sản, đang nợ bao nhiêu, vốn chủ sở hữu là bao nhiêu |
Báo cáo kết quả kinh doanh (KQKD)FA.IncomeStatement | Trong một quý hoặc một năm, doanh nghiệp bán được bao nhiêu, chi phí bao nhiêu, lãi hay lỗ |
Báo cáo lưu chuyển tiền tệ (LCTT)FA.CashFlow | Tiền mặt thực tế chảy vào, chảy ra từ hoạt động kinh doanh, đầu tư và tài chính |
Lớp hàm thứ tư là FA.Ratio. Lớp này trả về các chỉ số tài chính đã tính sẵn từ ba báo cáo trên.
Trước khi bắt đầu
- Máy của bạn cần cài FireAnt for Excel. Tên hàm phải được Excel nhận ra thì công thức mới chạy. Xem giới thiệu FireAnt for Excel.
- Bạn cần biết mã chứng khoán của doanh nghiệp, ví dụ
FPT,VNM,VCB. - Bạn cần biết kỳ báo cáo muốn xem, gồm năm và quý.
Bốn kiểu hàm trong mỗi lớp
Lớp CĐKT, KQKD và LCTT đều có các kiểu hàm giống nhau. Chọn kiểu hàm theo việc bạn cần làm:
| Kiểu hàm | Dùng khi bạn muốn |
|---|---|
Kỳ báo cáo mới nhất.Year, .Quarter, .LFY | Biết doanh nghiệp đã có báo cáo đến quý nào, năm nào |
| Chỉ tiêu mới nhất ví dụ .TotalAssets | Lấy nhanh một con số của kỳ gần nhất, không cần nhập năm và quý |
Một chỉ tiêu của một kỳ.Value | Lấy đúng một con số của một kỳ cụ thể. Đây là hàm dùng nhiều nhất |
Cả báo cáo.Reports | Đổ toàn bộ báo cáo của một hay nhiều kỳ ra bảng tính |
Ví dụ cho từng kiểu, theo đúng thứ tự trong bảng:
=FA.BalanceSheet.Quarter("FPT")
=FA.BalanceSheet.TotalAssets("FPT")
=FA.IncomeStatement.Value("FPT",2016,3,"NetSales")
=FA.IncomeStatement.Reports("FPT",2016,3,4,1000000)
Công thức đầu tiên của bạn
Ví dụ sau lấy doanh thu thuần quý 3 năm 2016 của FPT.
-
Mở Excel và chọn một ô trống, ví dụ ô
A1. -
Gõ công thức:
=FA.IncomeStatement.Value("FPT",2016,3,"NetSales") -
Nhấn Enter. Ô
A1hiện doanh thu thuần của FPT trong quý 3/2016.
Công thức có bốn phần, ngăn cách bằng dấu phẩy:
| Phần trong công thức | Ý nghĩa |
|---|---|
Mã CK"FPT" | Mã cổ phiếu, đặt trong ngoặc kép |
Năm2016 | Năm của báo cáo |
Quý3 | Quý của báo cáo. Gõ 0 nếu muốn lấy báo cáo cả năm |
Chỉ tiêu"NetSales" | Mã của chỉ tiêu cần lấy, đặt trong ngoặc kép. NetSales là doanh thu thuần |
Muốn lấy chỉ tiêu khác thì thay mã ở phần cuối. Danh sách mã đầy đủ, kèm tên tiếng Việt, nằm ở từng trang hàm:
- FA.BalanceSheet.Value: các chỉ tiêu bảng cân đối kế toán
- FA.IncomeStatement.Value: các chỉ tiêu kết quả kinh doanh
- FA.CashFlow.Value: các chỉ tiêu lưu chuyển tiền tệ
Quy ước chung cho tham số
-
Mã CK: mã cổ phiếu niêm yết, gõ trong ngoặc kép, ví dụ
"FPT". Bạn cũng có thể trỏ tới một ô đang chứa mã, ví dụA2. -
Năm: năm của báo cáo, gõ dạng số, ví dụ
2016. -
Quý: gõ
1,2,3hoặc4để lấy báo cáo quý. Gõ0để lấy báo cáo năm. -
Mã chỉ tiêu: gõ trong ngoặc kép và đúng từng chữ cái như trong bảng chỉ tiêu, ví dụ
"Cash","NetSales". -
Đơn vị tiền (chỉ hàm
.Reportscó): số tiền sẽ được chia cho giá trị này trước khi hiển thị. Các giá trị hay dùng:Đơn vị tiền Kết quả hiển thị theo 1đồng 1000nghìn đồng 1000000triệu đồng Tỷ giá ngoại tệ, ví dụ tỷ giá USD ngoại tệ đó
Dùng tham chiếu ô sẽ tiện hơn khi lập bảng cho nhiều mã. Ví dụ, đặt mã CK ở ô A2, năm ở B2, quý ở C2:
=FA.IncomeStatement.Value(A2,B2,C2,"NetSales")
Sau đó kéo công thức xuống các dòng dưới để lấy số liệu cho mã hoặc kỳ khác.
Ngân hàng khác doanh nghiệp thường
Báo cáo tài chính của ngân hàng có cấu trúc khác doanh nghiệp sản xuất, thương mại. Vì vậy:
- Bảng cân đối kế toán và kết quả kinh doanh của ngân hàng dùng bộ mã chỉ tiêu riêng. Ví dụ, với ngân hàng, bạn lấy "Cho vay khách hàng" (
CustomersLoans) hoặc "Thu nhập lãi thuần" (NetInterestIncome), không lấy "Doanh thu thuần" (NetSales). - Lưu chuyển tiền tệ dùng chung một bộ mã cho cả ngân hàng và doanh nghiệp thường.
Ví dụ với mã VCB:
=FA.BalanceSheet.Value("VCB",2016,3,"CustomersLoans")
=FA.IncomeStatement.Value("VCB",2016,3,"NetInterestIncome")
=FA.CashFlow.Value("VCB",2016,0,"CashflowFromInvestingActivities")
Mỗi trang hàm .Value có hai bảng mã tách riêng: một bảng cho doanh nghiệp thường và một bảng cho ngân hàng.
Các lớp hàm
- Lớp hàm FA.BalanceSheet: các hàm lấy thông tin từ bảng cân đối kế toán
- Lớp hàm FA.IncomeStatement: các hàm lấy thông tin từ báo cáo kết quả kinh doanh
- Lớp hàm FA.CashFlow: các hàm lấy thông tin từ báo cáo lưu chuyển tiền tệ
- Lớp hàm FA.Ratio: các hàm lấy chỉ số tài chính của mã chứng khoán
What this function group is for
This function group brings the financial statement data of listed companies straight into Excel cells. You don't need to download report files or type each figure by hand.
Every company publishes three main statements. FireAnt has a separate function class for each statement:
| Statement and function class | What it tells you |
|---|---|
Balance sheetFA.BalanceSheet | At a point in time, how much the company owns, how much it owes, and how much its equity is |
Income statementFA.IncomeStatement | Over a quarter or a year, how much the company sold, how much it spent, and whether it made a profit or a loss |
Cash flow statementFA.CashFlow | The actual cash flowing in and out from operating, investing, and financing activities |
The fourth function class is FA.Ratio. It returns financial ratios already calculated from the three statements above.
Before you start
- Your computer needs FireAnt for Excel installed. Excel must recognize the function names for formulas to work. See the FireAnt for Excel introduction.
- You need to know the ticker of the company, for example
FPT,VNM,VCB. - You need to know the reporting period you want to view, meaning the year and quarter.
Four function types in each class
The balance sheet, income statement, and cash flow classes all have the same function types. Choose a function type based on what you need to do:
| Function type | Use when you want to |
|---|---|
Latest reporting period.Year, .Quarter, .LFY | Find out which quarter and year the company has reported up to |
| Latest item for example .TotalAssets | Quickly get one figure for the latest period, without entering the year and quarter |
One item for one period.Value | Get exactly one figure for a specific period. This is the most commonly used function |
Whole statement.Reports | Output the entire statement for one or more periods to the spreadsheet |
Examples for each type, in the same order as the table:
=FA.BalanceSheet.Quarter("FPT")
=FA.BalanceSheet.TotalAssets("FPT")
=FA.IncomeStatement.Value("FPT",2016,3,"NetSales")
=FA.IncomeStatement.Reports("FPT",2016,3,4,1000000)
Your first formula
The following example gets FPT's net revenue for Q3 2016.
-
Open Excel and select an empty cell, for example cell
A1. -
Type the formula:
=FA.IncomeStatement.Value("FPT",2016,3,"NetSales") -
Press Enter. Cell
A1shows FPT's net revenue for Q3/2016.
The formula has four parts, separated by commas:
| Part of the formula | Meaning |
|---|---|
Ticker"FPT" | The stock ticker, in quotation marks |
Year2016 | The year of the statement |
Quarter3 | The quarter of the statement. Enter 0 to get the annual statement |
Item"NetSales" | The code of the item to retrieve, in quotation marks. NetSales is net revenue |
To get a different item, change the code in the last part. The full list of codes, with Vietnamese names, is on each function's page:
- FA.BalanceSheet.Value: balance sheet items
- FA.IncomeStatement.Value: income statement items
- FA.CashFlow.Value: cash flow statement items
General parameter conventions
-
Ticker: a listed stock ticker, typed in quotation marks, for example
"FPT". You can also point to a cell that contains the ticker, for exampleA2. -
Year: the year of the statement, entered as a number, for example
2016. -
Quarter: enter
1,2,3, or4to get a quarterly statement. Enter0to get the annual statement. -
Item code: type it in quotation marks, exactly letter for letter as in the item table, for example
"Cash","NetSales". -
Currency unit (only for
.Reports): amounts are divided by this value before being displayed. Commonly used values:Currency unit Result displayed in 1dong 1000thousand dong 1000000million dong A foreign exchange rate, for example the USD rate that foreign currency
Using cell references is more convenient when you build a table for many tickers. For example, put the ticker in cell A2, the year in B2, and the quarter in C2:
=FA.IncomeStatement.Value(A2,B2,C2,"NetSales")
Then drag the formula down to the rows below to get data for other tickers or periods.
Banks differ from regular companies
A bank's financial statements are structured differently from those of manufacturing and trading companies. Therefore:
- A bank's balance sheet and income statement use a separate set of item codes. For example, for a bank you retrieve "Customer loans" (
CustomersLoans) or "Net interest income" (NetInterestIncome), not "Net revenue" (NetSales). - The cash flow statement uses one shared set of codes for both banks and regular companies.
Examples with the ticker VCB:
=FA.BalanceSheet.Value("VCB",2016,3,"CustomersLoans")
=FA.IncomeStatement.Value("VCB",2016,3,"NetInterestIncome")
=FA.CashFlow.Value("VCB",2016,0,"CashflowFromInvestingActivities")
Each .Value function page has two separate code tables: one for regular companies and one for banks.
Function classes
- FA.BalanceSheet function class: functions that retrieve information from the balance sheet
- FA.IncomeStatement function class: functions that retrieve information from the income statement
- FA.CashFlow function class: functions that retrieve information from the cash flow statement
- FA.Ratio function class: functions that retrieve financial ratios of a ticker
이 함수 그룹의 용도
이 함수 그룹은 상장 기업의 재무제표 데이터를 Excel 셀에 바로 가져옵니다. 보고서 파일을 내려받거나 숫자를 일일이 입력할 필요가 없습니다.
기업은 세 가지 주요 재무제표를 공시합니다. FireAnt에는 각 재무제표별로 별도의 함수 클래스가 있습니다.
| 재무제표와 함수 클래스 | 알 수 있는 내용 |
|---|---|
재무상태표FA.BalanceSheet | 특정 시점에 기업의 자산이 얼마인지, 부채가 얼마인지, 자기자본이 얼마인지 |
손익계산서FA.IncomeStatement | 한 분기 또는 한 해 동안 기업이 얼마나 팔았고, 비용이 얼마였으며, 이익인지 손실인지 |
현금흐름표FA.CashFlow | 영업, 투자, 재무 활동에서 실제로 들어오고 나간 현금 |
네 번째 함수 클래스는 FA.Ratio입니다. 이 클래스는 위 세 재무제표에서 미리 계산된 재무 지표를 반환합니다.
시작하기 전에
- 컴퓨터에 FireAnt for Excel이 설치되어 있어야 합니다. Excel이 함수 이름을 인식해야 수식이 동작합니다. FireAnt for Excel 소개를 참고하세요.
- 기업의 종목 코드를 알아야 합니다. 예:
FPT,VNM,VCB. - 조회하려는 보고 기간(연도와 분기)을 알아야 합니다.
각 클래스의 네 가지 함수 유형
재무상태표, 손익계산서, 현금흐름표 클래스에는 동일한 함수 유형이 있습니다. 필요한 작업에 따라 함수 유형을 선택하세요.
| 함수 유형 | 이럴 때 사용 |
|---|---|
최신 보고 기간.Year, .Quarter, .LFY | 기업이 어느 분기, 어느 연도까지 보고했는지 확인할 때 |
| 최신 항목 예: .TotalAssets | 연도와 분기를 입력하지 않고 가장 최근 기간의 숫자 하나를 빠르게 가져올 때 |
한 기간의 한 항목.Value | 특정 기간의 숫자 하나를 정확히 가져올 때. 가장 많이 쓰는 함수입니다 |
전체 재무제표.Reports | 한 개 또는 여러 기간의 재무제표 전체 를 스프레드시트에 출력할 때 |
표의 순서대로 각 유형의 예시입니다.
=FA.BalanceSheet.Quarter("FPT")
=FA.BalanceSheet.TotalAssets("FPT")
=FA.IncomeStatement.Value("FPT",2016,3,"NetSales")
=FA.IncomeStatement.Reports("FPT",2016,3,4,1000000)
첫 번째 수식
다음 예시는 FPT의 2016년 3분기 순매출을 가져옵니다.
-
Excel을 열고 빈 셀을 선택합니다. 예:
A1셀. -
수식을 입력합니다.
=FA.IncomeStatement.Value("FPT",2016,3,"NetSales") -
Enter를 누릅니다.
A1셀에 FPT의 2016년 3분기 순매출이 표시됩니다.
수식은 쉼표로 구분된 네 부분으로 이루어집니다.
| 수식의 부분 | 의미 |
|---|---|
종목 코드"FPT" | 종목 코드. 따옴표 안에 입력합니다 |
연도2016 | 재무제표의 연도 |
분기3 | 재무제표의 분기. 연간 재무제표를 가져오려면 0을 입력합니다 |
항목"NetSales" | 가져올 항목의 코드. 따옴표 안에 입력합니다. NetSales는 순매출입니다 |
다른 항목을 가져오려면 마지막 부분의 코드를 바꾸면 됩니다. 베트남어 이름이 포함된 전체 코드 목록은 각 함수 페이지에 있습니다.
- FA.BalanceSheet.Value: 재무상태표 항목
- FA.IncomeStatement.Value: 손익계산서 항목
- FA.CashFlow.Value: 현금흐름표 항목
인수 공통 규칙
-
종목 코드: 상장 종목 코드. 따옴표 안에 입력합니다. 예:
"FPT". 코드가 들어 있는 셀을 참조해도 됩니다. 예:A2. -
연도: 재무제표의 연도. 숫자로 입력합니다. 예:
2016. -
분기: 분기 재무제표를 가져오려면
1,2,3또는4를 입력합니다. 연간 재무제표를 가져오려면0을 입력합니다. -
항목 코드: 따옴표 안에, 항목 표에 있는 대로 글자 하나하나 정확히 입력합니다. 예:
"Cash","NetSales". -
통화 단위(
.Reports에만 있음): 금액을 이 값으로 나눈 뒤 표시합니다. 자주 쓰는 값은 다음과 같습니다.통화 단위 표시 단위 1동 1000천 동 1000000백만 동 외화 환율. 예: USD 환율 해당 외화
여러 종목의 표를 만들 때는 셀 참조를 사용하면 더 편리합니다. 예를 들어 종목 코드를 A2, 연도를 B2, 분기를 C2에 입력합니다.
=FA.IncomeStatement.Value(A2,B2,C2,"NetSales")
그런 다음 수식을 아래 행으로 끌어 다른 종목이나 기간의 데이터를 가져옵니다.
은행은 일반 기업과 다릅니다
은행의 재무제표는 제조업, 유통업 기업과 구조가 다릅니다. 따라서 다음과 같습니다.
- 은행의 재무상태표와 손익계산서는 별도의 항목 코드 세트를 사용합니다. 예를 들어 은행은 "순매출"(
NetSales)이 아니라 "고객 대출"(CustomersLoans)이나 "순이자수익"(NetInterestIncome)을 가져옵니다. - 현금흐름표는 은행과 일반 기업이 하나의 공통 코드 세트를 사용합니다.
VCB 종목 예시:
=FA.BalanceSheet.Value("VCB",2016,3,"CustomersLoans")
=FA.IncomeStatement.Value("VCB",2016,3,"NetInterestIncome")
=FA.CashFlow.Value("VCB",2016,0,"CashflowFromInvestingActivities")
각 .Value 함수 페이지에는 일반 기업용과 은행용, 두 개의 코드 표가 따로 있습니다.