Henry Gilbert
New Member
Hi Chandoo,
A friend showed me a statement the other day and there is a piece of it I don't under stand. It was multiple COUNTIF's, AND, OR combined,, plus a weird twist I've never seen before and I hoped you could explain it to me. The weird part looks like this "=COUNTIF(SIFPrevMonth!$G:$G,"Injury/Illness")*AND(OR(COUNTIF(" , I don't get the purpose of the asterisk. I will post the complete statement in hope you can help.
Thanks,
Henry
The Complete Statement
=COUNTIF(SIFPrevMonth!$G:$G,"Injury/Illness")*AND(OR(COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Health Environment and Safety")+COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Information Technology")+COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Supply Chain Management")+COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Finance")+COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Geological & Geophysical Operations")+COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Human Resources")+COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Information & Technology")+COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Appraisal")+COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Business Development & Planning")+COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Exploration")))
A friend showed me a statement the other day and there is a piece of it I don't under stand. It was multiple COUNTIF's, AND, OR combined,, plus a weird twist I've never seen before and I hoped you could explain it to me. The weird part looks like this "=COUNTIF(SIFPrevMonth!$G:$G,"Injury/Illness")*AND(OR(COUNTIF(" , I don't get the purpose of the asterisk. I will post the complete statement in hope you can help.
Thanks,
Henry
The Complete Statement
=COUNTIF(SIFPrevMonth!$G:$G,"Injury/Illness")*AND(OR(COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Health Environment and Safety")+COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Information Technology")+COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Supply Chain Management")+COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Finance")+COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Geological & Geophysical Operations")+COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Human Resources")+COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Information & Technology")+COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Appraisal")+COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Business Development & Planning")+COUNTIF(SIFPrevMonth!$B:$B,"DWEP:Exploration")))