CountIF with single non condition

PavithraSubba

New Member
Joined
Jan 23, 2014
Messages
29
I'm trying to count all the values except one value in a column.Column having more than 5 different types of values,except one vlaues i wanna count remaining.The problem is when i use <> it is counting entire excel cells in a column

=COUNTIFS(ReportfromMSSP!I:I,"<>Cancelled").it is returning 1048550.but i'm having only 205 column
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
for 1st one i got 1048548

2nd one,i got 27.

1st includes entire column cells just bcoz of "",when i remove this it shows 112.

my column cells were 205 and it is dynamic
 
Upvote 0
I got result for =SUM(COUNTIFS(ReportfromMSSP!I:I,{"InProgress","On Hold","Completed"}))

but i wanna count blank cells also
 
Upvote 0
I think the easiest way for your question is 1st to create a Table

1) Go to ReportfromMSSP!I1
2) On the Ribbon, Go to Insert --> Table
3) Confirm the range of the data for your table; check "My table has headers" if applicable
4) OK

Now input the following formula
=COUNTIF(Table1[Status],"<>Cancelled")
Table 1 is the Name of the table you have just created
[Status] is the header of the column showing status. Pls change it according to the header name on your table.

Table expands and shrinks automatically when you add new rows/columns or delete existing rows/columns.

Hope it helps.
 
Upvote 0
If you prefer formula still, try this:

=COUNTIF(ReportfromMSSP!$I$2:INDEX(ReportfromMSSP!I:I,MATCH(REPT("z",255),ReportfromMSSP!I:I)),"<>Cancelled")
If you do NOT have header, change I2 to I1.

The dynamic formula (Match(REPT("z"...) is from Aladin too.
http://www.mrexcel.com/forum/excel-questions/67536-last-row-data-formula.html

One limitation: The last entry in the status column cannot be a number, otherwise it won't be counted.
 
Upvote 0

Forum statistics

Threads
1,215,324
Messages
6,124,250
Members
449,149
Latest member
mwdbActuary

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?

Disable AdBlock

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

Disable AdBlock Plus

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
Back
Top