Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Formula Returning Records # of Days from Today in Excel

I have a spreadsheet of employees and each row contains name, hire date,
birthdate, address, etc. The field I'm interested in is the expiration date
of their certification.

I am responsible for obtaining annual re-certification for each employee. I
am not allowed to submit the re-certification until 30 days before it
expires. For instance, if the certification expires 10/01/08 and I submitted
today it would be rejected. I would have to wait until 09/01/08 to submit it.

So what I need is a formula that will return all of the records in the
spreadsheet where the expiration date is less than or equal to 30 days from
today. I want it to automatically calculate from today's date without having
to update anything.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default Formula Returning Records # of Days from Today in Excel

Assume expiration dates are in H2 down. Use this formula in row 2 of a blank
column and copy down

=IF(H2-TODAY()<=30,"x","")

This returns an "x" in the rows of interest. Filter the data by "x"s in this
column

"Pettitte46" wrote:

I have a spreadsheet of employees and each row contains name, hire date,
birthdate, address, etc. The field I'm interested in is the expiration date
of their certification.

I am responsible for obtaining annual re-certification for each employee. I
am not allowed to submit the re-certification until 30 days before it
expires. For instance, if the certification expires 10/01/08 and I submitted
today it would be rejected. I would have to wait until 09/01/08 to submit it.

So what I need is a formula that will return all of the records in the
spreadsheet where the expiration date is less than or equal to 30 days from
today. I want it to automatically calculate from today's date without having
to update anything.

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Formula Returning Records # of Days from Today in Excel

You could try Conditional Formatting, where the names can display in Green
when they're within the 30 day window, and turn Red when they're beyond the
expiration date.

Say names are in Column A from A2 to A50, and exp.dates start in D2.

Select all the names (A2 to A50),
then, in the Menu Bar:
<Format <Conditional Formatting,
Change "Cell Value Is" to "Formula Is",
And enter this:
=AND(D2<"",TODAY()D2)

Click on <Format, and under the Font tab,
choose Bold and Red.

Then, for the second condition, click on <Add,
Change "Cell Value Is" to "Formula Is",
And enter this:
=AND(D2<"",(D2-30)<=TODAY())

Click on <Format, and under the Font tab,
choose Bold and Green.

Names should now display normally if more then 30 days to expiration,
Green if within the 30 day expiration window,
And Red if beyond the expiration date.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Pettitte46" wrote in message
...
I have a spreadsheet of employees and each row contains name, hire date,
birthdate, address, etc. The field I'm interested in is the expiration

date
of their certification.

I am responsible for obtaining annual re-certification for each employee.

I
am not allowed to submit the re-certification until 30 days before it
expires. For instance, if the certification expires 10/01/08 and I

submitted
today it would be rejected. I would have to wait until 09/01/08 to submit

it.

So what I need is a formula that will return all of the records in the
spreadsheet where the expiration date is less than or equal to 30 days

from
today. I want it to automatically calculate from today's date without

having
to update anything.

Thanks!


Reply
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
Count Days more than 180 days prior to today Gregory Day Excel Worksheet Functions 4 March 28th 08 10:16 PM
QUERY FOR TODAY RECORDS shaqil Excel Worksheet Functions 3 May 2nd 07 10:21 AM
Days in a month as of today Daniel Q. Excel Worksheet Functions 2 January 25th 07 07:15 PM
how to use networkdays returning fractions of days (4.3 days) Chris Excel Worksheet Functions 0 October 6th 05 03:19 PM
Formula to count number of days in range which are less than today zooming Excel Worksheet Functions 2 June 21st 05 04:01 PM


All times are GMT +1. The time now is 09:11 PM.

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"