View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_2_] Shane Devenshire[_2_] is offline
external usenet poster
 
Posts: 3,346
Default Need help of you people

Hi,

if you only have p , a and 2p then
=COUNTIF(E1:E7,"p*")+COUNTIF(E1:E7,"2P")
or
=SUMPRODUCT(COUNTIF(E1:E7,{"p*","2p"}))

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"malik" wrote:

Hope you all would be fine. I am making a Mess Management sheet for employees
but i have a problem that i make "P" for present in mess and "a" for absent
before anyone's name according to date i count all "p" and all "a" by COUNTIF
but the problem is how to make the value of 2p twice if some one has guest
with him when in geting total of all presents(p).
plz guide urgently
Thanks alot