LOOKUP VALUE

G

Guest

Hi, I need your expert advise on my question below.

I need to lookup column say 'H' that has a wording "CASCAUT" and if true
retun result in column 'S' 'Please don't pay'. I know I can use if & vlookup
formula to return the result but column 'S' has information which I do not
want to erase.

Would appreciate your advise.

Many thanks in advance!

LC ANG
 
G

Guest

Try this:
Sub Test()

Dim sHlookup As String
Dim sSRturn As String
Dim iLastRow As Integer


iLastRow = Range("H65536").End(xlUp).Row
Set rng = Range("H1:H" & iLastRow)

For Each rng In rng

If rng.Value = "CASCAUT" Then
rng.Offset(0, 11).Value = rng.Offset(0, 11).Value & " Do not Pay"
End If


Next rng


End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Lookup Functions 7
Lookup 9
Need lookup formula 2
Double lookup 3
Count Function 5
relative reference formlua 1
Forumla 1
Add lookup to for next 1

Top