Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default CONDITIONAL FORMATTING OR AN 'IF' STATEMENT?

I have a spreadsheet with the following columns:
Col A €“ Date completed
Col B €“ Status
Col c €“ Scheduled start Date
Col D €“ Scheduled Finish Date

Information for column c and d is copied weekly into my spreadsheet from
another application. I would data entry the dates of the completed work into
column A. in the column B €“ status, I want any of the following to appear
based on certain criteria €“ ON TIME, OUT OF SPEC, OR OVERDUE for the dates in
the Date Completed column.
Now the criteria is as follows: the date in Column A is considered on time
if it is completed with the date range of the Scheduled Start Date and the
Scheduled finish Date + or €“ 5 days on either end. It would be considered
Out of Spec if it were completed outside of this range. And if there isnt
any date entered in Column A and todays date is past the scheduled finish
date, I would like it to show as Overdue.

Can anyone help me with this? I am not very experienced with any kind
programming.

  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default CONDITIONAL FORMATTING OR AN 'IF' STATEMENT?

Assuming data in row2 down, with real, unambiguous dates
entered/copied into cols A, C and D

Place in B2:
=IF(AND(A2="",C2="",D2=""),"",IF(AND(A2="",D2<"", TODAY()D2),"Overdue",IF(AND(COUNT(A2,C2:D2)=3,A2 =C2-5,A2<=D2+5),"On Time","Out Of Spec")))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Carla" wrote:
I have a spreadsheet with the following columns:
Col A €“ Date completed
Col B €“ Status
Col c €“ Scheduled start Date
Col D €“ Scheduled Finish Date

Information for column c and d is copied weekly into my spreadsheet from
another application. I would data entry the dates of the completed work into
column A. in the column B €“ status, I want any of the following to appear
based on certain criteria €“ ON TIME, OUT OF SPEC, OR OVERDUE for the dates in
the Date Completed column.
Now the criteria is as follows: the date in Column A is considered on time
if it is completed with the date range of the Scheduled Start Date and the
Scheduled finish Date + or €“ 5 days on either end. It would be considered
Out of Spec if it were completed outside of this range. And if there isnt
any date entered in Column A and todays date is past the scheduled finish
date, I would like it to show as Overdue.

Can anyone help me with this? I am not very experienced with any kind
programming.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default CONDITIONAL FORMATTING OR AN 'IF' STATEMENT?

Thanks Max, it works ok with the exception if the Finish Date is in the
future. It is putting Out of Spec in the status cell where it should just be
blank. How do I fix this?

"Max" wrote:

Assuming data in row2 down, with real, unambiguous dates
entered/copied into cols A, C and D

Place in B2:
=IF(AND(A2="",C2="",D2=""),"",IF(AND(A2="",D2<"", TODAY()D2),"Overdue",IF(AND(COUNT(A2,C2:D2)=3,A2 =C2-5,A2<=D2+5),"On Time","Out Of Spec")))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Carla" wrote:
I have a spreadsheet with the following columns:
Col A €“ Date completed
Col B €“ Status
Col c €“ Scheduled start Date
Col D €“ Scheduled Finish Date

Information for column c and d is copied weekly into my spreadsheet from
another application. I would data entry the dates of the completed work into
column A. in the column B €“ status, I want any of the following to appear
based on certain criteria €“ ON TIME, OUT OF SPEC, OR OVERDUE for the dates in
the Date Completed column.
Now the criteria is as follows: the date in Column A is considered on time
if it is completed with the date range of the Scheduled Start Date and the
Scheduled finish Date + or €“ 5 days on either end. It would be considered
Out of Spec if it were completed outside of this range. And if there isnt
any date entered in Column A and todays date is past the scheduled finish
date, I would like it to show as Overdue.

Can anyone help me with this? I am not very experienced with any kind
programming.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default CONDITIONAL FORMATTING OR AN 'IF' STATEMENT?

Try this revision in B2, copied down:
=IF(AND(A2="",C2="",D2=""),"",IF(AND(A2="",D2<"", TODAY()<=D2),"",IF(AND(A2="",D2<"",TODAY()D2),"O verdue",IF(AND(COUNT(A2,C2:D2)=3,A2=C2-5,A2<=D2+5),"On Time","Out Of Spec"))))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Carla" wrote:
Thanks Max, it works ok with the exception if the Finish Date is in the
future. It is putting Out of Spec in the status cell where it should just be
blank. How do I fix this?


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
Can I use an if statement within the conditional formatting tool? Jen Excel Discussion (Misc queries) 2 October 19th 06 10:17 PM
If Statement/Conditional Formatting JS Excel Worksheet Functions 3 June 29th 06 04:50 PM
Conditional Formatting Using If Statement On Opening Of Workbook Bill Foley Excel Worksheet Functions 11 October 19th 05 11:18 PM
=IF Statement formula or conditional formatting Abi Excel Worksheet Functions 6 January 18th 05 01:06 PM
Conditional formatting based on if statement. kevin Excel Worksheet Functions 2 January 12th 05 03:07 AM


All times are GMT +1. The time now is 05:30 PM.

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"