STOCKH in Apple Numbers
STOCKH(symbol, close, date)Explanation
STOCKH returns historical share data for a date in the past. The second argument selects the attribute: 0 or omitted is the closing price, 1 the opening price, 2 the high, 3 the low and 4 the volume.
Syntax
STOCKH(symbol, close, date)Example
The closing price one week ago:
=STOCKH("AAPL",0,TODAY()-7)The highest price one month ago:
=STOCKH("AAPL",2,TODAY()-30)Watch out
The date must be in the past. If it falls on a weekend or holiday there is no trading, so pick a working day. Stock splits can affect the result.
This function fetches data from the internet or reads a pivot table, so it cannot be practised in a browser. Try it in Numbers itself.
Frequently asked questions
What does STOCKH do in Apple Numbers?
STOCKH returns historical share data for a date in the past. The second argument selects the attribute: 0 or omitted is the closing price, 1 the opening price, 2 the high, 3 the low and 4 the volume.
What is the syntax of STOCKH?
The syntax is STOCKH(symbol, close, date).
How do I get a historical stock price in Numbers?
Use STOCKH with the symbol, the attribute you want and a date, for example =STOCKH("AAPL",0,TODAY()-7).
What is the difference between STOCK and STOCKH?
STOCK returns the most recent data. STOCKH returns the data for a date in the past.
More in this category
Practise it yourself
Type the formula yourself in a real exercise and see right away if your answer is correct. The first exercises are free.
Start practising