ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   count if gone past today (https://www.excelbanter.com/excel-discussion-misc-queries/58044-count-if-gone-past-today.html)

JonnieP

count if gone past today
 
Hi

I have a large spreadsheet that i use to track works that have an expiry
date, which is always in a specific column, and i need to count how many jobs
have gone over that date.

So far I have a countif statement that allows me to see the jobs that are a
maximum of 7 days past today(due to restrictions in the amount of statement i
can use). So, for example =COUNTIF('sheetname'!H:H,(TODAY())-1) and then -2,
-3 etc.

I'm sure there is an easy way of doing this and will not be limited to 7
days, so please help.
Thanks

John

bpeltzer

count if gone past today
 
You can use comparison operators in the countif: =countif(h:h,"=" &
today()-7)

"JonnieP" wrote:

Hi

I have a large spreadsheet that i use to track works that have an expiry
date, which is always in a specific column, and i need to count how many jobs
have gone over that date.

So far I have a countif statement that allows me to see the jobs that are a
maximum of 7 days past today(due to restrictions in the amount of statement i
can use). So, for example =COUNTIF('sheetname'!H:H,(TODAY())-1) and then -2,
-3 etc.

I'm sure there is an easy way of doing this and will not be limited to 7
days, so please help.
Thanks

John


Roger Govier

count if gone past today
 
Hi Jonnie

I don't really understand why you are limited in the amount of statements,
but anyway, one way round it would be to put the number of days overdue in a
cell, e.g. A1
Change formula to
=COUNTIF('sheetname'!H:H,(TODAY())-A1)
As you change the value in A1, so the count will vary.

Regards

Roger Govier


JonnieP wrote:
Hi

I have a large spreadsheet that i use to track works that have an expiry
date, which is always in a specific column, and i need to count how many jobs
have gone over that date.

So far I have a countif statement that allows me to see the jobs that are a
maximum of 7 days past today(due to restrictions in the amount of statement i
can use). So, for example =COUNTIF('sheetname'!H:H,(TODAY())-1) and then -2,
-3 etc.

I'm sure there is an easy way of doing this and will not be limited to 7
days, so please help.
Thanks

John



All times are GMT +1. The time now is 12:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com