#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jj33002
 
Posts: n/a
Default Date dif


I have a formula that i put in each cell in column B to look at the date
in column A. If the date in column A is more than 30 days previous then
the cell beside it in column B shows "OVERDUE". If it is not then the
cell in column B is left blank. The problem that I am having is that
if there is no date in column A then it still shows "OVERDUE". Is
there any way to prevent this? Here is the formula that I am using.

=IF(DATEDIF(A1,TODAY(),"d")30,"OVERDUE","")

If anyone could help i woild appreciate it.


--
jj33002
------------------------------------------------------------------------
jj33002's Profile: http://www.excelforum.com/member.php...o&userid=30020
View this thread: http://www.excelforum.com/showthread...hreadid=508586

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Date dif

No need for datedif here

=IF(A1="","",IF(TODAY()-A130,"OVERDUE",""))

--
Regards,

Peo Sjoblom

Portland, Oregon




"jj33002" wrote in
message ...

I have a formula that i put in each cell in column B to look at the date
in column A. If the date in column A is more than 30 days previous then
the cell beside it in column B shows "OVERDUE". If it is not then the
cell in column B is left blank. The problem that I am having is that
if there is no date in column A then it still shows "OVERDUE". Is
there any way to prevent this? Here is the formula that I am using.

=IF(DATEDIF(A1,TODAY(),"d")30,"OVERDUE","")

If anyone could help i woild appreciate it.


--
jj33002
------------------------------------------------------------------------
jj33002's Profile:
http://www.excelforum.com/member.php...o&userid=30020
View this thread: http://www.excelforum.com/showthread...hreadid=508586


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jj33002
 
Posts: n/a
Default Date dif


Works great. Thanks for the help.


--
jj33002
------------------------------------------------------------------------
jj33002's Profile: http://www.excelforum.com/member.php...o&userid=30020
View this thread: http://www.excelforum.com/showthread...hreadid=508586

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jj33002
 
Posts: n/a
Default Date dif


I think I figured out a way to do it. I just set the conditional
formatting to change it to a different color when "OVERDUE" appears in
the cell. If there is a better way to do it please let me know. If
not thanks for the help.


--
jj33002
------------------------------------------------------------------------
jj33002's Profile: http://www.excelforum.com/member.php...o&userid=30020
View this thread: http://www.excelforum.com/showthread...hreadid=508586

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
Insert Automatic, Non-Updating Date Stamp Ken Zenachon Excel Discussion (Misc queries) 8 January 18th 06 06:52 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Adding XY days to date in cells satucha Excel Discussion (Misc queries) 1 November 25th 05 08:02 AM
Another Date issue. TimM Excel Worksheet Functions 1 November 17th 05 01:58 AM
Date Math Problem Dkline Excel Worksheet Functions 4 March 4th 05 04:11 PM


All times are GMT +1. The time now is 05:48 AM.

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

About Us

"It's about Microsoft Excel"