My cell values โโare strings of numbers (there are always more than 5 numbers in a cell, i.e. 67391853214, etc.)
If a cell starts with three specific numbers (ie 673 in cell value 67391853214), I want the data in the cell to be replaced with another value (if 673 are the first numbers, replace the whole cell value with โ790โ)
I know there is a way to use an asterisk to use only part of the cell value, but I'm not 100% of the syntax. This is the current code that I have, but it is looking for exactly "### *", and not values โโstarting with "###". Any help is appreciated!
lastRow = Range("A" & Rows.Count).End(xlUp).Row colNum = WorksheetFunction.Match("Number", Range("A1:CC1"), 0) For Each c In Range(Cells(2, colNum), Cells(lastRow, colNum)) If c.Value = "614*" _ Or c.Value = "626*" _ Or c.Value = "618*" _ Or c.Value = "609*" _ Or c.Value = "605*" Then c.Value = "737"
`
source share