Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dread
 
Posts: n/a
Default formula too long error?

I'm getting an error "formula too long" for the folloiwng IF statement:

=IF(B15="",0,IF(B19="Full Splash, INDEX(Sheet 1!$A$1:$L$3, MATCH
($B$5,Sheet 1!$A$1:$A$3,), MATCH($A$13,Sheet
1!$C$1:$L$1,))*VLOOKUP(B15,Data Table!$U$10:$V$15,2,FALSE), (INDEX(Sheet
1!$A$6:$L$8, MATCH($B$5,
Sheet 1!$A$6:$A$8,),MATCH($A$13,Sheet 1!$C$6:$L$6,))*VLOOKUP(B15, Data
Table!$U$10:$V$15,2,FALSE)))

I know this doesn't exceed the Nested If limit so I don't know what the
problem is.

Can I not use INDEX/MATCH/VLOOKUP within my IF statement?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers
 
Posts: n/a
Default formula too long error?

I believe Excel formulae are limited to 255 characters and yours is 300. It
has nothing to do with the use of INDEX, MATCH or LOOKUP.

"dread" wrote:

I'm getting an error "formula too long" for the folloiwng IF statement:

=IF(B15="",0,IF(B19="Full Splash, INDEX(Sheet 1!$A$1:$L$3, MATCH
($B$5,Sheet 1!$A$1:$A$3,), MATCH($A$13,Sheet
1!$C$1:$L$1,))*VLOOKUP(B15,Data Table!$U$10:$V$15,2,FALSE), (INDEX(Sheet
1!$A$6:$L$8, MATCH($B$5,
Sheet 1!$A$6:$A$8,),MATCH($A$13,Sheet 1!$C$6:$L$6,))*VLOOKUP(B15, Data
Table!$U$10:$V$15,2,FALSE)))

I know this doesn't exceed the Nested If limit so I don't know what the
problem is.

Can I not use INDEX/MATCH/VLOOKUP within my IF statement?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dread
 
Posts: n/a
Default formula too long error?

Do you know of a different way to do this so I don't go over the character
limit?
Thxs

"Toppers" wrote:

I believe Excel formulae are limited to 255 characters and yours is 300. It
has nothing to do with the use of INDEX, MATCH or LOOKUP.

"dread" wrote:

I'm getting an error "formula too long" for the folloiwng IF statement:

=IF(B15="",0,IF(B19="Full Splash, INDEX(Sheet 1!$A$1:$L$3, MATCH
($B$5,Sheet 1!$A$1:$A$3,), MATCH($A$13,Sheet
1!$C$1:$L$1,))*VLOOKUP(B15,Data Table!$U$10:$V$15,2,FALSE), (INDEX(Sheet
1!$A$6:$L$8, MATCH($B$5,
Sheet 1!$A$6:$A$8,),MATCH($A$13,Sheet 1!$C$6:$L$6,))*VLOOKUP(B15, Data
Table!$U$10:$V$15,2,FALSE)))

I know this doesn't exceed the Nested If limit so I don't know what the
problem is.

Can I not use INDEX/MATCH/VLOOKUP within my IF statement?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default formula too long error?

Here is a method by using defined names

http://www.cpearson.com/excel/nested.htm

the example shows how to overcome the nesting limits but you can do the same
for long formulas as well by naming parts of them

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey


"dread" wrote in message
...
Do you know of a different way to do this so I don't go over the character
limit?
Thxs

"Toppers" wrote:

I believe Excel formulae are limited to 255 characters and yours is
300. It
has nothing to do with the use of INDEX, MATCH or LOOKUP.

"dread" wrote:

I'm getting an error "formula too long" for the folloiwng IF
statement:

