Forum

Trying to create ta...
 
Notifications
Clear all

Trying to create table from named range on the fly

3 Posts
2 Users
0 Reactions
150 Views
(@jaryszek)
Posts: 177
Reputable Member
Topic starter
 

hi Guys,

i am trying to create table with one column from named range:

What i am trying :

= #table({"Column1"}, {Excel.CurrentWorkbook(){[Name="MainNR"]}[Content][Column1]{0}})

but i am getting error. 
Why? 

how to get value for row using named range?

Best,
Jacek

 
Posted : 04/09/2021 3:49 am
(@catalinb)
Posts: 1937
Member Admin
 

#table needs lists as arguments.

This is already a table:

Source= Excel.CurrentWorkbook(){[Name="MainNR"]}[Content][Column1]

You don't need {0}, this means a single cell.

 
Posted : 04/09/2021 6:32 am
(@jaryszek)
Posts: 177
Reputable Member
Topic starter
 

Thank you Catalin!

Have a blessed day!
Jacek

 
Posted : 04/09/2021 6:45 am
Share: