Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jim_Bowie
 
Posts: n/a
Default Limit to the number of items in a cell

Is there a limit to the number of parentheses you can put into one cell in
excell's spreadsheet?
For instance, I try to enter:

=if(d4=1,offset(data!c24,0,0),if(d4=2,offset(data! d24,0,0),if(d4=3,offset(data!e24,0,0),
if(d4=4,offset(data!f24,0,0),if(d4=5,offset(data!c 43,0,0),if(d4=6,offset(data!d43,0,0),if(d4=7,offse t(data!e43,0,0),if(d4=8,offset(data!f43,0,0),if(D4 =9,Offset(data!c62,0,0),if(d4=10,offset(data!d62,0 ,0),if(d4=11,Offset(data!e62,0,0),if(d4=12,offset( data!f62,0,0),""))))))))))))

but excel won't let the function through, saying that there is an "error"
after the d4=7 part. If you know of any such limit, or a better and more
efficient way to go about what I'm doing, it would be much appreciated.
Thanks in advance.
  #2   Report Post  
Andy Wiggins
 
Posts: n/a
Default

You hit the IF limit (see the Help file).

This should do what you want:

=OFFSET(INDIRECT("data!"&CHOOSE(D4,"C24","D24","E2 4","F24","C43","D43","E43"
,"F43","C62","D62","E62","F62")),0,0)

--
Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy
-

"Jim_Bowie" wrote in message
...
Is there a limit to the number of parentheses you can put into one cell in
excell's spreadsheet?
For instance, I try to enter:


=if(d4=1,offset(data!c24,0,0),if(d4=2,offset(data! d24,0,0),if(d4=3,offset(da
ta!e24,0,0),

if(d4=4,offset(data!f24,0,0),if(d4=5,offset(data!c 43,0,0),if(d4=6,offset(dat
a!d43,0,0),if(d4=7,offset(data!e43,0,0),if(d4=8,of fset(data!f43,0,0),if(D4=9
,Offset(data!c62,0,0),if(d4=10,offset(data!d62,0,0 ),if(d4=11,Offset(data!e62
,0,0),if(d4=12,offset(data!f62,0,0),""))))))))))))

but excel won't let the function through, saying that there is an "error"
after the d4=7 part. If you know of any such limit, or a better and more
efficient way to go about what I'm doing, it would be much appreciated.
Thanks in advance.



  #3   Report Post  
Jim_Bowie
 
Posts: n/a
Default

Thanks once again

"Andy Wiggins" wrote:

You hit the IF limit (see the Help file).

This should do what you want:

=OFFSET(INDIRECT("data!"&CHOOSE(D4,"C24","D24","E2 4","F24","C43","D43","E43"
,"F43","C62","D62","E62","F62")),0,0)

--
Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy
-

"Jim_Bowie" wrote in message
...
Is there a limit to the number of parentheses you can put into one cell in
excell's spreadsheet?
For instance, I try to enter:


=if(d4=1,offset(data!c24,0,0),if(d4=2,offset(data! d24,0,0),if(d4=3,offset(da
ta!e24,0,0),

if(d4=4,offset(data!f24,0,0),if(d4=5,offset(data!c 43,0,0),if(d4=6,offset(dat
a!d43,0,0),if(d4=7,offset(data!e43,0,0),if(d4=8,of fset(data!f43,0,0),if(D4=9
,Offset(data!c62,0,0),if(d4=10,offset(data!d62,0,0 ),if(d4=11,Offset(data!e62
,0,0),if(d4=12,offset(data!f62,0,0),""))))))))))))

but excel won't let the function through, saying that there is an "error"
after the d4=7 part. If you know of any such limit, or a better and more
efficient way to go about what I'm doing, it would be much appreciated.
Thanks in advance.




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
Count Number of Characters in a cell? AHJuncti Excel Discussion (Misc queries) 2 June 16th 05 07:39 PM
16 digit number wont keep alteration unless format cell to text Croc001 Excel Discussion (Misc queries) 3 March 30th 05 09:12 AM
Excel should let me circle a cell or number in the spreadsheet fo. BTaylor Excel Discussion (Misc queries) 2 March 8th 05 03:00 PM
How do I format a cell for a custom part number? PJ Excel Discussion (Misc queries) 4 March 3rd 05 03:57 AM
cell that accepts a whole number or five place deciaml crck_whr Excel Worksheet Functions 2 November 12th 04 04:14 PM


All times are GMT +1. The time now is 07:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"