Need help importing Index Prices

gchandra 0 Reputation points
2024-10-10T13:32:55.04+00:00

I need help automatically importing historical prices of index prices to Excel. I tried using the =STOCKHISTORY function but its not working for the Indonesian Market that I'm researching.

I tried this but doesn't work. I need the IHSG (JKSE), LQ45, JII, etc. The ticker is correct (rechecked it in Indonesia's stock exchange directory: IDX)

=STOCKHISTORY("XIDX: IHSG", [START DATE], [END DATE], 0,1,2]

I tried SPY and worked. Is there any workaround for this problem?

Microsoft 365 and Office | Excel | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. Jiajing Hua 18,065 Reputation points Moderator
    2024-10-11T06:53:47.9566667+00:00

    Hi @gchandra

    IHSG (JKSE), LQ45, JII seems to be stock market indexes, STOCKHISTORY function does not support it, it needs a ticker symbol.

    For more, please refer to: STOCKHISTORY function.

    Here is a similar thread that import Index price into Excel: https://techcommunity.microsoft.com/t5/excel/does-stockhistory-work-for-indices-where-can-i-find-the-symbols/m-p/3570707

    Lorenzo recommends using Excel Power Query to import data from a 3rd-party website.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.