Stopping StockHistory Function from Overlapping/Spilling

stgermainr

New Member
Joined
Jan 20, 2021
Messages
4
Office Version
  1. 2019
Platform
  1. Windows
Hello,

I have data that is organized like this:

1646699657432.png


In the Ticker column, I would like to have tickers in cells A2:A501 and would like to simply copy the cell the formula in B2 all the way down. I know if I nest the Stockhistory function in the Transpose function, I would get the solution I'm looking for but I need the data to be in column vs in rows like this:

Ticker Price
WMT $50.20
WMT $50.40
WMT $49.56
WMT $52.80
... $51.78
PRU $120.77
PRU $122.40
etc.

With the stockhistory function consistently returning dynamic data that increases as each trading day passes, how would I achieve my goal of having the Stockhistory function return data in column B without resulting in a #SPILL error or overlapping data without first spreading out each ticker x number of rows (which would work once, but not when I refresh it and another day's price gets added for each ticker)?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Why not put the tickers in row 1 with the formula underneath?
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top