Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Handling Excel header on two lines

(0) ShareShare
ReportReport
Posted on by 11

Hi.
I have an interesting situation. 
I need to update an Excel table with some data from another Excel.
When I try to map rows in step "Add a row into a table", I have difficulties with some column names.
I am pulling items from step "Filter array" with an expression like this: 

 

 

 

items('Apply_to_each_row')?['Column1']

 

 

 

 but when I try to use it for a column that has the header on two lines, flow is just ignoring those columns.

I tried to paste the name as it is on 2 lanes, then to put it on only one name, and using the name like is in the output from "Filter array" that looks like this 

 

 

 

Text one \ntext two kg

 

 

 

 but no luck so far. Is there a special way to handle this situations?


Column1Column 2
Text one
text two kg
AbcdBcde100

 

Screenshot 2022-08-09 174317.png

  • Thomas Luo Profile Picture
    Microsoft Employee on at
    Re: Handling Excel header on two lines

    You have to change the mode to text mode, then you can input like @item()?['Financial \nYear 1'] 

    ThomasLuo_0-1670230898772.png

     

  • Verified answer
    norocdinu Profile Picture
    11 on at
    Re: Handling Excel header on two lines

    Thank you for your suggestion. I have tried this with no success. However I solved the problem with an intermediary step. I parsed JSON and that gave me the column names in the dynamic content window which I used to add rows to a table.

     

    Screenshot 2022-08-22 114902.png

  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: Handling Excel header on two lines

    Hi @norocdinu ,

     

    Please try:

     

    ['Text one
    text two kg']
     
    Best Regards,
    Bof

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1