Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Conditional Formatting with if statement

I am trying to set up cell formatting using a combined "If or" and "If and'
statement.
My worksheet is as follows:

B C D ect
A1 Jan Feb Mar
Acct Name

Im trying to set the conditional format to show the account name (A2) in
red if a date has not been filled in, in B2.

In other words If B1=Jan, or C1=Feb, or D1=Mar and no date has been entered
in cell B2 use red font in A2.

Any help would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Conditional Formatting with if statement

Why do you want to use an IF statement? Conditional formatting wants a
condition that returns TRUE or FALSE.
Use CF/ Formula Is/
=AND(B2="",OR(B1="Jan",C1="Feb",D1="Mar"))
Choose your coloured format.
--
David Biddulph

"stoz" wrote in message
...
I am trying to set up cell formatting using a combined "If or" and "If and'
statement.
My worksheet is as follows:

B C D ect
A1 Jan Feb Mar
Acct Name

Im trying to set the conditional format to show the account name (A2) in
red if a date has not been filled in, in B2.

In other words If B1=Jan, or C1=Feb, or D1=Mar and no date has been
entered
in cell B2 use red font in A2.

Any help would be appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Conditional Formatting with if statement

Select A2 then Format

CFFormula is: =B2=""

Select red font and OK.


Gord Dibben MS Excel MVP

On Wed, 7 Oct 2009 12:26:01 -0700, stoz
wrote:

I am trying to set up cell formatting using a combined "If or" and "If and'
statement.
My worksheet is as follows:

B C D ect
A1 Jan Feb Mar
Acct Name

Im trying to set the conditional format to show the account name (A2) in
red if a date has not been filled in, in B2.

In other words If B1=Jan, or C1=Feb, or D1=Mar and no date has been entered
in cell B2 use red font in A2.

Any help would be appreciated.


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
CONDITIONAL FORMATTING OR AN 'IF' STATEMENT? Carla Excel Discussion (Misc queries) 3 April 27th 08 08:19 AM
Can I use an if statement within the conditional formatting tool? Jen Excel Discussion (Misc queries) 2 October 19th 06 10:17 PM
If Statement/Conditional Formatting JS Excel Worksheet Functions 3 June 29th 06 04:50 PM
=IF Statement formula or conditional formatting Abi Excel Worksheet Functions 6 January 18th 05 01:06 PM
Conditional formatting based on if statement. kevin Excel Worksheet Functions 2 January 12th 05 03:07 AM


All times are GMT +1. The time now is 12:02 AM.

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"