Outline ·
[ Standard ] ·
Linear+
Stock Spreadsheet
|
gegambo
|
Jun 2 2020, 06:11 PM
|
New Member
|
hi can someone help me out here. been trying and trying but with no success. can someone point out where i am wrong?
=importxml("https://www.klsescreener.com/v2/stocks/view/5238","//*(@id=price_header)")
thanks in advance
This post has been edited by gegambo: Jun 2 2020, 06:12 PM
|
|
|
|
|
|
plumberly
|
Jun 18 2020, 02:55 PM
|
|
Found this today. Excellent way to get stock data via your Excel! https://www.youtube.com/embed/xzOvM164H6M?rel=0But need paid Excel 365 for the latest functions, I think.
|
|
|
|
|
|
hdr088
|
Jun 25 2020, 11:06 AM
|
Getting Started

|
QUOTE(plumberly @ Jun 18 2020, 02:55 PM) Found this today. Excellent way to get stock data via your Excel! https://www.youtube.com/embed/xzOvM164H6M?rel=0But need paid Excel 365 for the latest functions, I think. Sadly bursa not supported https://support.microsoft.com/en-us/office/...ea-c5a6c8e787e6
|
|
|
|
|
|
SUSlowya
|
Oct 9 2020, 05:48 PM
|
|
Hi, anyone with success using =GOOGLEFINANCE() in Google Spreadsheet to pull KLSE stock prices?
|
|
|
|
|
|
ryan18
|
Oct 11 2020, 01:50 PM
|
|
Not sure why but the Bloomberg formula that works well for the past few months is now showing error
|
|
|
|
|
|
Havoc Knightmare
|
Oct 11 2020, 03:32 PM
|
|
QUOTE(ryan18 @ Oct 11 2020, 01:50 PM) Not sure why but the Bloomberg formula that works well for the past few months is now showing error Because bloomberg, along with many other sites with stock prices are one-by-one blocking us from fetching data. You've to find other new websites to fetch prices from.
|
|
|
|
|
|
Yggdrasil
|
Oct 16 2020, 07:45 PM
|
|
QUOTE(lowya @ Oct 9 2020, 05:48 PM) Hi, anyone with success using =GOOGLEFINANCE() in Google Spreadsheet to pull KLSE stock prices? I think Google doesn't have permission to pull from Malaysia exchange. It can't pull from Japan exchange too. You need to pull from other websites. QUOTE(ryan18 @ Oct 11 2020, 01:50 PM) Not sure why but the Bloomberg formula that works well for the past few months is now showing error Yeah not sure why but I managed to pull from investing.com
|
|
|
|
|
|
Yggdrasil
|
Oct 16 2020, 07:49 PM
|
|
QUOTE(gegambo @ Jun 2 2020, 06:11 PM) hi can someone help me out here. been trying and trying but with no success. can someone point out where i am wrong? =importxml("https://www.klsescreener.com/v2/stocks/view/5238","//*(@id=price_header)") thanks in advance Your code is wrong. Here's the correct one. CODE =importxml("https://www.klsescreener.com/v2/stocks/view/5238","//span[@id='price']") It's not that hard to learn. BTW TO OTHERS... STOP ASKING ANYMORE.. If error means your code wrong or website cannot pull.
|
|
|
|
|
|
polarzbearz
|
Oct 19 2020, 12:38 PM
|
|
For those interested, can also use my spreadsheet. I published it for free initially for fundsupermart users but over time I've moved on to other vehicles (incl. Malaysia / Foreign stocks) The spreadsheet might be quite heavy though. Links in my signature or read more here: https://forum.lowyat.net/index.php?showtopi...entry98487565
|
|
|
|
|
|
Havoc Knightmare
|
Oct 19 2020, 08:03 PM
|
|
QUOTE(polarzbearz @ Oct 19 2020, 12:38 PM) For those interested, can also use my spreadsheet. I published it for free initially for fundsupermart users but over time I've moved on to other vehicles (incl. Malaysia / Foreign stocks) The spreadsheet might be quite heavy though. Links in my signature or read more here: https://forum.lowyat.net/index.php?showtopi...entry98487565You have a great thing going there, though I'm wondering why don't you move to Google Sheets, since Google Sheets is superior in so many ways. For instance, my portfolio file on google sheets is able to save my end-of-day portfolio value, without having to open the file at all. Google scripts can be automated to be triggered on a time basis, without requiring one to open the file on a daily basis and pressing macro buttons. So I get a summary of how my portfolio of stocks on Bursa, SGX and HKEX have evolved over the last 3+ years as per the chart below. All without pressing buttons and running macros. I only have to key into my sheet my trades and dividends received, with google sheets taking care of everything else.  This post has been edited by Havoc Knightmare: Oct 19 2020, 08:12 PM
|
|
|
|
|
|
polarzbearz
|
Oct 19 2020, 09:42 PM
|
|
QUOTE(Havoc Knightmare @ Oct 19 2020, 08:03 PM) You have a great thing going there, though I'm wondering why don't you move to Google Sheets, since Google Sheets is superior in so many ways. For instance, my portfolio file on google sheets is able to save my end-of-day portfolio value, without having to open the file at all. Google scripts can be automated to be triggered on a time basis, without requiring one to open the file on a daily basis and pressing macro buttons. So I get a summary of how my portfolio of stocks on Bursa, SGX and HKEX have evolved over the last 3+ years as per the chart below. All without pressing buttons and running macros. I only have to key into my sheet my trades and dividends received, with google sheets taking care of everything else.   Dang, that's actually pretty neat! Personally I thought about it a few times but was too lazy to re-do everything again on Google Sheets and that kinda held me back  Maybe I should really spend some time and look into it  My snapshot is only as good as the times I remember to refresh it  There's some obvious "holes" on certain month when I forgot to even open the sheet
|
|
|
|
|
|
Havoc Knightmare
|
Oct 19 2020, 10:05 PM
|
|
QUOTE(polarzbearz @ Oct 19 2020, 09:42 PM) Dang, that's actually pretty neat! Personally I thought about it a few times but was too lazy to re-do everything again on Google Sheets and that kinda held me back  Maybe I should really spend some time and look into it  My snapshot is only as good as the times I remember to refresh it  There's some obvious "holes" on certain month when I forgot to even open the sheet  Yeah, with google sheets you will never have to open the sheet just to run macros. You just need to check in every now and then to correct any errors since google sheets doesn't fetch data correctly occasionally and you end up with #error cell outputs. My current sheet is derived from this Singaporean blogger's work since I have little knowledge in programming languages - https://investmentmoats.com/StockPortfolioT...menttracker.phpPerhaps you can use his sheet as a blueprint to work with.
|
|
|
|
|
|
Yggdrasil
|
Oct 19 2020, 10:21 PM
|
|
QUOTE(polarzbearz @ Oct 19 2020, 12:38 PM) For those interested, can also use my spreadsheet. I published it for free initially for fundsupermart users but over time I've moved on to other vehicles (incl. Malaysia / Foreign stocks) The spreadsheet might be quite heavy though. Links in my signature or read more here: https://forum.lowyat.net/index.php?showtopi...entry98487565Wow that dedication!
|
|
|
|
|
|
ryan18
|
Oct 19 2020, 11:11 PM
|
|
QUOTE(Yggdrasil @ Oct 16 2020, 07:45 PM) I think Google doesn't have permission to pull from Malaysia exchange. It can't pull from Japan exchange too. You need to pull from other websites. Yeah not sure why but I managed to pull from investing.com I manage to use klse.i3investor.com to pull the prices but as some has mentioned the formula keeps on changing sometimes it’s up,sometimes it’s down
|
|
|
|
|
|
Yggdrasil
|
Oct 19 2020, 11:25 PM
|
|
QUOTE(ryan18 @ Oct 19 2020, 11:11 PM) I manage to use klse.i3investor.com to pull the prices but as some has mentioned the formula keeps on changing sometimes it’s up,sometimes it’s down Solution already mentioned here: https://forum.lowyat.net/index.php?showtopi...post&p=95692476Use IFERROR( ...link with up... , ...link with down...) This means if Google fetch the link with up and it's an error, it will revert to link with down. Disadvantage is it's a long formula.
|
|
|
|
|
|
babychai
|
Oct 26 2020, 04:00 PM
|
|
Hi there, i wondering is there any method or insert any code to make it auto refresh within few second/minute instead of manual refresh it?
|
|
|
|
|
|
Yggdrasil
|
Oct 26 2020, 04:17 PM
|
|
QUOTE(babychai @ Oct 26 2020, 04:00 PM) Hi there, i wondering is there any method or insert any code to make it auto refresh within few second/minute instead of manual refresh it? You can easily Google this..
|
|
|
|
|
|
trader8833 P
|
Oct 30 2020, 05:21 AM
|
New Member
|
QUOTE(Yggdrasil @ Mar 4 2020, 02:50 PM)
The code is for Sheets. For Excel, you need to import the data from the link.
I am still having trouble doing this. Could you be so kind to help me out? It keeps showing N/A. And it says content imported is empty.
https://pictr.com/images/2020/10/30/7MOy35.png
https://pictr.com/images/2020/10/30/7MOXjV.png
https://pictr.com/images/2020/10/30/7MOKpv.md.png
|
|
|
|
|
|
Yggdrasil
|
Oct 30 2020, 12:35 PM
|
|
QUOTE(trader8833 @ Oct 30 2020, 05:21 AM) N/A because Bloomberg website doesn't allow "scrapping" figures or Google's website having problem retrieving. Extract from klsescreener instead. CODE =importxml("https://www.klsescreener.com/v2/stocks/view/5176","//span[@id='price']")
|
|
|
|
|
|
WaterDuck
|
Sep 8 2021, 07:23 PM
|
New Member
|
hihi, i had created a webpage mainly to cater this google sheet problem. Feel free to test it out and let me know any feedbacks =)
www.mybuku555.com
|
|
|
|
|