Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
AJB AJB is offline
external usenet poster
 
Posts: 40
Default conditional formatting in 07

I have a range of cells (c25:c29) that I want to highlight as an error when
their sum does not equal a number manually entered in cell n21. I have not
been able to figure out how to do this. Is this possible?

thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default conditional formatting in 07

But you could select C25:C29 (and maybe N21)
then use:
format|conditional formatting|formula is
=sum($c$25:$c$29)<$n$21
and apply a nice format.

But I'd use an adjacent cell. I think these are easier for most users to
understand.
=if(sum(c25:c29)=n21,"ok","Error!")

Another option would be to allow the users to enter what they need in C25:C28,
but use a formula in C29 that removes the check.

In C29:
=n21-sum(c25:c28)

AJB wrote:

I have a range of cells (c25:c29) that I want to highlight as an error when
their sum does not equal a number manually entered in cell n21. I have not
been able to figure out how to do this. Is this possible?

thanks


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default conditional formatting in 07

Try this:

Select the range C25:C29
Goto Home tabStylesConditional FormattingNew RuleUse a formula to
determine which cells to format

Enter this formula in the box where it says: Format values where this
formula is true

=SUM(C$25:C$29)<N$21

Click the Format button
Select the style(s) desired
OK out

--
Biff
Microsoft Excel MVP


"AJB" wrote in message
...
I have a range of cells (c25:c29) that I want to highlight as an error when
their sum does not equal a number manually entered in cell n21. I have
not
been able to figure out how to do this. Is this possible?

thanks



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
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
Conditional Formatting with any value Toppers Excel Worksheet Functions 0 February 21st 07 02:09 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


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