How to use countifs statement

suet

Board Regular
Joined
Oct 19, 2005
Messages
56
Hi All

Hope you are all well.

I am trying to work out a formula that will count cells in 2 different columns

I have different dates in the range K7:K79

I have a different statuses in the range L7L79

I need a formula to work out all the dates in the range K7:k79 that are less then today and that also have the status Open in the range L7:L79.

I have tried this formula but it keeps giving me the total amount of rows: =COUNTIFS(K7:K79,"<"&TODAY()+COUNTIFS(L7:L79,"Open"))

Todays date is 17/03/2023. I have 4 rows of information whereby the Due date is before today so need to return the result of 4 but my formula above gives me the total number of rows.

Column K Column L
Due Date Status
24/03/2023 Open
17/03/2023 Closed
14/03/2023 Open
15/03/2023 Open
28/03/2023 Open
19/04/2023 Open
24/01/2023 Open
02/03/2023 Open

Any help would be greatly appreciated.

Regards
Sue
 

Attachments

  • Over TS.JPG
    Over TS.JPG
    35 KB · Views: 3

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi Suet, try
=COUNTIFS(K7:K79,"<"&TODAY(),L7:L79,"Open")
 
Upvote 0
Solution

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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