Help with Countif formula

willow1985

Well-known Member
Joined
Jul 24, 2019
Messages
681
Office Version
  1. 2019
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")
 

Some videos you may like

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

willow1985

Well-known Member
Joined
Jul 24, 2019
Messages
681
Office Version
  1. 2019
Platform
  1. Windows
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 😅
 

willow1985

Well-known Member
Joined
Jul 24, 2019
Messages
681
Office Version
  1. 2019
Platform
  1. Windows
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
 

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
10,633
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&"*")
 

Watch MrExcel Video

Forum statistics

Threads
1,122,980
Messages
5,599,160
Members
414,295
Latest member
Dolenhil

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
Top