+ Reply to Thread
Results 1 to 5 of 5

Importing CSV file from a website url

  1. #1
    Registered User
    Join Date
    10-15-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    62

    Post Importing CSV file from a website url

    Hello,

    I'm trying to import a csv file from a website url, I tried using data ribbon > From web and it opens a pop up to open or save the csv file.

    Is there a way to import the csv details to workbook instead of open/saving it from the download popup.


    This is the link I'm trying to download the csv file from: https://www1.nseindia.com/products/c...vdata_full.csv


    EDIT: I want the data to refresh when I do refresh all as that csv file updates daily.
    Last edited by mukuljain99; 01-23-2020 at 02:36 AM.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Importing CSV file from a website url

    You can use Power Query:

    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool

    Quote Originally Posted by mukuljain99 View Post
    Is there a way to import the csv details to workbook instead of open/saving it from the download popup.
    Hi, as a reminder : directly like when you open a local workbook ‼

  4. #4
    Registered User
    Join Date
    10-15-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    62

    Re: Importing CSV file from a website url

    Quote Originally Posted by Olly View Post
    You can use Power Query:
    The code worked, thank you so much!

    EDIT:
    One more question:
    Will the data refresh when I refresh the worksheet tomorrow? the file in the url is dynamic and changes daily.
    Last edited by mukuljain99; 01-23-2020 at 08:52 PM.

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Importing CSV file from a website url

    Yes, the data will update whenever that query is refreshed (including Refresh All)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Importing website data using API
    By kao in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 02-02-2018, 07:28 AM
  2. Website Script to click button on Website and export file to directory?
    By stangz71 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2017, 03:55 PM
  3. Importing data from website
    By unalak in forum Excel General
    Replies: 2
    Last Post: 11-30-2016, 11:22 AM
  4. Importing data from a website using vba
    By amber_skanpur in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-04-2014, 10:18 AM
  5. Importing Excel from a website
    By xyzco123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2010, 09:54 PM
  6. importing external data from a website
    By ppg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2009, 09:46 AM
  7. [SOLVED] Importing data from a website??
    By Galactik in forum Excel General
    Replies: 1
    Last Post: 01-29-2005, 11:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1