• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login

Power Query editor to get data from an URL and load value (not table) to worksheet|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Power Query editor to get data from an URL and load value (not table) to worksheet|Power Query|Excel Forum|My Online Training Hub

office scripts course

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryPower Query editor to get data from…
sp_PrintTopic sp_TopicIcon
Power Query editor to get data from an URL and load value (not table) to worksheet
Avatar
angelo samia

New Member
Members
Level 0
Forum Posts: 2
Member Since:
May 9, 2019
sp_UserOfflineSmall Offline
1
May 9, 2019 - 10:20 am
sp_Permalink sp_Print sp_EditHistory

I’m trying to use Power Query editor to get data from an URL and load the result in the adjacent cell in my spreadsheet. However in the destination cell I always get also the table header with the value in the row below.

Here are the steps:

- Copy the URL
- Go to Data > Get Data from Web
- Paste the URL, click ok

 
   
status "success"
data  
id "17088"
message "Settings Saved"

- In the Power Query Editor, click on “Record” (applying step "Navigation")
- Right click “id” and “Drill Down”
- Click on the Home tab
- Close and Load to…
- Choose the destination cell

I wanted just the value "17088" in the destination cell but I always also get the table header “tsepHPScrub” in the destination cell with the value in the column below. Is there a way to only have the "17088" value in the destination cell?

Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1844
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
2
May 9, 2019 - 12:31 pm
sp_Permalink sp_Print

You can select the table, then in the table tools in ribbon, Design Tab, uncheck the Header Row and move up the cell with the value.

Avatar
angelo samia

New Member
Members
Level 0
Forum Posts: 2
Member Since:
May 9, 2019
sp_UserOfflineSmall Offline
3
May 10, 2019 - 1:03 pm
sp_Permalink sp_Print

Hi Catalin, thank you for your response. Now I am struggling with the fact that after running the query ok for the first time, next time it will complain about the query with the same name already existing; also I don't know how to refer to the second cell value in the vba code. If you want to give it a try please take a look at test2.xlsm: 

- Select one of the cells with values

- Click "Macro 1" button

- It works (you'll have the link in column F)

- Select any other value, click the button, it doesn't work

Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1844
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
4
May 10, 2019 - 5:49 pm
sp_Permalink sp_Print

I think you're making things more complicated than it needs to be.

When you add a query, a connection will be also added. If you run the code again, you have to loop through existing connections and delete the previously added connections, and also delete the output table, your code is designed to create one, not to use an existing table.

Thinks can be much easier, but to give an advice, I'll have to understand what are you trying to do , and this is not clear.

Normally, you should put all those codes into a source table, then add a query to take data from the source table, add a column with the query function you have, the output will be a table with 2 columns; the initial column with source codes, in second column you will have the results of that function.

Or , you should have a source table, with 1 cell where you can select the desired code, then just refresh the output table.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Mynda Treacy, QSolutions Group
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
jaryszek: 183
Newest Members:
Herbie Key
Trevor Pindling
Stevan Kanjo
Erin Sheldon
Nikita Bhatia
Sheilah Taylor
Clare Webber
David Jenssen
Dominic Brosnahan
Young You
Forum Stats:
Groups: 3
Forums: 24
Topics: 6526
Posts: 28575

 

Member Stats:
Guest Posters: 49
Members: 32809
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate
  • Sponsor Our Newsletter

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.