Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Noting Inactivity within a Timeframe.

# Noting Inactivity within a Timeframe

Written by Allen Wyatt (last updated April 4, 2020)
This tip applies to Excel 97, 2000, 2002, and 2003

Graham is a lawyer with several hundred clients. He uses Excel to record time spent on client projects. In column A he notes the client, column B contains the date, column C the start time, and column D the end time. Graham would like to easily identify if he has not done anything for a client for more than three months from the current date.

There are a few ways you can accomplish this task, depending upon the characteristics of the data you are working with. If each client has a single line in the data table then you can use a simple conditional formatting rule to highlight those clients with record dates (column B) older than 90 days. Here's the formula you would use in the rule:

```=(TODAY()-B2)>=90
```

The formula subtracts the date in B2 from today's date, which provides a number of days between the two dates. If it is greater than or equal to 90, then the formula is true and your conditional format is applied.

This approach can be used if there are multiple records for each client, but it may not provide as clear-cut of an indicator as you might like. If you sort the records by client name, you can easily see which records from each client are over 90 days old. But you would then need to visually make a determination whether all the records for a given client are over 90 days so you can determine if you need to close out their account or not.

It may be better to use a different conditional formatting rule if your data table has multiple records per client. The following formula can be applied to all the clients in column A:

```=AND(COUNTIF(\$A\$2:\$A2,\$A2)=COUNTIF(\$A:\$A,\$A2),(TODAY()-B2)>=90)
```

It checks to see if there date is outside the desired 90 days, but it only does so if the current record is the last record for the client in the list.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (7646) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Noting Inactivity within a Timeframe.

##### Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

##### MORE FROM ALLEN

Showing Filter Criteria on a Printout

When you print out a filtered worksheet, you may want some sort of printed record as to what filtering was applied to the ...

Discover More

Sending Printer Commands

If you need to send a command directly to your printer, then you need to use the PRINT field. It allows you to send ...

Discover More

Chapter Numbers in Indexes and TOAs

Word allows you to define prefixes for page numbers. These are often used for chapter or section numbers in a large ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

Understanding Conditional Formatting Conditions

Conditional formatting can be a great way to highlight specific information in your worksheets. This tip explains the ...

Discover More

Conditionally Making a Sound

Need to have a sound played if a certain condition is met? It is rather easy to do if you use a user-defined function to ...

Discover More

Removing Conditional Formats, but Not the Effects

Conditional formatting is very powerful, but at some point you may want to make the formatting "unconditional." In other ...

Discover More
##### Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. Youâ€™ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is three more than 7?

There are currently no comments for this tip. (Be the first to leave your commentâ€”just use the simple form above!)

##### This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.