Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 683
Default formula error- ("Nesting more than 7 functions"- Feb4)

I have tried the following formula as suggested by your discussion group Feb4,

=sum(WS2!$A$1:index(WS2!$A1:$L1,countif($A1:$L1," "&0))).

The formula should add the values of cells WS2(A1:L1) only if there is a
value 0 in (A1:L1). ie: if WS2 A1=200 and WS2 B1=150 and WS2 (C1:L1) are all
0 then the formula should render the value 350. This formula as written above
is adding all of the cells (WS2A1:L1) even if the values of (A1:L1) are all
0. Note that when I have referenced (A1:L1) it refers to WS1 not WS2. I
appreciate your help with this formula so that it only adds when any of the
cells in (A1:L1) are 0. Thanks very much.
--
Brian
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default formula error- ("Nesting more than 7 functions"- Feb4)

Here is some information which will help you get better solutions:
1. This is not "your discussion group". This is no one's discussion group.
It is a group of users who volunteer their time to help others. There is no
one in charge, and people come and go as they please.
2. What does the description of your problem have to do with the subject
line? How do you expect to attract people who can solve your problem with
the subject line you used?
3. What is the problem you are having? What solution are you looking for?

Regards,
Fred.

"Brian" wrote in message
...
I have tried the following formula as suggested by your discussion group
Feb4,

=sum(WS2!$A$1:index(WS2!$A1:$L1,countif($A1:$L1," "&0))).

The formula should add the values of cells WS2(A1:L1) only if there is a
value 0 in (A1:L1). ie: if WS2 A1=200 and WS2 B1=150 and WS2 (C1:L1) are
all
0 then the formula should render the value 350. This formula as written
above
is adding all of the cells (WS2A1:L1) even if the values of (A1:L1) are
all
0. Note that when I have referenced (A1:L1) it refers to WS1 not WS2. I
appreciate your help with this formula so that it only adds when any of
the
cells in (A1:L1) are 0. Thanks very much.
--
Brian


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default formula error- ("Nesting more than 7 functions"- Feb4)

I think that the SUMPRODUCT function might work better for you he

=SUMPRODUCT(--($A1:$L10),'WS2'!$A$1:$L$1)

HTH
Elkar


"Brian" wrote:

I have tried the following formula as suggested by your discussion group Feb4,

=sum(WS2!$A$1:index(WS2!$A1:$L1,countif($A1:$L1," "&0))).

The formula should add the values of cells WS2(A1:L1) only if there is a
value 0 in (A1:L1). ie: if WS2 A1=200 and WS2 B1=150 and WS2 (C1:L1) are all
0 then the formula should render the value 350. This formula as written above
is adding all of the cells (WS2A1:L1) even if the values of (A1:L1) are all
0. Note that when I have referenced (A1:L1) it refers to WS1 not WS2. I
appreciate your help with this formula so that it only adds when any of the
cells in (A1:L1) are 0. Thanks very much.
--
Brian

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default formula error- ("Nesting more than 7 functions"- Feb4)

Hi,

you can use a simple sumif function

=sumif(WS2!$A1:$L1,"0",)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Brian" wrote in message
...
I have tried the following formula as suggested by your discussion group
Feb4,

=sum(WS2!$A$1:index(WS2!$A1:$L1,countif($A1:$L1," "&0))).

The formula should add the values of cells WS2(A1:L1) only if there is a
value 0 in (A1:L1). ie: if WS2 A1=200 and WS2 B1=150 and WS2 (C1:L1) are
all
0 then the formula should render the value 350. This formula as written
above
is adding all of the cells (WS2A1:L1) even if the values of (A1:L1) are
all
0. Note that when I have referenced (A1:L1) it refers to WS1 not WS2. I
appreciate your help with this formula so that it only adds when any of
the
cells in (A1:L1) are 0. Thanks very much.
--
Brian


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
correct syntax for nesting "if", "and", and "vlookup"....if possib Christine Excel Worksheet Functions 4 January 2nd 09 10:43 PM
can I nest COUNTIF functions(C5:C8,"apples") AND (D5:D8,"green") guycummins Excel Worksheet Functions 4 June 10th 08 09:23 PM
Functions for "current" & "previous" month to calculate data Priss Excel Worksheet Functions 11 April 15th 08 06:24 PM
Excel "Move or Copy" and "Delete" sheet functions dsiama Excel Worksheet Functions 1 December 28th 07 01:57 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM


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