# Confused

#### i8ig

##### Board Regular
I need to count the number of times 'settled' and 'impasse' occur in a row and add the total together, I tried: =countif("settled"and"impasse") but it does not work

Any suggestion is appreciated

### Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

#### i8ig

##### Board Regular
Never mind, I found that if I left the and out it works fine

#### Gerald Higgins

##### Well-known Member
Why not
=countif("settled") + countif("impasse")

Obviously the exact code will be different.

#### Thorin

##### Board Regular
You could try :-

Code:
``=COUNTIF(A4:A11,"settled")+COUNTIF(A4:A11,"impasse")``

#### shekhar_pc

##### Board Regular
Try =COUNTIF(A1:IV1,"settled")+COUNTIF(A1:IV1,"impasse")

If the above does not work, can you put a sample data?

Replies
8
Views
391
Replies
1
Views
202
Replies
19
Views
598
Replies
1
Views
122
Replies
8
Views
2K

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,152,100
Messages
5,768,097
Members
425,453
Latest member
bince

### 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