Andrzej

New Member
Hello Everybody,

Can somebody help me please and tell how is the formula looks like if I want to count how many for example "H" letters are in range between F1 to R1

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
This is an array formula - confirm with ctrl+shift+enter, not just enter. It's case sensitive and will count all cells in the range F1:R1 that contain one or more letters"H".

Code:
``=SUM(IF(ISNUMBER(FIND("H",F1:R1)),1,0))``

This is an array formula - confirm with ctrl+shift+enter, not just enter. It's case sensitive and will count all cells in the range F1:R1 that contain one or more letters"H".

Code:
``=SUM(IF(ISNUMBER(FIND("H",F1:R1)),1,0))``

Thanks a lot for you help really appreciated. May I ask for one more please? I need exactly the same by at the end I want formula to count H as 0.5 not 1?

Well, the formula states that for each cell that contains an "H" it should count 1, else 0, so looks pretty obvious what should be adjusted if you want to count 0.5 instead of 1.

I did change it, I thought it could work however when I placed 0,5 ( its says that I had to many arguments etc) and when I placed 0.5 it doesn't work. Is there anything I should add in there? sorry to be a pain but am really sh.. with excel

When you're ready editing the formula, don't forget to confirm with CTRL-SHIFT-ENTER, not just ENTER.

Code:
``=SUM(IF(ISNUMBER(FIND("H",F1:R1)),[COLOR="#FF0000"][B].5[/B][/COLOR],0))``

Are you sure you did the ctrl+shift+enter after the change? You could also divide by 2.

=SUM(IF(ISNUMBER(FIND("H",F1:R1)),0.5,0))
=SUM(IF(ISNUMBER(FIND("H",F1:R1)),1,0))/2

Try this:
=SUM(IF(ISNUMBER(FIND("H",F1:R1)),1,0))/2

Replies
3
Views
395
Replies
2
Views
251
Replies
9
Views
482
Replies
3
Views
137
Replies
7
Views
438

1,203,094
Messages
6,053,505
Members
444,667
Latest member
KWR21

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.

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