Share via

Excel: How to put a single quote ( ' ) in front of each cell for a column of cells?

Anonymous
2020-01-15T14:09:03+00:00

I have a couple thousand of cells, too time consuming by editing each cell.

The purpose is to make them labels - so it won't lose the leading zero.

Is there a way to do this, rather than editing each cells?

My Excel is an old version, year 2000.

Thank you very much for your help.

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

Answer accepted by question author

Anonymous
2020-01-15T14:47:21+00:00

Assuming the value you're wanting to change is in column A, with first value in A1

In a new column, B1, type =concatenate("'",A1) 

Drag length of column.

Was this answer helpful?

10+ people found this answer helpful.
0 comments No comments

2 additional answers

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2020-01-15T14:35:31+00:00

    Select the cells, then run the following macro:

    Sub ChangeToText()

        Dim c As Range

        Application.ScreenUpdating = False

        For Each c In Selection

            c.Value = "'" & c.Text

        Next c

        Application.ScreenUpdating = True

    End Sub

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2020-01-15T15:21:42+00:00

    Assuming the value you're wanting to change is in column A, with first value in A1

    In a new column, B1, type =concatenate("'",A1) 

    Drag length of column.

    Man, it works like a champ. You just saved me tons of time. Appreciate very much.

    I haven't tried other replies, sure appreciate very much also.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments