#1   Report Post  
PaulC
 
Posts: n/a
Default Nested IF

Having extracted data from my database I now need to
sumarise it:
{=SUM(IF(Data!$A$2:$A$3272=$B$5,IF(Data!
$L$2:$L$3272=$B$6,IF(Data!$B$2:$B$3272="ZZZ",IF(Da ta!
$C$2:$C$3272="xx-xx",IF(Data!$D$2:$D$3272<$A$1,IF(Data!
$P$2:$P$3272<$A$1,IF($Q$2:$Q$3272=$A$3,IF(Data!
$F$2:$F$3272<$A$1,1,0)))))))))}

Only I can't.

The "Help" suggest using some sort of Macro???

The summaries are for a range of conditions with two of
them requiring the test on $Q having no value ISBLANK was
unreliable thus the test on $A$3 being a known, empty,
cell.

Any help would be most welcome.

PaulC
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
Reason for this: You have exceeded the maximum nested function level
which is seven. Use SUMPRODUCT instead. e.g.
=SUMPRODUCT(--(Data!$A$2:$A$3272=$B$5),--(Data!$L$2:$L$3272=$B$6),--(Da
ta!$B$2:$B$3272="ZZZ"),--(Data!
$C$2:$C$3272="xx-xx"),--(Data!$D$2:$D$3272<$A$1),--(Data!$P$2:$P$3272<$
A$1),--($Q$2:$Q$3272=$A$3),--(Data!
$F$2:$F$3272<$A$1))

Also see:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html



--
Regards
Frank Kabel
Frankfurt, Germany

"PaulC" schrieb im Newsbeitrag
...
Having extracted data from my database I now need to
sumarise it:
{=SUM(IF(Data!$A$2:$A$3272=$B$5,IF(Data!
$L$2:$L$3272=$B$6,IF(Data!$B$2:$B$3272="ZZZ",IF(Da ta!
$C$2:$C$3272="xx-xx",IF(Data!$D$2:$D$3272<$A$1,IF(Data!
$P$2:$P$3272<$A$1,IF($Q$2:$Q$3272=$A$3,IF(Data!
$F$2:$F$3272<$A$1,1,0)))))))))}

Only I can't.

The "Help" suggest using some sort of Macro???

The summaries are for a range of conditions with two of
them requiring the test on $Q having no value ISBLANK was
unreliable thus the test on $A$3 being a known, empty,
cell.

Any help would be most welcome.

PaulC


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
Function Macro for Nested IF Qaspec Excel Worksheet Functions 5 March 10th 05 07:25 PM
Mini-editor for nested IF's in Excel Erik Neu Excel Discussion (Misc queries) 3 January 4th 05 11:30 PM
Q: Nested if JIM.H. Excel Discussion (Misc queries) 2 December 31st 04 09:17 PM
nested ifs sthompson Setting up and Configuration of Excel 1 December 15th 04 06:38 PM
nested statements Sherri New Users to Excel 6 December 3rd 04 07:04 PM


All times are GMT +1. The time now is 12:04 PM.

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"