Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]() Quote:
__________________________________________________ ___________ ' created and edited by Bala Sesharao Sub find_mobile() Dim x_cordinate, y_cordinate As Variant Dim resultant As String x_cordinate = 1 y_cordinate = 1 Sheets("sheet1").Cells(1, 1).Select For x_cordinate = 1 To 65000 For y_cordinate = 1 To 256 resultant = Sheets("sheet1").Cells(x_cordinate, y_cordinate) If Len(resultant) = 11 And IsNumeric(resultant) Then Sheets("sheet1").Cells(x_cordinate, y_cordinate).Select With Selection.Interior .Pattern = xlSolid .PatternColorIndex = xlAutomatic .Color = 255 .TintAndShade = 0 .PatternTintAndShade = 0 End With End If Next y_cordinate Next x_cordinate End Sub Private Sub Workbook_Open() Call find_mobile End Sub ____________________________________
__________________
Thanks Bala |
#2
![]() |
|||
|
|||
![]() Quote:
1) find the numeric cells in the sheet1 (change the sheet name as required) 2) evaluate all the numeric cells with length = 11 character i.e mobile number
__________________
Thanks Bala |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Searching data in multiple rows using search criteria | Excel Worksheet Functions | |||
Formula for searching 3 criteria | Excel Discussion (Misc queries) | |||
Formula for searching 3 different Criteria | Excel Discussion (Misc queries) | |||
Searching two columns against a specific criteria | Excel Worksheet Functions | |||
Formula searching data that dose not equal two criteria | Excel Discussion (Misc queries) |