Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default If functions and dates

I have a list of dates in column A. These dates are when the next
safety check will (or should) take place. In some cases the safety
checks have been missed and are overdue.

What i would like is some kind of function in column B to state whether
the safety check date is overdue, less than 3 months away, less than 6
months away or more than 6 months away.

I have tried in vain to do this with an IF function. Can someone help?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default If functions and dates


Try this

=IF(A1<NOW(),"OVERDUE",IF(A1<NOW()+90,"LESS 3
MTHS",IF(A1<NOW()+180,"LESS 6 MTHS","MORE 6 MTHS")))

Comparing a date entered in column A with the date/time now and results
in column B

Regards
Special-K


--
Special-K
------------------------------------------------------------------------
Special-K's Profile: http://www.excelforum.com/member.php...fo&userid=7470
View this thread: http://www.excelforum.com/showthread...hreadid=562469

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 430
Default If functions and dates

special K beat me to it, but since I played around with this I'm going to
post my formula anyway. :O)--

I put the following formula in column B: =TODAY()-A1 (You could hide this
column or put this formula in any other blank column.

I then put this formula in column C

=IF(B1<-180,"Over 6 months",IF(B1<-90,"Between 3 and 6
months",IF(B1<0,"Between now and 3 months",IF(B10,"Overdue!",0))))


"spunkyjon" wrote:

I have a list of dates in column A. These dates are when the next
safety check will (or should) take place. In some cases the safety
checks have been missed and are overdue.

What i would like is some kind of function in column B to state whether
the safety check date is overdue, less than 3 months away, less than 6
months away or more than 6 months away.

I have tried in vain to do this with an IF function. Can someone help?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default If functions and dates


Another way,

=IF(TODAY()A1,"Overdue",IF(A1<EDATE(TODAY(),3),"L ess than
3",IF(A1<EDATE(TODAY(),6),"Less than 6","More than 6")))

EDATE requires the Analysis ToolPak to be installed. Go to
ToolsAddIns and select the Analysis ToolPak click Ok.

The difference here is that TODAY is not looking for a time and EDATE
will take into consideration months with 31 days and also less than 30
(feb). 90 or 180 may not truly be a full 3 months or 6 months. e.g.
2/1/2006 - 5/1/2006 is only 89 days but represents 3 months. Not sure
if that matters at all.


HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=562469

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default If functions and dates

Thanks to all that have helped me out it worked like a charm. Thanks a million.

"tim m" wrote:

special K beat me to it, but since I played around with this I'm going to
post my formula anyway. :O)--

I put the following formula in column B: =TODAY()-A1 (You could hide this
column or put this formula in any other blank column.

I then put this formula in column C

=IF(B1<-180,"Over 6 months",IF(B1<-90,"Between 3 and 6
months",IF(B1<0,"Between now and 3 months",IF(B10,"Overdue!",0))))


"spunkyjon" wrote:

I have a list of dates in column A. These dates are when the next
safety check will (or should) take place. In some cases the safety
checks have been missed and are overdue.

What i would like is some kind of function in column B to state whether
the safety check date is overdue, less than 3 months away, less than 6
months away or more than 6 months away.

I have tried in vain to do this with an IF function. Can someone help?


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
If functions for dates if function for remaining days in month Excel Worksheet Functions 2 October 2nd 05 09:31 PM
Need help with HLOOKUP and MATCH functions BEAR94 Excel Worksheet Functions 1 August 12th 05 05:36 AM
Date functions for dates pre-1900 Stephen Larivee Excel Discussion (Misc queries) 2 July 20th 05 08:23 PM
Using Dates in Count functions HWade Excel Worksheet Functions 1 December 6th 04 10:25 PM
worksheet functions with dates Michele Excel Worksheet Functions 3 December 6th 04 06:05 PM


All times are GMT +1. The time now is 09:01 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"