Countif help

Status
Not open for further replies.

Bourgeois

New Member
Hi,

I am having trouble with this particular formula, I am not too sure, as it does work on another area of my spreadsheet.

Criteria,

A B
1 Health Dental
2
3 F S
4 SpEx SpEx
5 S S
6 F F
7 F F

=countif(A3:A7,"f")
=countif(A3:A7,"s")

because i have the SpEx in there it is not working. If I take it out the formula works just fine? Is there a way around this?

formula is, countif(

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"

texasalynn

Well-known Member
you last formula is cut out
But Seems ok to me

Excel Workbook
AB
1HealthDental
2**
3FS
4SpExSpEx
5SS
6FF
7FF
8**
931
Sheet1

schielrn

Well-known Member
What exactly is wrong? Are you not getting the results you expect? From this example I would expect 3 for the first formula and 1 for the 2nd?

Bourgeois

New Member
but your total should be 2 for the formula in B9?

Bourgeois

New Member
it is a duplicate, I hit the button twice in error...

texasalynn

Well-known Member
but your total should be 2 for the formula in B9?
the one in B9 is pointing to column A so would change to correct formula
Excel Workbook
AB
1HealthDental
2
3FS
4SpExSpEx
5SS
6FF
7FF
8
932
Sheet1

Joe4

MrExcel MVP, Junior Admin
I am going to lock this one, and leave the other one open since that one has more responses and more recent responses.

You have the ability to delete any accidental duplicates you make in the first 5-10 minutes after posting as long as no one has replied. If it is past that time, you can click on the Report button and ask a Moderator to take care of it.

Status
Not open for further replies.

Replies
1
Views
510
Replies
5
Views
452
Replies
1
Views
273
Replies
3
Views
172
Replies
4
Views
428

1,195,716
Messages
6,011,274
Members
441,598
Latest member
chrispaulpearce

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.
Allow Ads at MrExcel

Which adblocker are you using?

Follow these easy steps to disable AdBlock

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

Follow these easy steps to disable AdBlock Plus

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