MrExcel Publishing
Your One Stop for Excel Tips & Solutions

Replacing Numeric Values With Text

Posted by Lee Hitchen on December 05, 2001 3:22 AM

I have a range of numbers wityhin cells a1:c:10. I want to replace any value >=6 with "Y". Does anyone have a suggestion?



Posted by Hodge on December 05, 2001 6:18 AM

Here's a simple macro to do the trick . . .

Sub IsItSix()
For Each c In Range("A1:C10")
If c.Value >= 6 Then c.Value = "Y"
End Sub