+ Reply to Thread
Results 1 to 19 of 19

Using Today() and making it Static based on a particular condition. Part-II

Hybrid View

Guest Using Today() and making it... 05-30-2008, 05:49 AM
royUK The Functions are not used in... 05-30-2008, 06:02 AM
Guest Some more info..! 05-30-2008, 06:20 AM
royUK You just need to build a... 05-30-2008, 06:24 AM
Guest ?????????????????? 05-30-2008, 06:42 AM
Simon Lloyd Check out the code in the... 05-30-2008, 07:51 AM
Simon Lloyd Slight mistake in attachment,... 05-30-2008, 08:11 AM
  1. #1
    all4excel
    Guest

    Using Today() and making it Static based on a particular condition. Part-II

    I have started a New thread as the previous thread was closed.

    http://www.excelforum.com/showthread.php?t=645281

    Using Today() and making it Static based on a particular condition.


    Roy,

    Its not working in the cell G2 and H2

    [ =IF(ISBLANK($F2),"",IF($F2="Completed",staticdate(),TODAY())) ]

    [ =IF(ISBLANK($F2),"",IF($F2="Completed",statictime(),NOW())) ]

    As explained earlier there are three things in the dropdown in Column F in the Sheet "Sarah".

    The Column F has a Drop-down with three options
    1. Default Blank Option
    2. In Progress ---It will lead to TODAY() in Column G and NOW() in Column H
    3. Completed

    Kindly explain in details as to how to use this function in other Workbooks in Details.

    Please reply ...!
    Attached Files Attached Files
    Last edited by VBA Noob; 05-30-2008 at 08:41 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    The Functions are not used in those cells.

    Column H is headed actual time, from this I would expect the time to change.

    Column G has no formula & appeared to be a simple date input.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    all4excel
    Guest

    Question Some more info..!

    The date and time in the columns G and H are based on the values in the dropdown menu.

    Is it the UDf is designed to be used in the column B based on a Blank value in Column A.?

    If Im selecting "Completed" in the Column F then the time should not change the next date, the way you have made static date and same fpr the date so that then I can take the exact total time taken for the task..

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You just need to build a formula that checks F2 & uses the UDFs

    In G2

    =IF(F2="Closed",staticdate(),"")

    In H2

    =IF(F2="Closed",statictime(),"")

  5. #5
    all4excel
    Guest

    Smile ??????????????????

    Quote Originally Posted by royUK
    You just need to build a formula that checks F2 & uses the UDFs

    In G2

    =IF(F2="Closed",staticdate(),"")

    In H2

    =IF(F2="Closed",statictime(),"")
    I have tried this but its not working, the result doesn't remain static.

    Its not working in the cell G2 and H2

    [ =IF(ISBLANK($F2),"",IF($F2="Completed",staticdate( ),TODAY())) ]

    [ =IF(ISBLANK($F2),"",IF($F2="Completed",statictime( ),NOW())) ]

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    F" does not have Completed as an option. Your formulas work when you change it to Closed

  7. #7
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Check out the code in the worksheet module for sarah it will do what you want without formula!
    Attached Files Attached Files
    Not all forums are the same - seek and you shall find

  8. #8
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Slight mistake in attachment, this one works perfect!
    Attached Files Attached Files

  9. #9
    all4excel
    Guest

    Question Simon...!

    Quote Originally Posted by Simon Lloyd
    Slight mistake in attachment, this one works perfect!
    Dear Simon,

    This works well only for "Completed" option, however not for "In Progress" or Blank options.

    The three options in the Drop-down...
    1. Blank - = if(isblank(f2),"",

    2. In Progress = I want the normal TODAY() or Now as the time should keep on updating for this selection.

    3. Completed/Closed - The time should be Static


    I would appreciate if you could make the Statictime () and Staticdate() functions work for those columns.

    I reiterate that these UDF's were fine except that it was not working for the dropdowns differently..

+ 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