Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Help with boolean statment for active row

On a given active row, what is the boolean statement to perform the following:

if cell "H" for a given row contains "i" then Sheets("Report").Range("B1") =
"Yes"


again... I'm new to this and need some basic guidance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Help with boolean statment for active row

givenrow = 2
if Instr(1,cells(givenrow,"H"),"i",vbTextCompare) then
Sheets("Report").Range("B1") = "Yes"
End if

If you mean the value of the entire cell is the 1 characters string "i"

If cells(givenrow,"H) = "i" then
Sheets("Report").Range("B1") = "Yes"
End if

--
Regards,
Tom Ogilvy


"TexWolf" wrote:

On a given active row, what is the boolean statement to perform the following:

if cell "H" for a given row contains "i" then Sheets("Report").Range("B1") =
"Yes"


again... I'm new to this and need some basic guidance.

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
If statment Cerealkiller via OfficeKB.com Excel Discussion (Misc queries) 5 May 28th 10 10:09 PM
IF, AND statment Karas Excel Worksheet Functions 1 March 8th 10 08:48 PM
if statment Stuntz Waldorf Excel Worksheet Functions 4 June 24th 09 08:07 PM
If Statment - Active Cell Column Address Richard Excel Discussion (Misc queries) 2 June 9th 06 11:22 PM
If statment helpdesk genie Excel Worksheet Functions 2 January 12th 05 03:23 AM


All times are GMT +1. The time now is 11:49 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"