Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Vlookup code needed

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

I need to look up one column say 'H' with wording "Cas" and if true column
'S' will populate "Please pay up". I know I can use "ifvlookup" formula to
perform this task but colum S itself has comments which I do not want to
overide by the formula code.

Would appreciate your advise on this.

Example

Column H Column S
Cas Please pay up
TT

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Vlookup code needed

Sub aBC()
Dim rng as Range, cell as Range
with worksheets("sheet1")
set rng =.Range("H1",.cells(rows.count,"H").End(xlup))
End with

for each cell in rng
if lcase(cell.Value) = "cas" then
cells(cell.row,"S").Value = "Please Pay Up"
end if
Next
End sub

--
Regards,
Tom Ogilvy


"LC ANG" wrote:

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

I need to look up one column say 'H' with wording "Cas" and if true column
'S' will populate "Please pay up". I know I can use "ifvlookup" formula to
perform this task but colum S itself has comments which I do not want to
overide by the formula code.

Would appreciate your advise on this.

Example

Column H Column S
Cas Please pay up
TT

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP help needed.!! RickJB Excel Worksheet Functions 3 May 21st 08 12:26 PM
vlookup vs. if, help needed CraigSA Excel Worksheet Functions 7 May 18th 06 11:19 AM
VLOOKUP help needed PLEASE... Levi Excel Worksheet Functions 2 May 8th 06 08:41 PM
VLOOKUP code needed please j4ymf Excel Worksheet Functions 4 March 12th 06 07:48 PM
VLOOKUP help needed! MartinC Excel Worksheet Functions 1 January 12th 06 12:46 PM


All times are GMT +1. The time now is 04:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"