Importing Data in a Range into Power Query

Graemea

Board Regular
Joined
Oct 30, 2015
Messages
116
Office Version
  1. 365
Platform
  1. Windows
Hi,

I would like to import into Power Query data in worksheet that's not formatted in a Table and I would prefer it to remain like that.

Is it possible to do this?

Thanks!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Thank you.

I tried that but I'm still being promoted to create a Table when I use From Table/Range in the Get & Transform Data tab?

Is there another way to do this?
 
Upvote 0
Your way is for Table not a named range
for the range you need to open blank query then in Advanced Editor use this M
Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="name_of_your_range"]}[Content]
in
    Source
 
Upvote 0
also you can try after save your workbook: New Query - From File - From Workbook then choose your saved file

example
Power Query:
let
    Source = Excel.Workbook(File.Contents("D:\test\nametest.xlsx"), null, true),
    testname_DefinedName = Source{[Item="testname",Kind="DefinedName"]}[Data],
    #"Promoted Headers" = Table.PromoteHeaders(testname_DefinedName, [PromoteAllScalars=true]),
    #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Artist", type text}, {"Year", Int64.Type}, {"Month", type text}, {"Sales", type number}})
in
    #"Changed Type"
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,202
Members
448,554
Latest member
Gleisner2

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