Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Grouping Dates

A cell with today's date doesn't help too much, since you can always get
today's date with the NOW() function. What we need is some date associated
with the entry itself, such as the date the Incident took place ... but there
is a problem with that which I'll discuss in a minute. Much better would be
a "Due Date" entry and/or a Completed Date entry.

Lets say that you have the date of the incident in column A, then a formula
like this will tell you how much overdue they are (assumes we're working on
row 2) :
=INT(NOW()-A2) & " days overdue"
a more general formula to cover larger periods:
=IF(NOW()-A260,"over 60",IF(NOW()-A230,"over 30",""))
You could nest more IF statements to break it down finer as:
=IF(NOW()-A260,"over 60",IF(NOW()-A230,"over 30",IF(NOW()-A220,"over
20",IF(NOW()-A210,"over 10","overdue"))))
[that would not have a line break in it when put into a cell]

THE PROBLEM: If all you have is today's date and the date the incident took
place, then each incident is only going to get older with passing time.
You're never able to exclude an incident because you are done with it -
there's no way to tell when you're finished with it. And maybe that's ok, if
all you want to know is how old it is.

So lets say that in column C you would enter a "date completed" date for an
incident, or you'd leave it empty for incidents you're not done with. Then a
general formula to test if you're done with one or not would be:
=IF(C2="","not a date","is a date")
and we can modify that with the earlier formula to tell you if an incident
is completed, or if not, how overdue it is (based on original entry date in
column A)

=IF(C2="",IF(NOW()-A260,"over 60",IF(NOW()-A230,"over
30",IF(NOW()-A220,"over 20",IF(NOW()-A210,"over
10","overdue")))),"Completed")

If you took it a step further and had a "Due Date" in column B, then you
could rewrite that last formula like this:
=IF(C2="",IF(B2<NOW(),IF(NOW()-B260,"over 60",IF(NOW()-B230,"over
30",IF(NOW()-B220,"over 20",IF(NOW()-B210,"over
10","overdue")))),""),"Completed")

This last one would show empty cell if it wasn't overdue or completed, will
show "Completed" if it has been completed, and will show timeframe overdue
for all others.

Hope this helps some.

"bluesifi" wrote:

I have a cell that contains todays date, and I want to base overdue report on
todays date.

"JLatham" wrote:

Do you have columns showing Date Due or at least Date Completed? It would
really help if we knew what columns have what dates in them.

"bluesifi" wrote:

I have a spreadsheet of incidents, and am trying to perform trends on this.
The spreadsheet has Incident Details with dates raised.

I want to do a deliquency report which shows incidents overdue by teams,
based on dates, ie 0-10 days overdue, 11-30 days etc.

The sheet has a couple of thousand records, and I do not really want to
manually group all these, so that I can then do a Pivot based on this.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PIVOT TABLE - GROUPING DATES FARAZ QURESHI Excel Discussion (Misc queries) 1 April 30th 08 01:26 PM
Grouping Dates in a Pivot Table mike Excel Worksheet Functions 1 May 9th 07 12:43 PM
Grouping DATES in a pivot tables Peter Excel Discussion (Misc queries) 1 April 17th 07 09:04 PM
Grouping DAtes in Pivot Tables berby65 Excel Discussion (Misc queries) 4 December 1st 06 11:52 PM
Grouping Dates in Pivot tables Andy M Excel Discussion (Misc queries) 8 March 26th 05 05:01 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"