+ Reply to Thread
Results 1 to 9 of 9

Timestamp Conditional Formating

  1. #1
    Forum Contributor
    Join Date
    02-24-2010
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    195

    Cool Timestamp Conditional Formating

    I'm looking to add some conditional formating to the attahced file. Idealy I would like the formula to take a tamestamp at the time of opening the file and update update all records within the file based on the below statment.

    I was wondering if it is possible to this by a nested If statement within Excel function or would I be better off aproching this in VB?

    I've attached a sample book and the basic logic for the statement I need is.


    Status Case Statement
    If B Is not Null and E is Null Then 'Pending'

    If E is not null
    And 'Now' is Greater then E
    And F is null Then 'OverDue'

    If F is Less than or Equal to E Then 'Complete'



    Fomating Case Statement
    If Status is Pending then 'Orange Font'
    If Status is Overdue and Complete Date is Null then 'Red Font'
    Attached Files Attached Files
    Last edited by TonyforVBA; 07-13-2012 at 12:01 PM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Timestamp Conditional Formating

    Hi

    I believe that we can do this, using gormulas and CF, but....mybe you need to re-look the conditions. What i mean is thet in H7, you wait to sat "Pending" And the Condition for Pending, must be
    Please Login or Register  to view this content.
    F6 IS NOT Null(Empty)

    And condition for "Complete", is this.

    Please Login or Register  to view this content.
    Which is the Corect, because F6 & E6 are same days..
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    02-24-2010
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    195

    Re: Timestamp Conditional Formating

    Thanks for that Fotis,

    I guess my main query is around 'And 'Now' is Greater then E '
    Is it possible for Excel to pick up the current date & time from 'Now' outside of VB?

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Timestamp Conditional Formating

    Yes it is Tony.

    Look here how to do this.

    http://www.mcgimpsey.com/excel/timestamp.html

    So do you still need what you asked for(Formulas &CF) or not any more?

  5. #5
    Forum Contributor
    Join Date
    02-24-2010
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    195

    Re: Timestamp Conditional Formating

    I've almost got the formula sussed for what I need it to do. I've re-attached the work sheet and you will see that the correct Status is being applied in each case. However, I want it so that if there is no record there at all, the formula will return a null.

    I attempted this alteration to the formula within the spreadsheet, but no joy. I'm not overly familiar with the syntax for Excel Formula.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Timestamp Conditional Formating

    One more condition, Tony.

    Please Login or Register  to view this content.
    I also did the CF.

    Is this, works for you?
    Attached Files Attached Files

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Timestamp Conditional Formating

    Apologize.. You use Excel 2003!
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    02-24-2010
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    195

    Re: Timestamp Conditional Formating

    That's spot on Fotis. Thanks for your help with this, your a star!
    Enjoy the weekend!

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Timestamp Conditional Formating

    You are welcome

    Thanks for the feed back and also for reb*.

    Have a nice weekend too!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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