How do I create a Countifs using both "not equal to" and LEFT or RIGHT functions?

thp510

Board Regular
Joined
Oct 19, 2015
Messages
110
Office Version
  1. 365
Platform
  1. Windows
I have a list of dates on a single column (column A below) that tell me the start date and the termination date and a list of boy or girl on a single column (column B below). So the data looks like this:



AB
1Jan 2023Boy
2Feb 2023Girl
3March 2023Girl
4Feb 2023Boy
5Term March 2023Boy
6Term Jan 2023Boy
7Feb 2023Girl


There are hundreds of rows like this. I want to find a countifs function that can Count how many boys or girls there are that are NOT termed. Here's what I tried but it doesn't seem to work.

To count number of boys that are not termed: =COUNTIFS(LEFT(A:A, 4), "<>Term", B:B, "Boy")

Unfortunately this is erroring out. Any idea what I can do instead?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
=COUNTIFS(A:A,"Term*",B:B,"Boy")
Hi Herakles. I'm trying to count the number of boys that do not have the word term in front of their date. Would I just then do, =countifs(A:A, "<>Term*", B:B, "Boy")?
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,212
Members
452,618
Latest member
Tam84

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