lbgolferga
New Member
- Joined
- Mar 5, 2002
- Messages
- 5
I am trying to count the number of times a conditional value occurs in a spreadsheet. I would like to check column A:1-end for a value "AAA". If true then check column D, same row for one of 3 values. If any are true add 1 to the total. I have tried this:
=sum(if(a1:A100="aaa",if(d1:d100="LB",1,0),0)) as an array function and it works but only for one conditional occurance. Can I check for all three with one statment? I.E. If col-a="aaa" and (col-d = ("LB" or "PR" or "MG") , add 1 to total.
=sum(if(a1:A100="aaa",if(d1:d100="LB",1,0),0)) as an array function and it works but only for one conditional occurance. Can I check for all three with one statment? I.E. If col-a="aaa" and (col-d = ("LB" or "PR" or "MG") , add 1 to total.