Max, that works except what I'm trying to do is change the number in A1 to
the resulting text in the same cell. In otherwords, if A1=400, change the
400 in A1 to "James" So if I type 400 in A1 it will automatically change it
to "James" as soon as I move to the next cell.
As has been written, you cannot do that with a formula. A formula can only
return a result to the cell in which it resides. It cannot change another
cell, nor can it change itself, yet persist within the cell.
Take another look at Gary's student macro.
Or, if you want this automatically, use an event macro.
To enter this, right click on the sheet tab and select View Code from the
dropdown menu. Then paste the code below into the window that opens.
=========================
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim a As Range
Dim c As Range
'set up to change entries in Column A only
Set a = Range("A:A")
If Not Intersect(Target, a) Is Nothing Then
For Each c In Target
Select Case c
Case Is = 400
c.Value = "James"
Case Is = 401
c.Value = "John"
Case Is = 402
c.Value = "Kevin"
End Select
Next c
End If
End Sub
=================================
--ron