=TEXTJOIN("",,LET(a,MID(E4,SEQUENCE(1,LEN(E4)),1),IF(ISNUMBER(--a),"",a)))
Excel Remove numbers from text string
Hi,
I would like to remove numbers form cells containing text ,
I thought of doing it with nested substitute, and even though I think this is going to work there must be a better way, suggestion please;
I do need this as a formula not using find replace, I can have the 'replace criteria' in this case 1 to 9 in a cell to reference if that helps?
Richard
Microsoft 365 and Office | Excel | For business | Windows
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
-
Anonymous
2023-12-04T17:14:45+00:00
-
Rory Archibald 18,875 Reputation points Volunteer Moderator
2023-12-06T13:20:01+00:00 you have no delimter
No - the SEQUENCE part create the digits 0-9 and all of those are used as delimiters, so it splits wherever any digit appears, which effectively removes them all from the text before it is joined back together.
8 additional answers
Sort by: Most helpful
-
Anonymous
2023-12-06T13:41:33+00:00 Just to say I had a go in PQ and came up with
Table.TransformColumns( Source,
List.Transform( ColumnNames, (A)=> { A , (B)=> Text.Remove(B, "list of text" ) } ))I'm having a go with List accumulate as an alternative.
Richard.
-
Anonymous
2023-12-06T13:49:38+00:00 Thanks, I've just tried TEXTSPLIT(F11,ROWS($H$11:H11)) ,
and the penny has dropped as it splits on each number produced,
Thanks, something else not mentioned or well hidden on ms docs.
Richard.