Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Subu
 
Posts: n/a
Default Max limit of 7 nested loops

Hi

I have the following formula. I use this formula to collect different
values for different months (i.e.) if (month)=4,
AG160+AH160+AI160+AJ160, if (month)=5, AG160+AH160+AI160+AJ160+AK160
and so on .....

The actual formula is

=IF($J$1=4,AG160+AH160+AI160+AJ160,IF($J$1=6,AG160 +AH160+AI160+AJ160+AK160+AL160,IF($J$1=7,SUM(AG160 :AM160),IF($J$1=8,AG160+AH160+AI160+AJ160+AK160+AL 160+AM160+AN160,IF($J$1=9,AG160+AH160+AI160+AJ160+ AK160+AL160+AM160+AN160+AO160,IF($J$1=10,AG160+AH1 60+AI160+AJ160+AK160+AL160+AM160+AN160+AO160+AP160 ,IF($J$1=11,AG160+AH160+AI160+AJ160+AK160+AL160+AM 160+AN160+AO160+AP160+AQ160,IF($J$1=12,AG160+AH160 +AI160+AJ160+AK160+AL160+AM160+AN160+AO160+AP160+A Q160+AR160,0))))))))

However I am stuck now with the max limit of 7 nested loops - hence
manually changing the formula from month to month .....

is there a way I can do this once and for all (i.e.) without having to
change month to month ?


Thanks

Subu

  #3   Report Post  
Leo Heuser
 
Posts: n/a
Default

Hi Subu

In this situation you can use this formula:

=SUM(OFFSET($AG$160,,,,$J$1))

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"Subu" skrev i en meddelelse
oups.com...
Hi

I have the following formula. I use this formula to collect different
values for different months (i.e.) if (month)=4,
AG160+AH160+AI160+AJ160, if (month)=5, AG160+AH160+AI160+AJ160+AK160
and so on .....

The actual formula is

=IF($J$1=4,AG160+AH160+AI160+AJ160,IF($J$1=6,AG160 +AH160+AI160+AJ160+AK160+AL160,IF($J$1=7,SUM(AG160 :AM160),IF($J$1=8,AG160+AH160+AI160+AJ160+AK160+AL 160+AM160+AN160,IF($J$1=9,AG160+AH160+AI160+AJ160+ AK160+AL160+AM160+AN160+AO160,IF($J$1=10,AG160+AH1 60+AI160+AJ160+AK160+AL160+AM160+AN160+AO160+AP160 ,IF($J$1=11,AG160+AH160+AI160+AJ160+AK160+AL160+AM 160+AN160+AO160+AP160+AQ160,IF($J$1=12,AG160+AH160 +AI160+AJ160+AK160+AL160+AM160+AN160+AO160+AP160+A Q160+AR160,0))))))))

However I am stuck now with the max limit of 7 nested loops - hence
manually changing the formula from month to month .....

is there a way I can do this once and for all (i.e.) without having to
change month to month ?


Thanks

Subu



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
limit of 7 nested functions? Olympiad Excel Worksheet Functions 3 May 28th 05 07:47 AM
how can I exceed the nested if fuction limit mgdye Excel Discussion (Misc queries) 5 January 30th 05 02:09 PM
how can I exceed the nested if fuction limit Mike Excel Discussion (Misc queries) 0 January 30th 05 12:17 AM
Employing constant arrays to limit nested IF statements. Richard-44 Excel Worksheet Functions 2 January 6th 05 02:19 AM
Nested IF limit or Open parentheses limit Fred Excel Discussion (Misc queries) 5 December 23rd 04 03:34 PM


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