=IF(B15="",0,IF(B19="Full Splash", INDEX('Sheet 1'!$A$1:$L$3, MATCH
($B$5,'Sheet 1'!$A$1:$A$3,), MATCH($A$13,'Sheet
1'!$C$1:$L$1,))*VLOOKUP(B15,'Data Table'!$U$10:$V$15,2,FALSE),
(INDEX('Sheet
1'!$A$6:$L$8, MATCH($B$5,'
Sheet 1'!$A$6:$A$8,),MATCH($A$13,'Sheet 1'!$C$6:$L$6,))*VLOOKUP(B15, 'Data
Table'!$U$10:$V$15,2,FALSE)))

I know this doesn't exceed the Nested If limit so I don't know what the
problem is.

Can I not use INDEX/MATCH/VLOOKUP within my IF statement?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dread
 
Posts: n/a
Default formula too long error?

Thank you!

"Peo Sjoblom" wrote:

Here is a method by using defined names

http://www.cpearson.com/excel/nested.htm

the example shows how to overcome the nesting limits but you can do the same
for long formulas as well by naming parts of them

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey


"dread" wrote in message
...
Do you know of a different way to do this so I don't go over the character
limit?
Thxs

"Toppers" wrote:

I believe Excel formulae are limited to 255 characters and yours is
300. It
has nothing to do with the use of INDEX, MATCH or LOOKUP.

"dread" wrote:

I'm getting an error "formula too long" for the folloiwng IF
statement:

=IF(B15="",0,IF(B19="Full Splash", INDEX('Sheet 1'!$A$1:$L$3, MATCH
($B$5,'Sheet 1'!$A$1:$A$3,), MATCH($A$13,'Sheet
1'!$C$1:$L$1,))*VLOOKUP(B15,'Data Table'!$U$10:$V$15,2,FALSE),
(INDEX('Sheet
1'!$A$6:$L$8, MATCH($B$5,'
Sheet 1'!$A$6:$A$8,),MATCH($A$13,'Sheet 1'!$C$6:$L$6,))*VLOOKUP(B15, 'Data
Table'!$U$10:$V$15,2,FALSE)))

I know this doesn't exceed the Nested If limit so I don't know what the
problem is.

Can I not use INDEX/MATCH/VLOOKUP within my IF statement?






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben
 
Posts: n/a
Default formula too long error?

Depending upon version of Excel, formula length can be 1024 characters.

2002 and newer allow the 1024 chars.

See help on specifications and limits.


Gord Dibben MS Excel MVP

On Wed, 28 Jun 2006 12:35:01 -0700, Toppers
wrote:

I believe Excel formulae are limited to 255 characters and yours is 300. It
has nothing to do with the use of INDEX, MATCH or LOOKUP.

"dread" wrote:

I'm getting an error "formula too long" for the folloiwng IF statement:

=IF(B15="",0,IF(B19="Full Splash, INDEX(Sheet 1!$A$1:$L$3, MATCH
($B$5,Sheet 1!$A$1:$A$3,), MATCH($A$13,Sheet
1!$C$1:$L$1,))*VLOOKUP(B15,Data Table!$U$10:$V$15,2,FALSE), (INDEX(Sheet
1!$A$6:$L$8, MATCH($B$5,
Sheet 1!$A$6:$A$8,),MATCH($A$13,Sheet 1!$C$6:$L$6,))*VLOOKUP(B15, Data
Table!$U$10:$V$15,2,FALSE)))

I know this doesn't exceed the Nested If limit so I don't know what the
problem is.

Can I not use INDEX/MATCH/VLOOKUP within my IF statement?


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dread
 
Posts: n/a
Default formula too long error?

I have Excel 2002, so why the "formula is too long" error? I guess it's an
erroneous error message.

"Gord Dibben" wrote:

Depending upon version of Excel, formula length can be 1024 characters.

2002 and newer allow the 1024 chars.

See help on specifications and limits.


Gord Dibben MS Excel MVP

On Wed, 28 Jun 2006 12:35:01 -0700, Toppers
wrote:

I believe Excel formulae are limited to 255 characters and yours is 300. It
has nothing to do with the use of INDEX, MATCH or LOOKUP.

"dread" wrote:

I'm getting an error "formula too long" for the folloiwng IF statement:

=IF(B15="",0,IF(B19="Full Splash, INDEX(Sheet 1!$A$1:$L$3, MATCH
($B$5,Sheet 1!$A$1:$A$3,), MATCH($A$13,Sheet
1!$C$1:$L$1,))*VLOOKUP(B15,Data Table!$U$10:$V$15,2,FALSE), (INDEX(Sheet
1!$A$6:$L$8, MATCH($B$5,
Sheet 1!$A$6:$A$8,),MATCH($A$13,Sheet 1!$C$6:$L$6,))*VLOOKUP(B15, Data
Table!$U$10:$V$15,2,FALSE)))

I know this doesn't exceed the Nested If limit so I don't know what the
problem is.

Can I not use INDEX/MATCH/VLOOKUP within my IF statement?



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default formula too long error?

1024 characters when measured in R1C1 reference style.

(for xl97+)

Toppers wrote:

I believe Excel formulae are limited to 255 characters and yours is 300. It
has nothing to do with the use of INDEX, MATCH or LOOKUP.

"dread" wrote:

I'm getting an error "formula too long" for the folloiwng IF statement:

=IF(B15="",0,IF(B19="Full Splash, INDEX(Sheet 1!$A$1:$L$3, MATCH
($B$5,Sheet 1!$A$1:$A$3,), MATCH($A$13,Sheet
1!$C$1:$L$1,))*VLOOKUP(B15,Data Table!$U$10:$V$15,2,FALSE), (INDEX(Sheet
1!$A$6:$L$8, MATCH($B$5,
Sheet 1!$A$6:$A$8,),MATCH($A$13,Sheet 1!$C$6:$L$6,))*VLOOKUP(B15, Data
Table!$U$10:$V$15,2,FALSE)))

I know this doesn't exceed the Nested If limit so I don't know what the
problem is.

Can I not use INDEX/MATCH/VLOOKUP within my IF statement?


--

Dave Peterson
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tim m
 
Posts: n/a
Default formula too long error?

Also could be my imagination but after counting brackets a couple times I
counted 11 left brackets and only 10 right brackets in the formula. For
every left there must be a right.

"dread" wrote:

I'm getting an error "formula too long" for the folloiwng IF statement:

=IF(B15="",0,IF(B19="Full Splash, INDEX(Sheet 1!$A$1:$L$3, MATCH
($B$5,Sheet 1!$A$1:$A$3,), MATCH($A$13,Sheet
1!$C$1:$L$1,))*VLOOKUP(B15,Data Table!$U$10:$V$15,2,FALSE), (INDEX(Sheet
1!$A$6:$L$8, MATCH($B$5,
Sheet 1!$A$6:$A$8,),MATCH($A$13,Sheet 1!$C$6:$L$6,))*VLOOKUP(B15, Data
Table!$U$10:$V$15,2,FALSE)))

I know this doesn't exceed the Nested If limit so I don't know what the
problem is.

Can I not use INDEX/MATCH/VLOOKUP within my IF statement?

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Greg Wilson
 
Posts: n/a
Default formula too long error?

First, I count only 10 right parentheses and 11 left. Second, I'm finding
illegal characters:
1. The *double quote* following the text "Full Splash" isn't actually a
double quote but char 148 which looks almost identical.
2. The *single quotes* surrounding the sheet names (Sheet1 and Data Table)
are in fact char 146 instead which looks almost identical.

The above mentioned characters may look the same but are not accepted
worksheet formula syntax. Strange? Where did the formula come from?

Regards,
Greg

"dread" wrote:

I'm getting an error "formula too long" for the folloiwng IF statement:

=IF(B15="",0,IF(B19="Full Splash, INDEX(Sheet 1!$A$1:$L$3, MATCH
($B$5,Sheet 1!$A$1:$A$3,), MATCH($A$13,Sheet
1!$C$1:$L$1,))*VLOOKUP(B15,Data Table!$U$10:$V$15,2,FALSE), (INDEX(Sheet
1!$A$6:$L$8, MATCH($B$5,
Sheet 1!$A$6:$A$8,),MATCH($A$13,Sheet 1!$C$6:$L$6,))*VLOOKUP(B15, Data
Table!$U$10:$V$15,2,FALSE)))

I know this doesn't exceed the Nested If limit so I don't know what the
problem is.

Can I not use INDEX/MATCH/VLOOKUP within my IF statement?



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
EXCEL ERROR - series formula is too long BobY Excel Worksheet Functions 3 April 3rd 23 10:55 AM
Error formula too long JJT Excel Worksheet Functions 0 December 23rd 05 04:02 PM
Ignore error msgs in formula references gharden Excel Discussion (Misc queries) 4 June 17th 05 12:14 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
"formula too long" error message lbaskin Excel Discussion (Misc queries) 1 January 13th 05 03:05 AM


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