Abhinav Shori
Member
Hi, if I want to search for a part of a string in a cell and display some value in another cell, how would I go about it?
I dont know where the word, which I am searching for, is in the cell.
so, what I am asking is how to look for a word in a cell and use the if else statement
Thanks in advance.
Dim i As Integer
i = 1
Do While Cells(i, 2).Value <> ""
If Cells(i, 2).Value = "*orporate Reg*" Then
Cells(i, 9).Value = "Corporate Registry"
Else
Cells(i, 9).Value = "Business Support"
End If
i = i + 1
Loop
I dont know where the word, which I am searching for, is in the cell.
so, what I am asking is how to look for a word in a cell and use the if else statement
Thanks in advance.
Dim i As Integer
i = 1
Do While Cells(i, 2).Value <> ""
If Cells(i, 2).Value = "*orporate Reg*" Then
Cells(i, 9).Value = "Corporate Registry"
Else
Cells(i, 9).Value = "Business Support"
End If
i = i + 1
Loop