I think your verbal description isn't matching your file attachment.
 
"I need to countdown the number of days remaining on column D (Due Date 
Extended)"
Column E is (Due Date Extended)
The values in column D are not always dates.
 
If you mean to count the number of days until the date in the column "Due Date 
Extended", then:
 
Calculating the difference between two dates is easy in Excel, because dates 
are numbers.
(the number of days since 1/1/1900)
 
So, 23-Sep-2014 is 41905
 
So, using =E3-TODAY() will give you the number of days from today to the date 
in E3.
(
If the number is negative, the date has passed)

Next:

your requirement #1:
1. Column E should show up as Ok if status is complete or cancelled in Column H 
(Status)

you can can test if the value in H is Cancelled or Completed by using:
IF(OR(H3="Completed",H3="Cancelled"),"OK","")

requirement #2:
to test if the date is overdue, use:
IF(E3-TODAY()<=0,"OVERDUE","")

Combine the two to test if the status is complete, or cancelled,
then test to see if the date is past due use:

=IF(OR(H3="Completed",H3="Cancelled"),"OK",IF(E3-TODAY()<=0,"OVERDUE",""))


hope this helps.

Paul
-----------------------------------------
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-----------------------------------------

 From: Shamugam Pillai <shamugam...@gmail.com>
>To: excel-macros@googlegroups.com 
>Cc: sjbos...@hotmail.com 
>Sent: Wednesday, October 1, 2014 10:32 PM
>Subject: $$Excel-Macros$$ Countdown Date to target date
>  
>
>
>Hi Guys,
>
>
>I have a file which I need to countdown the number of days remaining on column 
>D (Due Date Extended) to show up in Column E Days remaining. Will be great if 
>can code the following as well. I have put up some conditional formatting on 
>the status column to highlight rows in different colors for the various status.
>
>
>1. Column E should show up as Ok if status is complete or cancelled in Column 
>H (Status)
>2. If days remaining has reached but status is still on pending, Column E 
>should show up as "Overdue"
>
>
>Thanks
>Sham
-- 
>Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
>=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
>https://www.facebook.com/discussexcel
> 
>FORUM RULES
> 
>1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
>Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
>quick attention or may not be answered.
>2) Don't post a question in the thread of another member.
>3) Don't post questions regarding breaking or bypassing any security measure.
>4) Acknowledge the responses you receive, good or bad.
>5) Jobs posting is not allowed.
>6) Sharing copyrighted material and their links is not allowed.
> 
>NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
>members are not responsible for any loss.
>--- 
>You received this message because you are subscribed to the Google Groups "MS 
>EXCEL AND VBA MACROS" group.
>To unsubscribe from this group and stop receiving emails from it, send an 
>email to excel-macros+unsubscr...@googlegroups.com.
>To post to this group, send email to excel-macros@googlegroups.com.
>Visit this group at http://groups.google.com/group/excel-macros.
>For more options, visit https://groups.google.com/d/optout.
>
>
>    

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Reply via email to