Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default help with IF cell meets certain condition..then do the following

Hi all,

how to do the following with IF statements, how to type them instead of the
conditional formatting feature

1- IF a cell meets a certain condition, then change its color?
2- IF a cell meets a certain condition, then change the color of row it
falls in?
3- IF a cell meets a certain condition, then delete the row the cell falls in?

Thanks in advance

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 267
Default help with IF cell meets certain condition..then do the following

The If excell Function only returns values as an output if a given statement
is true or false.
To do what you propose I think you will have to use the visual basic editor
(alt f11)

the following will change text in a1 to green if its value is 10 as an example
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Range("a1").Value = 10 Then
Range("A1").Font.Color = _
RGB(0, 255, 0)
End If
End Sub
"Dream" wrote:

Hi all,

how to do the following with IF statements, how to type them instead of the
conditional formatting feature

1- IF a cell meets a certain condition, then change its color?
2- IF a cell meets a certain condition, then change the color of row it
falls in?
3- IF a cell meets a certain condition, then delete the row the cell falls in?

Thanks in advance

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 267
Default help with IF cell meets certain condition..then do the followi

lol don sarky

"Atishoo" wrote:

The If excell Function only returns values as an output if a given statement
is true or false.
To do what you propose I think you will have to use the visual basic editor
(alt f11)

the following will change text in a1 to green if its value is 10 as an example
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Range("a1").Value = 10 Then
Range("A1").Font.Color = _
RGB(0, 255, 0)
End If
End Sub
"Dream" wrote:

Hi all,

how to do the following with IF statements, how to type them instead of the
conditional formatting feature

1- IF a cell meets a certain condition, then change its color?
2- IF a cell meets a certain condition, then change the color of row it
falls in?
3- IF a cell meets a certain condition, then delete the row the cell falls in?

Thanks in advance

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
Is there a way to color a cell if it meets specific condition Sekhar Excel Discussion (Misc queries) 8 November 16th 08 06:34 PM
highlight the row if meets the condition Dinesh Excel Worksheet Functions 5 October 19th 08 07:47 AM
sum if (text meets condition) Jennifer Excel Discussion (Misc queries) 1 June 19th 08 10:48 PM
Graphing only data that meets a condition Heidi Charts and Charting in Excel 2 January 19th 06 08:32 PM
Identify occurence in "array" which meets condition(s) Melissa Excel Discussion (Misc queries) 3 August 18th 05 12:59 PM


All times are GMT +1. The time now is 03:58 PM.

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

About Us

"It's about Microsoft Excel"