Hi there. First time poster here, long time browser! I'm trying to remove numbers from the end of a column of cells in Excel 2010, leaving just the text. The numbers can be of varying lengths but are always on the right of the string. Here's an example of the data I'm trying to clean up:
<colgroup><col></colgroup><tbody>
</tbody>
I can find and replace the hyphens with nothing if required, so they're not too big an issue. I just can't get rid of the numbers. From another post I found, the following formula removed the text from the cells, leaving just the numbers, but that's the opposite of what I was after.
=SUMPRODUCT(MID(0&A10,LARGE(INDEX(ISNUMBER(--MID(A10,ROW(INDIRECT("1:"&LEN($A$2))),1))*ROW(INDIRECT("1:"&LEN($A$2))),0),ROW(INDIRECT("1:"&LEN($A$2))))+1,1)*10^ROW(INDIRECT("1:"&LEN($A$2)))/10)
del-capo-1188144 | |||||||
dan-jones-1078 | |||||||
party-time | |||||||
the-basil-118120 donkey-hotay | |||||||
force-118816 | |||||||
privateer-7754 | |||||||
survey-1188132 I'd like it to end up as:
<colgroup><col></colgroup><tbody> </tbody> |
<colgroup><col></colgroup><tbody>
</tbody>
I can find and replace the hyphens with nothing if required, so they're not too big an issue. I just can't get rid of the numbers. From another post I found, the following formula removed the text from the cells, leaving just the numbers, but that's the opposite of what I was after.
=SUMPRODUCT(MID(0&A10,LARGE(INDEX(ISNUMBER(--MID(A10,ROW(INDIRECT("1:"&LEN($A$2))),1))*ROW(INDIRECT("1:"&LEN($A$2))),0),ROW(INDIRECT("1:"&LEN($A$2))))+1,1)*10^ROW(INDIRECT("1:"&LEN($A$2)))/10)