Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将单元格A5数据作为单个单元格中的多行,
A5
Line_1 Line_2 Line_3
我需要通过添加"<p>"到每一行来更新同一单元格:
"<p>"
<p>Line_1</p> <p>Line_2</p> <p>Line_3</p>
您实际上可以使用公式来执行此操作。假设您的文本是单元格 A1:
="<p>" & SUBSTITUTE(A1,CHAR(10),"</p>" & CHAR(10) & "<p>") & "</p>"