Function within a function?

  • Thread starter Thread starter Guest
  • Start date Start date
Parentheses are misplaced.
=IF(AND(B5="122",SUM(D5:L5)>1),1,0)
But why quotes on numeric value 122 ?
=IF(AND(B5=122,SUM(D5:L5)>1),1,0)
best wishes
 
Try this.......
=IF(AND(B5="122",SUM(D5:L5)>1),1,0)
or this
=IF(AND(B5=122,SUM(D5:L5)>1),1,0)

Vaya con Dios,
Chuck, CABGx3
 
=IF(AND(B5=122,(SUM(D5:L5)>1)),1,0)

Hard to say for sure. It appears there are some misplaced parenthesis. I
found it very difficult, when evaluating the formula, to come up with a true
for the test B5 = "122" no matter how I formatted B5 or entered "122". I
eventually made it a number and tested for a number as above, and it worked
for me.
 
You can do this...(I left the quotes around 122 as I assume B5 is Text???)

=IF(AND(B5="122",SUM(D5:L5)>1),1,0)
or
=AND(B5="122",SUM(D5:L5)>1)
 
Thanks, everyone, for the fix! :-)

Jim Thomlinson said:
You can do this...(I left the quotes around 122 as I assume B5 is Text???)

=IF(AND(B5="122",SUM(D5:L5)>1),1,0)
or
=AND(B5="122",SUM(D5:L5)>1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top