how to remove numeric with text in a column in excel?

Anonymous
2016-04-05T16:00:39+00:00

how to remove text i a given  column and only keep number?

Microsoft 365 and Office | Excel | For home | 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.

0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. HansV 462.4K Reputation points MVP Volunteer Moderator
    2016-04-05T17:19:55+00:00

    Select the column.

    Press Ctrl+G or F5 to display the Go To dialog.

    Click Special...

    Select the Constants radio button.

    Clear all check boxes except the Text check box.

    Click OK.

    Only the text cells should be selected.

    Press Delete to clear the cells.

    0 comments No comments
  2. Anonymous
    2016-04-05T17:41:10+00:00

    You could use a macro.

    Select the range then run.

    Sub RemoveAlphas()

    Dim intI As Integer

    Dim rngR As Range, rngRR As Range

    Dim strNotNum As String, strTemp As String

        Set rngRR = Selection.SpecialCells(xlCellTypeConstants, _

                xlTextValues)

        For Each rngR In rngRR

            strTemp = ""

            For intI = 1 To Len(rngR.Value)

                If Not Mid(rngR.Value, intI, 1) Like "[A-Z,a-z]" Then

                    strNotNum = Mid(rngR.Value, intI, 1)

                Else: strNotNum = ""

                End If

                strTemp = strTemp & strNotNum

            Next intI

            rngR.Value = strTemp

        Next rngR

    End Sub

    Gord

    0 comments No comments
  3. Anonymous
    2016-04-05T19:01:46+00:00

    no sir , this is not working.. it deleting  entire column..

    0 comments No comments
  4. HansV 462.4K Reputation points MVP Volunteer Moderator
    2016-04-05T21:40:24+00:00

    That means that the "number" values are actually text values that look like numbers.

    You could run this macro:

    Sub DeleteText()

        Application.ScreenUpdating = False

        Selection.NumberFormat = "General"

        Selection.Value = Selection.Value

        Selection.SpecialCells(xlCellTypeConstants, _

            xlTextValues).ClearContents

        Application.ScreenUpdating = True

    End Sub

    0 comments No comments
  5. Ashish Mathur 101K Reputation points Volunteer Moderator
    2016-04-05T23:18:27+00:00

    Hi,

    Select both columns and get the filter icon.  Filter the second column on Blanks.  Now delete those rows.

    0 comments No comments