Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to change cell colors based on an IF statement formula?

Hello. I am trying to do a simple color-coded exception report in
Excel and can't find any decent documentation on cell formulas (the
online help in Excel 2000 is kind of arcane).

I am trying to compare a cell value on two different sheets. If there
is a variance = 1% across the two cells, then I want to say "= 1%
variance exists, AND I want to change the cell color to red.

So far, here's the formula I am using. I don't think I am doing the
variance calculation correctly, and I can't figure out how to change
the cell color after I change the cell text to "1% variance exists".

=IF(sheeta!B2-sheetb!B2=ABS(1%),"1% variance exists","ok")




Any help would be greatly appreciated! Thanks.



Tom
email:
  #3   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to change cell colors based on an IF statement formula?

=IF(Abs(sheeta!B2-sheetb!B2)=1%,"1% variance exists","ok")

Select the cell and do format=Conditional Formatting

select cell value is equal to and in the box put "1% variance exists"
with no double quotes.

Select the format button and under patterns, select red.

OK out.

Regards,
Tom Ogilvy

"Tom Woolman" wrote in message
om...
Hello. I am trying to do a simple color-coded exception report in
Excel and can't find any decent documentation on cell formulas (the
online help in Excel 2000 is kind of arcane).

I am trying to compare a cell value on two different sheets. If there
is a variance = 1% across the two cells, then I want to say "= 1%
variance exists, AND I want to change the cell color to red.

So far, here's the formula I am using. I don't think I am doing the
variance calculation correctly, and I can't figure out how to change
the cell color after I change the cell text to "1% variance exists".

=IF(sheeta!B2-sheetb!B2=ABS(1%),"1% variance exists","ok")




Any help would be greatly appreciated! Thanks.



Tom
email:



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
Automatically change cell colors based on date in cell Greg Excel Discussion (Misc queries) 2 January 27th 09 05:55 PM
How to have row color change based on one cell to 4 colors Mel Excel Discussion (Misc queries) 1 September 20th 06 10:47 PM
How do I change row text colors in Excel based on formula? ggliddy Excel Discussion (Misc queries) 1 November 14th 05 07:27 PM
Can an excel cell automatically change fill colors based on values John Clark Excel Discussion (Misc queries) 1 February 5th 05 05:21 PM
Is it possible to change colors of cells based on value in cell (. LC Excel Worksheet Functions 3 January 14th 05 05:27 AM


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