Hi,

A sample file would be good, but to simplify your formula, use a a name for 
'Test Plan'!$I$13:$I$10134

I've used XYZ and your formula now looks like this:

 

=IF(AND(XYZ ="11",(IF(SUM(IF(XYZ ="NB",1,0)))>0,SUM(IF(XYZ 
="NB",1,0)),0)+IF(SUM(IF(XYZ ="QU",1,0))>0,SUM(IF(XYZ 
="QU",1,0)),0)+IF(SUM(IF(XYZ ="SLIQ",1,0))>0,SUM(IF(XYZ 
="SLIQ",1,0)),0)+IF(SUM(IF(XYZ ="PQB",1,0))>0,SUM(IF(XYZ ="PQB",1,0)),0))))-A3

But the whole thing looks very cumbersome, and discourages me from diagnosing 
the error. Tell me, using words, what you want to achieve. Perhaps there is a 
better way.

 

Regards - Dave.

 

 

 

 
> Date: Wed, 12 May 2010 13:00:44 +0530
> Subject: Re: $$Excel-Macros$$ IF AND formulas
> From: sandymau...@gmail.com
> To: excel-macros@googlegroups.com
> 
> Hi Mike,
> 
> It will be better if you send a sample file with some data and your
> query. As it may give you a shorter and simple formula for your task.
> 
> And about this formula, one can only show you the syntax error and
> that not guaranteed for formula to give desired result.
> 
> So if you can than attach a sample file.
> 
> Thanks & Regards
> Sandeep
> 
> On Wed, May 12, 2010 at 2:22 AM, mikeb <mb...@allstate.com> wrote:
> > I would appreciate any help on the following formula which I cannot
> > get to work:
> >
> > =IF(AND('TEST PLAN'!$U$14:$U$10134="11",(IF(SUM(IF('Test Plan'!$I$13:$I
> > $10134="NB",1,0)))>0,SUM(IF('Test Plan'!$I$13:$I$10134="NB",1,0)),
> > 0)+IF(SUM(IF('Test Plan'!$I$13:$I$10134="QU",1,0))>0,SUM(IF('Test
> > Plan'!$I$13:$I$10134="QU",1,0)),0)+IF(SUM(IF('Test Plan'!$I$13:$I
> > $10134="SLIQ",1,0))>0,SUM(IF('Test Plan'!$I$13:$I$10134="SLIQ",1,0)),
> > 0)+IF(SUM(IF('Test Plan'!$I$13:$I$10134="PQB",1,0))>0,SUM(IF('Test
> > Plan'!$I$13:$I$10134="PQB",1,0)),0))))-A3
> >
> > I am trying to qualify the formulas at the beginning by testing to see
> > if 'TEST PLAN'!$U$14:$U$10134="11" if it is true then I want to
> > proceed with the rest of the formulas.
> >
> > Thank you for any help.
> >
> > Mike B
> >
> > --
> > ----------------------------------------------------------------------------------
> > Some important links for excel users:
> > 1. Follow us on TWITTER for tips tricks and links : 
> > http://twitter.com/exceldailytip
> > 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
> > 3. Excel tutorials at http://www.excel-macros.blogspot.com
> > 4. Learn VBA Macros at http://www.quickvba.blogspot.com
> > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
> >
> > To post to this group, send email to excel-macros@googlegroups.com
> >
> > <><><><><><><><><><><><><><><><><><><><><><>
> > HELP US GROW !!
> >
> > We reach over 6,800 subscribers worldwide and receive many nice notes about 
> > the learning and support from the group.Let friends and co-workers know 
> > they can subscribe to group at 
> > http://groups.google.com/group/excel-macros/subscribe
> >
> 
> -- 
> ----------------------------------------------------------------------------------
> Some important links for excel users:
> 1. Follow us on TWITTER for tips tricks and links : 
> http://twitter.com/exceldailytip
> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
> 3. Excel tutorials at http://www.excel-macros.blogspot.com
> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
> 
> To post to this group, send email to excel-macros@googlegroups.com
> 
> <><><><><><><><><><><><><><><><><><><><><><>
> HELP US GROW !!
> 
> We reach over 6,800 subscribers worldwide and receive many nice notes about 
> the learning and support from the group.Let friends and co-workers know they 
> can subscribe to group at 
> http://groups.google.com/group/excel-macros/subscribe
                                          
_________________________________________________________________
Browse profiles for FREE! Meet local singles online.
http://clk.atdmt.com/NMN/go/150855801/direct/01/

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,800 subscribers worldwide and receive many nice notes about the 
learning and support from the group.Let friends and co-workers know they can 
subscribe to group at http://groups.google.com/group/excel-macros/subscribe

Reply via email to