LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jan Jan is offline
external usenet poster
 
Posts: 159
Default Sum using more than 6 nested IF functions

I'm looking for an alternative to the IF function detailed below based on 12
nested formulas ie January - December so that depending on which month is
specified in the "input date B1" the year to date column returns the sum of a
differing number of columns....

If the input date is month 1 then the calculation returns the value in
column Q24
If the input date is month 2 then the calculation returns the value in
column P24:Q24
If the input date is month 3 then the calculation returns the value in
column O24:Q24 and so on....

Any ideas?

=IF('Input Date'!$B$1=1,SUM(Q24),IF('Input
Date'!$B$1=2,SUM(P24:Q24),IF('Input Date'!$B$1=3,SUM(O24:Q24),IF('Input
Date'!$B$1=4,SUM(N24:Q24),IF('Input Date'!$B$1=5,SUM(M24:Q24),IF('Input
Date'!$B$1=6,SUM(L24:Q24),IF('Input Date'!$B$1=7,SUM(K24:Q24),0)))))))
 
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
Nested IF AND functions. Deb Excel Worksheet Functions 2 November 1st 08 05:24 AM
Nested Functions Toppers Excel Discussion (Misc queries) 0 February 22nd 07 07:37 PM
More then 7 nested If functions. Sarah Excel Worksheet Functions 2 January 4th 07 07:24 AM
too many nested IF functions Amanda Excel Worksheet Functions 5 October 6th 06 03:02 PM
Nested Functions Steve Almond Excel Worksheet Functions 2 June 14th 05 03:22 PM


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