The Terminal in Excel
Pull prices into a spreadsheet, step by step.
An Excel formula here works like ordering by number from a menu: name the company and the figure, and the answer arrives in the cell.
Steps
- 01
Where it works
The Excel add-in works only on a computer running the Terminal, logged in. You get a Bloomberg tab in Excel.
- 02
Let Excel write it
The Function Builder on that tab writes a formula for you and lists every setting. Start there until the formulas feel familiar.
- 03
One value, or a history
BDP puts one current value in one cell, such as the last price. BDH fills one row per date, such as since January.
BDS fills a list, such as the members of an . BEQS pulls in a screen you saved in EQS.
- 04
BQL
BQL runs the sums on Bloomberg's own computers and sends back only the answer. Ask for an average over five years and you download one number, which also uses less of your download limit.
- 05
Find a field's name
FLDSGO (green key)FLDS finds the name of a data field, such as PX_LAST for the last price. Field Search in Excel does the same.
- 06
Limits and errors
Downloads have daily and monthly limits on each Terminal. Pull only what you need.
An error such as #N/A Dly Lmt means the daily limit is used up. #N/A Mth Lmt is the monthly one.
- 07
Help
DAPIGO (green key)orHELP (green key)BQLXGO (green key)DAPI and GO is help for the add-in. HELP BQLX and GO is help for BQL.
The formulas
BDP: One current value in one cell.
Shape: =BDP(security, field)
=BDP("SHEL LN Equity","LAST_PRICE")Shell's last price. The team's tracker used LAST_PRICE like this.
Field names come from FLDS. PX_LAST also gives the last price.
BDH: A history of values, one row per date.
Shape: =BDH(security, field, start date, end date, settings)
=BDH("SHEL LN Equity","PX_LAST","01/01/2026","")Shell's from 1 January 2026. A blank end date runs to . The team's tracker used PX_LAST like this.
=BDH("IBM Equity","LAST_PRICE","12/30/2004","12/30/2007","curr=GBP, period=cm")Bloomberg's own example: prices in pounds, one a month.
=BDH("IBM US EQUITY","BEST_EPS","12/01/2016","01/31/2017","BEST_FPERIOD_OVERRIDE=1FY","DAYS=ALL","FILL=P")Every day included, and gaps with the value before.
Period sets how often, such as weekly or daily. sets what goes in a gap. The Function Builder lists every choice and writes the letters for you. The examples here write dates month first.
BDS: A list that fills several cells.
Shape: =BDS(security, field)
=BDS("SPX Index","Indx_Members")The members of the S&P 500 , one per row.
Leave empty cells below and beside it for the list.
BEQS: A saved EQS screen, pulled into Excel.
Shape: =BEQS(screen name, settings)
=BEQS("New Eqs","ScreenType=C","Group=Italy Market")Bloomberg's example: a saved screen called New Eqs.
Build and save the screen in EQS first.
BQL: the query language
Shape: =BQL(securities, what to get, settings)
- 1. One value for one shareShell's ratio.
=BQL("SHEL LN Equity","PE_RATIO") - 2. One value for a listThe same ratio for three of the team's companies. Separate them with commas.
=BQL("SHEL LN Equity,CAP FP Equity,BOL SS Equity","PE_RATIO") - 3. A value over timeAlphabet's for each year from 2021 to 2025.
=BQL("GOOG US Equity","EBIT(FA_PERIOD_REFERENCE=RANGE(2021,2025))") - 4. A calculationThe average of those five years, worked out by Bloomberg.
=BQL("GOOG US Equity","AVG(EBIT(FA_PERIOD_REFERENCE=RANGE(2021,2025)))") - 5. A settingShell's total assets, by quarter. The third part is a setting.
=BQL("SHEL LN Equity","BS_TOT_ASSET","FA_PERIOD_TYPE=Q")
For a screen such as companies with a under 15, build it in EQS and pull it in with BEQS. This guide shows only BQL that we could check in a public source. HELP BQLX and GO shows more, and the BQL Builder in Excel has sample queries.
Now do it here
Open the figures a formula would fetch: a company's key financials with FA, and its price with GP.
- FA: Financial analysis, not done yet
- GP: Price chart, not done yet
Command bar
Type a company or a command and press Enter.
Quick check
An independent guide.
Bloomberg and Bloomberg Terminal are trademarks of Bloomberg Finance L.P.