+ Reply to Thread
Results 1 to 26 of 26

Need Help with formula showing Expiring Dates And targets that are met

  1. #1
    Registered User
    Join Date
    01-16-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    15

    Need Help with formula showing Expiring Dates And targets that are met

    Hello Everyone,
    I hope you can help me. I been wracking my brain trying to get this working but have hit a brick wall.

    My problem is as follows. (I will try to keep it simple)

    I have a date in Cell A1 (Target Date) where i need to recieve 2 documents
    Cell A2 is for the date i recieve Document 1
    Cell A3 is for the date i recieve Document 2

    I want cell A1 to highlight yellow if it is due to expire in less than 5 days
    I want cell A1 to highlight red if the date has expired
    Now the issue i have is getting Cell A1 to remain "Unformatted" if the dates in A2 & A3 are less than the target date (Cell A1)

    At the moment when the date expires it goes red even if the target is met in Cell A2 & A3.

    PLEASE HELP!!!!!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need Help with formula showing Expiring Dates And targets that are met

    At the moment when the date expires it goes red even if the target is met in Cell A2 & A3
    Please post your A1 cell Conditional Formatting Formula for modification.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    01-16-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Need Help with formula showing Expiring Dates And targets that are met

    Condition 1 = Cell Value Is Between =TODAY()+1 And =TODAY()+5 This will highlight the cell Yellow
    Condition 2 = Cell Value Is Less Than or Equal To =TODAY() This will highlight the cell Red
    Condition 3 = Formula Is =IF(A2<A1,A3<A1) this will remain unformatted

    I am using the Conditional formatting function in Excel 2003

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,444

    Re: Need Help with formula showing Expiring Dates And targets that are met

    replace =IF(A2<A1,A3<A1) with
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-16-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Need Help with formula showing Expiring Dates And targets that are met

    This does not work, The cell A1 now highlights red if empty

  6. #6
    Registered User
    Join Date
    01-16-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Need Help with formula showing Expiring Dates And targets that are met

    Also, I have tested the formula and the following occured:
    The date in A1 = 15/01/13
    The date in A2 = 14/01/13
    The date in A3 = 14/01/13

    Cell A is highlighted red even tho the criteria in A2 & A3 have been met

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need Help with formula showing Expiring Dates And targets that are met

    May be this...

    First Condition Formula For highlighting in YELLLOW
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Second Condition Formula For highlighting in RED
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-16-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Need Help with formula showing Expiring Dates And targets that are met

    Ok, this now fixes the issue of the blank cell being highlighted in red but does not solve the issue with the criteria being met. (Explained below)

    Cell A1 = 15/01/13
    Cell A2 = 16/01/13
    Cell A3 = 16/01/13
    Using the above criteria, Cell A1 remains unformatted. where it should be RED as the Criteria in A2 & A3 has failed the target date in A1
    If i change the date in Cell A1 to the 18/01/13 the cell remains unformatted where is should have gone Yellow to highlight the date is within 5 days of target
    If I change the date in cell A1 to the 15/01/13 (Yesterday) the cell goes RED which is correct as the target date has been missed.

    Hope this testing helps? Would it help if i uploaded my testing sheet?

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need Help with formula showing Expiring Dates And targets that are met

    It's working fine for me refer the attached screenshot.

    CF.JPG

  10. #10
    Registered User
    Join Date
    01-16-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Need Help with formula showing Expiring Dates And targets that are met

    Thanks for that, However, Cell A1 is still yellow even tho the criteria has been met in A2 & A3. If A2 & A3 are less than A1 the cell needs to remain unformatted.
    using your formula, if you was to change the date of cell A1 to a date in the past, then Cell A2 & A3 to a date prior to this, would A1 go Red? or would it remain unformated as required?

    Sorry to be a pain. I really appreciate all our help.

  11. #11
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need Help with formula showing Expiring Dates And targets that are met

    Ok.. then use the below one for First Condtions...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    01-16-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Need Help with formula showing Expiring Dates And targets that are met

    Thanks for this, It has resolved a couple of the issues but there is still 2 errors i have found.

    If the date in A1 has expired and the dates in A2 & A3 have not met the target date, it currently remains unformatted
    Also, If Cell A1 is in the future and the dates in A2 & A3 are in the past, the cell highlights Yellow when it should be unformatted as the dates in A2 & A3 have met thier target.

    The cell does correctly highlight red if the date has expired and A2 & A3 have not both been entered.
    and it does correctly highlight yellow if as above, A2 & A3 have not been entered and is witin 5 days.

    Hope this helps?

  13. #13
    Registered User
    Join Date
    01-16-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Need Help with formula showing Expiring Dates And targets that are met

    I have carried out a few tests so you can see the outcome.
    Hope this helps
    formula examples.jpg

  14. #14
    Registered User
    Join Date
    01-16-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Need Help with formula showing Expiring Dates And targets that are met

    Been experimenting with the formulas but still unable to get this to work.
    If I could just get it to work with one criteria instead of 2 that would be a help but I cnt get that to work either.
    I hope someone can help.

  15. #15
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need Help with formula showing Expiring Dates And targets that are met

    I am back again

    Can you please attach an excel file instead of image?

    Please add some example dates in other column and the expected color to be notified, so that it will be easier for everyone to work on it and suggest you the exact solution instead of going one by one with lengthy thread.

  16. #16
    Registered User
    Join Date
    01-16-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Need Help with formula showing Expiring Dates And targets that are met

    Hiya,

    The actual Spreadsheet I am using is quite extensive so have ripped out just the parts i am struggling with (See attached)

    Column C is my Target Date. I want this to use a simple traffic light system to stay unformated if more than 30 days away, Yellow if less than 30 days away and RED if date is past. However, if my survey is recieved (Column M) before the target date I would like it to remain unformatted,

    Column E is autopopulated with a date 14 days (equal to 10 working days) after Column D. I would like Column E to follow the traqffic light system as above but if the documents in Column F & G are recieved before the date expires in column E, I would like Column E to remain unformatted.

    Sorry if I have confused anyone. I was trying to keep things simple.
    eVTC Tracker (Used for Testing).xls

  17. #17
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need Help with formula showing Expiring Dates And targets that are met

    Column C should be arrived based on?

    Please you are very much aware of your methods, but we don't know it until and unless you describe it clearly

  18. #18
    Registered User
    Join Date
    01-16-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Need Help with formula showing Expiring Dates And targets that are met

    Im a little confused what you mean?
    Column C (My target date) is dependant on Column M arriving before the target date.

    I have actually asked two questions in my previous post
    Question 1:
    Column C is my Target Date. I want this to use a traffic light system More than 30 days = Unformated, If less than 30 days = Yellow, And RED if date is past.
    However, if my survey is recieved (Column M) before the target date (Column C) I would like it to remain unformatted,

    Question 2:
    Column E is autopopulated with a date 14 days (equal to 10 working days) after Column D. I would like Column E to follow the same traffic light system as above but if the documents in Column F & G are recieved before the date in Column E then I would like Column E to remain unformatted.

    Does this help clear things up?

  19. #19
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Need Help with formula showing Expiring Dates And targets that are met

    are you using TODAY() as the comparison for the days, or do you have a cell to compare it to?
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  20. #20
    Registered User
    Join Date
    01-16-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Need Help with formula showing Expiring Dates And targets that are met

    I do use the Today() function. I have also hidden the =TODAY() in Cell A1 in case i need to use it.
    The main problem i have is when my target date is met. the Target date still goes yellow & red.

  21. #21
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Need Help with formula showing Expiring Dates And targets that are met

    this is hard to check as you have no data that mimics the conditions you are trying to highlight, the C column dates do fall into the range, but the survey received(column M) makes them fall into the don't highlight, so there is no way of verifying that the formulas are working, I could change them, but it's late, and I am tired..if you could upload a workbook that actually has a few dates that meet the requirements to be highlighted, that would be great !

  22. #22
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Need Help with formula showing Expiring Dates And targets that are met

    perhaps they are working, as the two target dates are well after the survey received dates, so should not be highlighted, and are not, but without some negative data to check, I cannot be sure they are working properly..

  23. #23
    Registered User
    Join Date
    01-16-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    15

    Smile Re: Need Help with formula showing Expiring Dates And targets that are met

    As requested, I have uploaded a new copy of the workbook showing different scenarios all using the same formula.
    To keep things really simple. I am only asking for a resolution to Question 1 (Detailed in my previous post)

    I have written my findings in a comments field. Please check the forumla i have used in column C and please play around with it if it helps fix my problem.

    Once again, many thanks for all your help and comments.
    eVTC Tracker (Used for Testing).xls

  24. #24
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Need Help with formula showing Expiring Dates And targets that are met

    for your shortened version : eVTC Tracker (Used for Testing) .sol1.xls
    for the original : eVTC Tracker (Used for Testing).sol2.xls

    Note- I removed all the other formatting to allow easier following/editing of your requirements

    Hope this helps

  25. #25
    Registered User
    Join Date
    01-16-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Need Help with formula showing Expiring Dates And targets that are met

    Amazing job!! Many Many Thanks to everyone's helps and Dredwolf for finding the solution!!

  26. #26
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Need Help with formula showing Expiring Dates And targets that are met

    You are welcome

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1