Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Colour cell (or text) depending upon IF Function result

I have a personal finance sheet that calculates a simple balance (in
Cell F1).

Next to the balance (in Cell G1) I have an IF function that inputs text
depending on the current balance. It is as follows:

=IF(F10,N9,N10)

(where N9 = BALANCE OK and N10 = WARNING OVERDRAFT ENTERED)

Is It possible to force excel to colour the cell depending upon the
message that is displayed.

i.e. if the balance is -100, then the message is WARNING OVERDRAFT
ENTERED - I would like this to be displayed in red or have the coloured
in red.

If it displays BALANCE OK, I would like the text to be Blue (or the
cell clour to be Blue).

Can this be done?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 290
Default Colour cell (or text) depending upon IF Function result

go to Format, Conditional Formatting, and define your criteria much the
same as your if statement.

something like, Cell value, is equal to, ="WARNING OVERDRAFT" and then
apply red colouring, and add another conditional for the balance ok
with a blue fill

Duncan




wrote:

I have a personal finance sheet that calculates a simple balance (in
Cell F1).

Next to the balance (in Cell G1) I have an IF function that inputs text
depending on the current balance. It is as follows:

=IF(F10,N9,N10)

(where N9 = BALANCE OK and N10 = WARNING OVERDRAFT ENTERED)

Is It possible to force excel to colour the cell depending upon the
message that is displayed.

i.e. if the balance is -100, then the message is WARNING OVERDRAFT
ENTERED - I would like this to be displayed in red or have the coloured
in red.

If it displays BALANCE OK, I would like the text to be Blue (or the
cell clour to be Blue).

Can this be done?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Colour cell (or text) depending upon IF Function result

sure, use Format=conditional formatting.

If you are not familiar with it, see Debra Dalgleish's site
http://www.contextures.com/tiptech.html

look at conditional formatting in the index.

--
Regards,
Tom Ogilvy


" wrote:

I have a personal finance sheet that calculates a simple balance (in
Cell F1).

Next to the balance (in Cell G1) I have an IF function that inputs text
depending on the current balance. It is as follows:

=IF(F10,N9,N10)

(where N9 = BALANCE OK and N10 = WARNING OVERDRAFT ENTERED)

Is It possible to force excel to colour the cell depending upon the
message that is displayed.

i.e. if the balance is -100, then the message is WARNING OVERDRAFT
ENTERED - I would like this to be displayed in red or have the coloured
in red.

If it displays BALANCE OK, I would like the text to be Blue (or the
cell clour to be Blue).

Can this be done?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Colour cell (or text) depending upon IF Function result

You can just use conditional formatting. Format - Conditional Formating -
Formula Is =$N$9 ... then set your formating

--
HTH...

Jim Thomlinson


" wrote:

I have a personal finance sheet that calculates a simple balance (in
Cell F1).

Next to the balance (in Cell G1) I have an IF function that inputs text
depending on the current balance. It is as follows:

=IF(F10,N9,N10)

(where N9 = BALANCE OK and N10 = WARNING OVERDRAFT ENTERED)

Is It possible to force excel to colour the cell depending upon the
message that is displayed.

i.e. if the balance is -100, then the message is WARNING OVERDRAFT
ENTERED - I would like this to be displayed in red or have the coloured
in red.

If it displays BALANCE OK, I would like the text to be Blue (or the
cell clour to be Blue).

Can this be done?


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Colour cell (or text) depending upon IF Function result

See http://www.contextures.com/xlCondFormat01.html

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

wrote in message
ups.com...
I have a personal finance sheet that calculates a simple balance (in
Cell F1).

Next to the balance (in Cell G1) I have an IF function that inputs text
depending on the current balance. It is as follows:

=IF(F10,N9,N10)

(where N9 = BALANCE OK and N10 = WARNING OVERDRAFT ENTERED)

Is It possible to force excel to colour the cell depending upon the
message that is displayed.

i.e. if the balance is -100, then the message is WARNING OVERDRAFT
ENTERED - I would like this to be displayed in red or have the coloured
in red.

If it displays BALANCE OK, I would like the text to be Blue (or the
cell clour to be Blue).

Can this be done?



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
get cell to automatically change colour depending on text in adja. wilko Excel Discussion (Misc queries) 2 November 10th 09 01:55 PM
Cell text and background colour dependant on result Darren Excel Worksheet Functions 1 May 24th 09 04:48 PM
Insert text depending on font colour Tricia Excel Discussion (Misc queries) 2 May 15th 09 08:15 PM
How to insert line of text on other worksheet depending upon result in a cell? Pheasant Plucker® Excel Discussion (Misc queries) 3 March 20th 06 03:05 PM
How do I change the color of a cell depending on the result of the function in that cell Mo Childs[_2_] Excel Programming 4 November 1st 05 09:30 PM


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