SOLVED

How do I get closing prices for days of the month to update every day using Excel 365 Stocks?

%3CLINGO-SUB%20id%3D%22lingo-sub-1751293%22%20slang%3D%22en-US%22%3EHow%20do%20I%20get%20closing%20prices%20for%20days%20of%20the%20month%20to%20update%20every%20day%20using%20Excel%20365%20Stocks%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1751293%22%20slang%3D%22en-US%22%3E%3CP%3EUsing%20the%20stocks%20feature%20on%20Excel%2C%20I%20want%20to%20be%20able%20to%20put%20a%20formula%20in%20a%20set%20of%20cells%20that%20keeps%20up%20with%20a%20stock's%20closing%20prices%20for%20every%20day%20of%20the%20month%20and%20will%20update%20after%20every%20day.%20I've%20tried%20several%20things%20but%20can't%20seem%20to%20figure%20out%20how%20to%20get%20the%20previous%20close%20feature%20to%20correspond%20with%20given%20dates.%20Can%20anybody%20give%20me%20a%20formula%20or%20some%20sort%20of%20guidance%3F%20Thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1751293%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBI%20%26amp%3B%20Data%20Analysis%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1752173%22%20slang%3D%22de-DE%22%3ESubject%3A%20How%20do%20I%20get%20closing%20prices%20for%20days%20of%20the%20month%20to%20update%20every%20day%20using%20Excel%20365%20Stock%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1752173%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F822533%22%20target%3D%22_blank%22%3E%40collinreed%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22text-wrap%20tlid-copy-target%22%3E%3CDIV%20class%3D%22result-shield-container%20tlid-copy-target%22%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3EMaybe%20this%20information%20will%20help%20you.%3CBR%20%2F%3E%3CBR%20%2F%3EUpdate%20the%20data%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20Linked%20data%20types%20can%20be%20linked%20to%20an%20online%20data%20source.%20Whenever%20you%20convert%20text%20to%20a%20linked%20data%20type%2C%20an%20external%20data%20connection%20is%20created%20in%20the%20workbook.%20If%20the%20data%20changes%20online%2C%20you%20can%20update%20it%20in%20Excel%20to%20bring%20it%20up%20to%20date.%20To%20update%20the%20data%2C%20right-click%20a%20cell%20with%20the%20associated%20data%20type%20and%20select%20Data%20Type%26gt%3B%20Update.%20This%20will%20update%20the%20selected%20cell%20and%20any%20other%20cells%20that%20have%20the%20same%20data%20type.%3CBR%20%2F%3E%3CBR%20%2F%3ETo%20update%20all%20related%20data%20types%20and%20all%20data%20connections%20that%20might%20be%20in%20the%20workbook%20(including%20queries%2C%20other%20data%20connections%2C%20and%20PivotTables)%2C%20choose%20Data%26gt%3B%20Update%20All%20or%20press%20CTRL%20%2B%20ALT%20%2B%20F5.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22result-shield-container%20tlid-copy-target%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22result-shield-container%20tlid-copy-target%22%3E%3CH1%20id%3D%22toc-hId-556909487%22%20id%3D%22toc-hId-556909487%22%20id%3D%22toc-hId-556909487%22%20id%3D%22toc-hId-556909487%22%3EExcel%20data%20types%3A%20Stocks%20and%20geography%3C%2FH1%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fexcel-data-types-stocks-and-geography-61a33056-9935-484f-8ac8-f1a89e210877%3Fui%3Den-us%26amp%3Brs%3Den-us%26amp%3Bad%3Dus%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fexcel-data-types-stocks-and-geography-61a33056-9935-484f-8ac8-f1a89e210877%3Fui%3Den-us%26amp%3Brs%3Den-us%26amp%3Bad%3Dus%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3EI%20would%20be%20happy%20to%20know%20if%20I%20could%20help%20you.%3CBR%20%2F%3E%3CBR%20%2F%3ENikolino%20%3CBR%20%2F%3E%20I%20know%20that%20I%20don't%20know%20(Socrates)%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22tlid-result-transliteration-container%20result-transliteration-container%20transliteration-container%22%3E%3CDIV%20class%3D%22tlid-transliteration-content%20transliteration-content%20full%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1752209%22%20slang%3D%22en-US%22%3EBetreff%3A%20How%20do%20I%20get%20closing%20prices%20for%20days%20of%20the%20month%20to%20update%20every%20day%20using%20Excel%20365%20Stock%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1752209%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20understand%20that%2C%20the%20issue%20is%20simply%20I%20would%20like%20to%20attach%20a%20particular%20date%2C%20whether%20it%20be%20in%20the%20future%20or%20already%20happened%20and%20for%20the%20closing%20price%20of%20that%20day%20to%20update%20to%20the%20sheet%20over%20time.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Using the stocks feature on Excel, I want to be able to put a formula in a set of cells that keeps up with a stock's closing prices for every day of the month and will update after every day. I've tried several things but can't seem to figure out how to get the previous close feature to correspond with given dates. Can anybody give me a formula or some sort of guidance? Thanks

3 Replies
Highlighted

@collinreed 

 

Maybe this information will help you.

Update the data

Linked data types can be linked to an online data source. Whenever you convert text to a linked data type, an external data connection is created in the workbook. If the data changes online, you can update it in Excel to bring it up to date. To update the data, right-click a cell with the associated data type and select Data Type> Update. This will update the selected cell and any other cells that have the same data type.

To update all related data types and all data connections that might be in the workbook (including queries, other data connections, and PivotTables), choose Data> Update All or press CTRL + ALT + F5.
 

Excel data types: Stocks and geography

https://support.microsoft.com/en-us/office/excel-data-types-stocks-and-geography-61a33056-9935-484f-...

 

I would be happy to know if I could help you.

Nikolino
I know that I don't know (Socrates)
 

 

Highlighted

@Nikolino 

 

I understand that, the issue is simply I would like to attach a particular date, whether it be in the future or already happened and for the closing price of that day to update to the sheet over time. 

 

Highlighted
Best Response confirmed by collinreed (New Contributor)
Solution

@collinreed I don't believe the Stock data type can give you historic prices. It has Price  and Previous Close. Of course, you can start building your own history file by writing some code to copy the Price for the day and paste it into a history table and then run you reports/analysis from there. But, if you forget, or are not able to update the schedule one or a few days, you need to add data manually. 

Perhaps best to find an on-line source that allows you to read out historic stock quotes for the securities you are interested in. Then use Power Query (PQ) to connect to this data and have it extract what you need for whatever date or period you are looking for. Though, I'm pretty sure you'll not find any source that can give you prices on future dates.

 

Edit: Found a (probably one of many) site that allowed me to dynamically link to historic stock data. The attached file is just an example of what's possible with PQ. This particular site requires 9 different parameters to build a dynamic URL. The parameter sheet gives an example of how an initial static URL compares to a dynamic URL. Hope you find this helpful.