Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 270
Default Too many characters in formula?

Excel 2003
I have a series of rows with conditional formatting and I am trying to
prevent the formatting from being altered if the rows are copied.
The following is not accepted in conditional formatting because I think
there are 259 characters (I am guessing that 256 is maximum).

So....
Is there any way to shorten the following?

=IF(ROW()=22,AND(C$100,C$22<""),
IF(ROW()=24,AND(C$101,C$24<""),
IF(ROW()=26,AND(C$102,C$26<""),
IF(ROW()=28,AND(C$102,C$28<""),
IF(ROW()=33,AND(C$160,C$33<""),
IF(ROW()=35,AND(C$161,C$35<""),
IF(ROW()=37,AND(C$162,C$37<""),
AND(C$163,C$39<"")
)))))))

Sandy


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Too many characters in formula?

The length limit in a refedit (that little box where you enter the formula)
is 255 chars.

I can't tell what you're trying to do but to get your current formula to
meet the length limit try using a defined name and replace the ROW()
function with this defined name.

Goto the menu InsertNameDefine
Name: RO
Refers to: =ROW()
OK

Then replace every instance of ROW() in the formula with RO. That'll get the
formula length down to 238 chars.

--
Biff
Microsoft Excel MVP


"Sandy" wrote in message
...
Excel 2003
I have a series of rows with conditional formatting and I am trying to
prevent the formatting from being altered if the rows are copied.
The following is not accepted in conditional formatting because I think
there are 259 characters (I am guessing that 256 is maximum).

So....
Is there any way to shorten the following?

=IF(ROW()=22,AND(C$100,C$22<""),
IF(ROW()=24,AND(C$101,C$24<""),
IF(ROW()=26,AND(C$102,C$26<""),
IF(ROW()=28,AND(C$102,C$28<""),
IF(ROW()=33,AND(C$160,C$33<""),
IF(ROW()=35,AND(C$161,C$35<""),
IF(ROW()=37,AND(C$162,C$37<""),
AND(C$163,C$39<"")
)))))))

Sandy




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
FIND CHARACTERS within a FORMULA Nastech Excel Discussion (Misc queries) 6 November 11th 08 06:38 PM
Characters Qualifying a formula Tevuna Excel Discussion (Misc queries) 3 August 25th 07 12:22 AM
Number of Characters for a formula Fred Djinn Holstings Excel Discussion (Misc queries) 6 February 3rd 07 02:02 AM
too many characters in formula JJT Excel Worksheet Functions 1 December 28th 05 03:51 PM
In Excel find characters when multiple characters exist w/i a cel teacher-deburg Excel Worksheet Functions 1 December 5th 05 10:22 PM


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