Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Fill a cell in orange if the result is negative, help please.

Hello,

I have a form with 3 columns:
1 is for the required date
the second is for the shipping date
I have about 200 items in rows.

In the third column I want to calculate the delay: shipping date -
required date
and if the result is negative I want fill the cell in orange.

Do you have an idea?

Thank you for your help.
Regards,

Thierry

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default Fill a cell in orange if the result is negative, help please.

In the third column enter the formula shipping date - required date so
if your data is in columns A and B starting in row 2 in C2 enter
=A2-B2.
Copy this formula down and format all the cells as General.
Then select all the cells in column C containing the formula and from
the Menus select FormatConditional Formatting.
Enter the condition that Cell Value is Less than 0 and set the required
formatting.

Hope this helps
Rowan

wrote:
Hello,

I have a form with 3 columns:
1 is for the required date
the second is for the shipping date
I have about 200 items in rows.

In the third column I want to calculate the delay: shipping date -
required date
and if the result is negative I want fill the cell in orange.

Do you have an idea?

Thank you for your help.
Regards,

Thierry

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default Fill a cell in orange if the result is negative, help please.

Click on the first cell in Column 3 (C?)
Go to Format - Conditional Formatting
Condition One
Format Is
Then in next box put in this formula: If(Col1-C0l2 < 0, true, false)
(Substitute the col1 and col2 for A, B, or whatever)
Then click format, click Patterns tab and pick the color orange.

HTH
--
Sandy


" wrote:

Hello,

I have a form with 3 columns:
1 is for the required date
the second is for the shipping date
I have about 200 items in rows.

In the third column I want to calculate the delay: shipping date -
required date
and if the result is negative I want fill the cell in orange.

Do you have an idea?

Thank you for your help.
Regards,

Thierry


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
fill cell with colour if preceding cell is a negative value POP Excel Discussion (Misc queries) 4 April 27th 09 05:35 PM
cell formulae giving negative result. BrianC500 Excel Discussion (Misc queries) 7 July 25th 06 10:06 AM
cell calculation check if result is negative and zero out if not l Rich Excel Worksheet Functions 2 January 16th 06 08:31 PM
How do i get excel to format a cell for a negative result. Cisco Excel Discussion (Misc queries) 4 July 21st 05 08:40 AM
Convert a negative result to a positive result Chip Pearson Excel Programming 0 October 21st 03 02:57 PM


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