Countif with dates compared to two cells Sheets

srob93

New Member
Joined
Dec 28, 2020
Messages
14
Platform
  1. Web
Hello I am really hoping someone on here can help, I am a bit of an excel/gsheet newbie...

I am trying to create a TOTAL of actions overdue depending on the date. I have managed to use the COUNTIF function to count the dates that are overdue in column H.

The next step is where I am stuck... is that I need the item to be taken off the total once the item is completed in column I. See attached. E.G. - Now cell H4 has been completed in cell H5 I need cell H37 to drop back down to 5 overdue.

I have tried a few formulas so far but this is the closest I have got...

Is there an extension to the formula I can use? Or perhaps another easier way of achieving this?

Thank you in advance!!
 

Attachments

  • gsheet query.png
    gsheet query.png
    192.3 KB · Views: 15

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi & welcome to MrExcel.

You can use the COUNTIFS function for what you need.
 
Upvote 0
Hi & welcome to MrExcel.

You can use the COUNTIFS function for what you need.
Thank you for your reply.

I have started to use the COUNTIFS but not sure how to end the formula to get what I need ... do you have any suggestions?
 
Upvote 0
What is your current formula?
 
Upvote 0
What is your current formula?
Sorry if you cannot see it on the attached image.

I have got this far... =COUNTIFS(H4:H36, "<="&TODAY())

but need a secondary section to the formula to connect it to the dates incolumn I.

what do you think? Have uploaded the image again for reference.
 

Attachments

  • gsheet query.png
    gsheet query.png
    192.3 KB · Views: 12
Upvote 0
How about
Excel Formula:
=COUNTIFS(H4:H36, "<="&TODAY(),I4:I36,"")
 
Upvote 0
Solution
That works!!!

I am so happy I could cry - have been trying to figure that out forever ? thank you so much!

??????
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

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