I have the following values in a single cell let be A1
1234
567
454
Likewise all the A(N) are filled with values. N various from 1000 to 1500
I want this to get converted as
1234;567;454
Any shortcut available?
I have the following values in a single cell let be A1
1234
567
454
Likewise all the A(N) are filled with values. N various from 1000 to 1500
I want this to get converted as
1234;567;454
Any shortcut available?
Edit: Sorry, had not read your questions properly...
You could write a vba-script like that:
Sub test()
Dim result As String
result = Replace(ActiveCell.value, Chr(10), ";")
ActiveCell.Offset(1, 0).Select
ActiveCell.value = result
End Sub
It will take the active cell, replace all newlines by semicolons and put the result in the next line.
Edit: Another version doing this for multiple cells:
Sub test()
Dim value As String
Do
value = ActiveCell.value
If (value = "") Then Exit Do
ActiveCell.Offset(0, 1).value = Replace(ActiveCell.value, Chr(10), ";")
ActiveCell.Offset(1, 0).Select
Loop While (True)
End Sub
This version will start at the active cell, and loop through all cell below until it finds an empty cell.
The replaced value is written into the cell next to the original one. If you want to replace the original value, remove .Offset(0, 1)
.
The second parameter is the value to be replaced, it s Chr(10)
, the Newline character in our case.
I have two columns in my table with equal width (50%, 50%). I am showing search results URL in them. For big urls the columns are stretching and destroying the layout. Any suggestion to the problem?
Two columns: Column A contains a complete list of available journal titles; Column B contains the ones to which my library already subscribes. Is it possible to delete entries from Column A if they ...
I have the following values in a single cell let be A1 1234 567 454 Likewise all the A(N) are filled with values. N various from 1000 to 1500 I want this to get converted as 1234;567;454 Any ...
How can the linux frame buffer, on Cell Linux, be captured to obtain either screen shots or movies? Is there a tool to do this for a running program, or must the program writing to, and presumably ...
How to set blank instead of NaN in jqGrid cells ? Using formatter ? Is there an example?
I have a table with header ID. I need to select all the fields under this header. I don t have access to the source code and no classes are used in this table. Any idea on how to get this done?
Is possibile begin edit of a specific cell from code behind with DataGrid control (WPF Toolkit)? I have to enable the celledittemplate of first cell of selected row after a button action...how can I ...
我想让浏览头和一栏头目从使用因特网部分数据GridView的图像中获得一个习俗背景。 甚至有可能这样做吗? 如果是,如何?