Excel Workbook | |||
---|---|---|---|
A | |||
1 | Is there a way to delete all characters to the left of @ in a column? | ||
2 | The number of characters preceding @ will vary. | ||
3 | |||
Sheet1 |
Excel Workbook | |||
---|---|---|---|
A | |||
1 | @ in a column? | ||
2 | @ will vary. | ||
3 | |||
Sheet1 |
Option Explicit
Sub DeleteLeftOfAt()
' hiker95, 06/22/2011
' http://www.mrexcel.com/forum/showthread.php?t=559239
Dim c As Range
For Each c In Range("A1", Range("A" & Rows.Count).End(xlUp))
If InStr(c, "@") > 0 Then c = Right(c, Len(c) - Application.Find("@", c, 1) + 1)
Next c
End Sub
I was thinking of doing an Edit>Replace and then a Text to Columns.Thank you so so much!
You just saved me from manually having to delete all the characters in front of the @! It would have taken forever.
Sorry T. Valko, I used hiker95's macro because that was the one I saw first.
Brilliant! Thank you both so much for taking the time to solve my problem.
Have a great day!