Can anyone help please with this formula.
=COUNTIF(B208:AE208,"H")
This works fine to count the number of H's in a row. What I need is to also
count HD as .5 in the same row and add it to the final total.
For instance in the first row H H HD H = 3.5. I may at a later
date also need to add to it again with a S also to count 1.
Can anyone help with the formula please. Maybe COUNTIF isn't the correct one
to use.
Thanks.
Bryan.
Barb Reinhardt - 08 Mar 2008 21:24 GMT
=COUNTIF(B208:AE208,"H") - COUNTIF(B208:AE208,"HD")

Signature
HTH,
Barb Reinhardt
> Can anyone help please with this formula.
> =COUNTIF(B208:AE208,"H")
[quoted text clipped - 9 lines]
>
> Bryan.
Tyro - 08 Mar 2008 21:43 GMT
Perhaps: =COUNTIF(B208:AE208,"H")+COUNTIF(B208:AE208,"HD")/2
You might want to add the ROUND function to the second COUNTIF to round up.
Tyro
> Can anyone help please with this formula.
> =COUNTIF(B208:AE208,"H")
[quoted text clipped - 9 lines]
>
> Bryan.
Bryan De-Lara - 09 Mar 2008 02:11 GMT
Thank you both, works just fine...:)
Bryan.
> Perhaps: =COUNTIF(B208:AE208,"H")+COUNTIF(B208:AE208,"HD")/2
> You might want to add the ROUND function to the second COUNTIF to round
[quoted text clipped - 15 lines]
>>
>> Bryan.
Tyro - 09 Mar 2008 02:22 GMT
Both formulas cannot work "Just fine" the two formulas produce different
answers.
Tyro
> Thank you both, works just fine...:)
>
[quoted text clipped - 19 lines]
>>>
>>> Bryan.
Bryan De-Lara - 09 Mar 2008 02:33 GMT
Yes agreed, yours works fine, but I was thanking both for taking the trouble
to answer, sorry for the confusion.
Bryan.
> Both formulas cannot work "Just fine" the two formulas produce different
> answers.
[quoted text clipped - 24 lines]
>>>>
>>>> Bryan.