How To Extract Data From A Table With Multiple Website Url

silvanus3805

New Member
Joined
Feb 21, 2022
Messages
17
Office Version
  1. 2016
Platform
  1. Windows
Please help I'm a struggling to extract data from a Table [Table 1] with given URL from multiple website pages , however The formula I used only gave me a option to extract from one row at a time in the column using absolute reference, which is inconvenient, is there a way to reference the whole column so power query can Extract data from all the URL the table in one query?

My code:

let
Query1 = let

//Get Text or CSV files from a folder

Path = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],

Source = Web.Contents(Text.Combine({Path[Column1]{1}},"Column2"))

in
Source
 

Attachments

  • Capture.JPG
    Capture.JPG
    73.3 KB · Views: 33

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
maybe

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    tbl = Table.AddColumn(Source, "Tables",each Web.Page(Web.Contents(_[Column1])){0}[Data]),
    Result = List.Accumulate(List.Skip(tbl[Tables],1), tbl[Tables]{0}, (s,c)=> s & c)
in
    Result
 
Upvote 0
Here's a better way

Power Query:
let
    lst = Excel.CurrentWorkbook(){[Name="Table1"]}[Content][Column1],
    lst1 = List.Transform(lst, each Web.Page(Web.Contents(_)){0}[Data]),
    Result = Table.Combine(lst1)
in
    Result
 
Upvote 0
Solution
Here's a better way

Power Query:
let
    lst = Excel.CurrentWorkbook(){[Name="Table1"]}[Content][Column1],
    lst1 = List.Transform(lst, each Web.Page(Web.Contents(_)){0}[Data]),
    Result = Table.Combine(lst1)
in
    Result
Sure Thank You!!
 
Upvote 0
Here's a better way

Power Query:
let
    lst = Excel.CurrentWorkbook(){[Name="Table1"]}[Content][Column1],
    lst1 = List.Transform(lst, each Web.Page(Web.Contents(_)){0}[Data]),
    Result = Table.Combine(lst1)
in
    Result
Can you Please help me with another Thread? Im Trying to get VBA To Change Values ( True / False ) In [Column2 VBA] everytime Selection.change event happens in the [Column1] range , lets assume the color in column1 is = vbred , I need vba formula to change the values (True/False) in the 2nd column based on the color in column1
 

Attachments

  • Capture.JPG
    Capture.JPG
    61.4 KB · Views: 12
Upvote 0

Forum statistics

Threads
1,215,650
Messages
6,126,019
Members
449,280
Latest member
Miahr

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top