# Countif forrmula

#### striperri

##### New Member
Hello

I am currently using this forumla

=SUM(COUNTIF(C5:AG5,"P"),COUNTIF(C5:AG5,"H"),((COUNTIF(C5:AG5,"S"))))

I need to change the formula to when it add the H it only counts it as .5 not 1

Any help would be greatly apprecaited

ThanksDoug

### Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
=sum(countif(c5:ag5,"p"),countif(c5:ag5,"h")/2,((countif(c5:ag5,"s"))))

Try it with sumproduct.

=SUMPRODUCT((C5:AG5="P")+((C5:AG5="H")/2)+(C5:AG5="S"))

=sum(countif(c5:ag5,"p"),countif(c5:ag5,"h")/2,((countif(c5:ag5,"s"))))

perfect nice easy one shoudl have thought of that

Replies
1
Views
92
Replies
14
Views
481
Replies
5
Views
123
Replies
11
Views
140
Replies
3
Views
166

1,196,506
Messages
6,015,595
Members
441,904
Latest member
edris Alsatouf

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back