web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Expression with a carr...
Power Automate
Answered

Expression with a carriage return in the column title

(0) ShareShare
ReportReport
Posted on by 9

Hi!

 

So I have this excel spreadsheet with dates columns AND a carriage return in the title.

 

I found that I need this formula to convert Excel's date value to a date :

 

addDays('1899-12-30',int(item()?['My Date']),'yyyy-MM-dd')

 

I also found that I can reference a carriage return by using concat like this:

 

concat(['My
Date'])

 

But for the life of me, I can't figure out how to combine them in one single expression.

 

Please take it slow as I'm a total newb!  Thanks for the help!

Categories:
  • Verified answer
    samuelcharland Profile Picture
    9 on at

    Fixed it with help from a friend.  We had to resolve to JSON.  

     

    To map my field:

    'Release

    Plan or Forecast'

     

    We used:

     

    concat('Release',Json('{ "NL" : "\n"}')? ['NL'],'Plan or Forecast')

     

     

     

    Using the concat in the date conversion expression gives us:

     

    addDays('1899-12-30',int(item()?[concat('Release',Json('{ "NL" : "\n"}')? ['NL'],'Plan or Forecast')]),'yyyy-MM-dd')

     

     

    Bonus: skip the empty lines:

     

     

    if(empty(item()?[concat('Release',Json('{ "NL" : "\n"}')? ['NL'],'Plan or Forecast')]),null,addDays('1899-12-30',int(item()?[concat('Release',Json('{ "NL" : "\n"}')? ['NL'],'Plan or Forecast')]),'yyyy-MM-dd'))

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard