Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 36
Default Converting a formula for automatic formatting criteria

I have this formula that works in excel.
=IF(AND($K$2(SUM($U$2*0.8)),$K$2<(SUM($U$2*1.2))) ,"true","false")

And when I try to get it as conditional formatting I get the "not enough or
too many parenthesis" error.

This is what I tried in onditional formatting.
=if(and($k$2<(sum($u$2*.8)),$k$2(Sum($u$2*1.2)))) .

What am I doing wrong or can I not us the and function in conditional
formatting?

BTW, this is the 3rd criteria so don't tell me to split it up (the first two
are between functions)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Converting a formula for automatic formatting criteria

Don't use the IF function. In Conditional Formatting, it is implied that we
are looking for a formula that evaluates to TRUE.

Try this:

=AND($K$2$U$2*0.8,$K$2<$U$2*1.2)

Also, the SUM functions are redundant since you only have one argument
inside of them.

HTH,
Elkar


"Rominall" wrote:

I have this formula that works in excel.
=IF(AND($K$2(SUM($U$2*0.8)),$K$2<(SUM($U$2*1.2))) ,"true","false")

And when I try to get it as conditional formatting I get the "not enough or
too many parenthesis" error.

This is what I tried in onditional formatting.
=if(and($k$2<(sum($u$2*.8)),$k$2(Sum($u$2*1.2)))) .

What am I doing wrong or can I not us the and function in conditional
formatting?

BTW, this is the 3rd criteria so don't tell me to split it up (the first two
are between functions)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Converting a formula for automatic formatting criteria

Well...

First, you don't need to use the SUM() function at all (that's usually
the sign of an unreformed Lotus 1-2-3 user)

Second, using the IF function requires you at least have a TRUE value
specified (but you don't need the IF() at all).

Third, noting that your condition can only return TRUE if K2 and U2 are
both negative, it can be rewritten:

=AND(K2 < U2 * 0.8, K2 U2 * 1.2)


In article ,
Rominall wrote:

I have this formula that works in excel.
=IF(AND($K$2(SUM($U$2*0.8)),$K$2<(SUM($U$2*1.2))) ,"true","false")

And when I try to get it as conditional formatting I get the "not enough or
too many parenthesis" error.

This is what I tried in onditional formatting.
=if(and($k$2<(sum($u$2*.8)),$k$2(Sum($u$2*1.2)))) .

What am I doing wrong or can I not us the and function in conditional
formatting?

BTW, this is the 3rd criteria so don't tell me to split it up (the first two
are between functions)

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
Converting numbers and number formatting to a CSV file ? Cecilia Excel Worksheet Functions 1 March 30th 07 07:42 PM
Automatic Formatting of Reports BwanaJim Excel Discussion (Misc queries) 2 March 23rd 07 12:37 PM
Automatic formatting help? Mel Excel Discussion (Misc queries) 6 June 20th 06 05:35 PM
Criteria - Automatic Change Font or Fill Colour stevembe Excel Worksheet Functions 4 October 4th 05 04:43 AM
Automatic Row Formatting Chris Hughes Excel Discussion (Misc queries) 3 April 14th 05 11:17 PM


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