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 / Recognize Text into on...
Power Automate
Unanswered

Recognize Text into one cell in Excel

(0) ShareShare
ReportReport
Posted on by 500

I use Recognize text in an image or a PDF document to extract text and save it to Excel. If I save each Text of the lines to a separate row in a Table in an Excel file, I can iterate through the rows, combine the text, and search it with Office Scripts. If I append each Text to a string variable, then put the resulting string into one cell in Excel, even though looking at the spreadsheet all of the text from the file is visible in the cell, Office Scripts only recognizes the first line of Text as the cell value.  The cell does not look like it's missing any information from the document and it does not look like it has carriage returns embedded.

 

This is not working properly.

not working.JPG

 

This works because each row is one line of Text.

working.JPG

 

Why is this happening? Can I strip a special character from the string variable in Power Automate before putting it into the cell to be able to recognize all of the text?  

Categories:
I have the same question (0)
  • Yutao Huang Profile Picture
    Microsoft Employee on at

    Hello @jiwhite , would you mind sharing your script snippet? Are you using the range.find() method? Also is it possible to share a screenshot (or content) of the cell containing the text that cannot be found? For troubleshooting on your end, you can probably try console.log() the text content read out from that particular cell and see if there is anything suspicious there. You can also try checking things like theCellTextContent.includes(theStringToSearch) (which should return true if the cell content contains the search string) in your script to probe the behavior.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 266 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 134 Super User 2026 Season 2

Last 30 days Overall leaderboard