Reputation: 45
I am working on googlesheet in which id has values both numeric and alphanumeric.I want numeric values in other column and alphanueric values in separate column.
<table>
<thead>
<tr>
<th> ID </th>
<th> Amount </th>
</tr>
</thead>
<tbody>
<tr>
<td> 2025010121474784006559939 </td>
<td> 944.78 </td>
</tr>
<tr>
<td> 387cd23a72c049dc81fcfdea4882c76c </td>
<td> 1940 </td>
</tr>
<tr>
<td> 2025010123331559557464480 </td>
<td> 1940 </td>
</tr>
</tbody>
</table>
Upvotes: -2
Views: 51
Reputation: 50462
FILTER
the data using regex:
=FILTER(A2:A4,REGEXMATCH(A2:A4,"[^0-9]"))
^
- Not[0-9]
- a 0 to 9 characterFor the inverse,
=FILTER(A2:A4,NOT(REGEXMATCH(A2:A4,"[^0-9]")))
Upvotes: 0
Reputation: 18809
Use wraprows()
, split()
and regexreplace()
, like this:
=wraprows(split(regexreplace(join("", A2:A), "<.+?>", "→"), "→ "), 2)
See wraprows(), split() and regexreplace().
Upvotes: 0