LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Formula Length

Formulas are restricted to a length of 1024 characters when the formula is
expressed in R1C1 format.

(in otherwords, the length of the formula is as measured when it is
expressed in R1C1 format).

=Sum(a1+a2) is redundant.

either
=Sum(a1,A2)

or
=A1+A2

If there are no numbers in the contiguous range that you want to add, then
you could just use

=Sum(A1:A2000)

non numeric values will be ignored (except errors).

if you have a recuring interval such as you illustrate (1,11,21 . . .

you could use an array formula like this:

=SUM(IF(MOD(ROW(A1:A50000),10)=1,A1:A50000))

entered with ctrl+Shift+enter rather than enter

--
Regards,
Tom Ogilvy


"David Fixemer" wrote in message
...
I had a Grand total formula which read like:

cell.value = "=Sum(" & myrange & ")"

which generated the following cell text.

=Sum(A1,A11,A21,...)

However, this is very limited in the number of cells it
can contain.

I've now updated it to the following format.

=Sum(A1 + A11 + A21 + ....)

I believe this format is much larger than the previous
format, however, still does have a limit? Is this belief
correct?

Is there anyway around this limit other than to compute
the total in VBA and write the value to the cell?

David



 
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
Length of a formula phowe43 Excel Discussion (Misc queries) 2 January 4th 08 10:57 PM
Is there a formula for length? Bill Excel Discussion (Misc queries) 4 July 19th 06 01:32 PM
Formula length Abhay Excel Discussion (Misc queries) 3 May 18th 06 05:40 PM
Formula Length Mukesh Garg Excel Discussion (Misc queries) 4 November 11th 05 06:17 AM
Excel Formula Length Matt Excel Discussion (Misc queries) 3 February 7th 05 07:30 PM


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