Help with Countif formula

willow1985

Well-known Member
Joined
Jul 24, 2019
Messages
888
Office Version
  1. 365
Platform
  1. Windows
I have the below formula, I must be having an off day as I cannot see what I entered incorrectly.

I want the formula to count all the cells with values in column A (all of which are numbers) only if the corresponding column D does not have the text "Completed"

My formula is still is counting all values in column A whether the cell beside in Column D has the word "completed" or not.

Thank you to anyone who can help a tired girl out ;)

=COUNTIFS('Manual Log'!$A3:$A1000000,"<>",'Manual Log'!$D3:$D1000000,"<>""Completed")
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Nevermind. Brain just kicked into gear:

=COUNTIFS('Manual Log'!$A3:$A1000000,"<>",'Manual Log'!$D3:$D1000000,"<>*Completed*")

Thank you to anyone who wasted their time on this post ?
 
Upvote 0
Actually..... if the word "Completed" was a cell reference like E1, how would that be written?

=COUNTIFS('Manual Log'!$A3:$A1000000,"<>",'Manual Log'!$D3:$D1000000,"<>*E1*")
=COUNTIFS('Manual Log'!$A3:$A1000000,"<>",'Manual Log'!$D3:$D1000000,"<>E1")

Both do not work
 
Upvote 0
You can write it as:

=COUNTIFS('Manual Log'!$A3:$A1000000,"<>",'Manual Log'!$D3:$D1000000,"<>*"&E1&"*")

or even

=COUNTA('Manual Log'!$A3:$A1000000)-COUNTIF('Manual Log'!$D3:$D1000000,"*"&E1&"*")
 
Upvote 0

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

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