문제

Let's say I have a cell that contains:

alpha
beta
charlie
delta

Is there a way by formula or search/replace (probably using regex like find (.+) and replace with "$&") to make it like this?:

"alpha"
"beta"
"charlie"
"delta"
도움이 되었습니까?

해결책

For your example data (if the values per line don't contain whitespace), the following will work (tested with LibreOffice Calc 4.2):

  • Search for ([:alnum:]+),
  • replace with "$1" (with Regular Expressions enabled):

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top