+ Reply to Thread
Results 1 to 8 of 8

Formulas no longer working with date format

  1. #1
    Registered User
    Join Date
    10-18-2011
    Location
    London, England
    MS-Off Ver
    Excel for Mac (16.25)
    Posts
    42

    Formulas no longer working with date format

    Evening everyone,

    I'll jump straight into my problem

    Background

    The company I work for has changed their reporting tool. This has changed the way data is presented in databases and also how data looks after being exported to Excel.

    Issue

    I used to export time stamps from our database to Excel, in the following format (yyyy/mm/dd hh:mm)

    From those time stamps I had the following working formulas for:

    1. Turning a date into an ISO week

    =IFERROR(INT((X366-DATE(YEAR(X366-WEEKDAY(X366-1)+4),1,3)+WEEKDAY(DATE(YEAR(X366-WEEKDAY(X366-1)+4),1,3))+5)/7),"Not Resolved")
    Where column X is the date

    2. Calculating how many hours an issue took to resolve, after being reported (ignoring weekends)

    =IF(WEEKDAY(W366,2)>=6,X366-(INT(W366+8-WEEKDAY(W366,2))+0.25),X366-W366)
    Where column W is the reported date, and column X is the resolved date

    3. Turning a date into an mmmm/yy string

    =TEXT(X366, "mmmm/yy")
    Where X is the date.
    ______________________________________________________________________________________

    Now I have to export time-stamps in the following format dd/mm/yyyy hh:mm (12 hour clock) and none of the above formulas work anymore.

    Question

    How do I get these formulas to work with the new format? i.e. what is it about the change that has screwed ALL my functions?

    Refer to the spreadsheet attached in my second post. The one attached in the original post is not the proper file

    -> Green highlight shows formulas working with old time-stamp format.
    -> Red highlight shows formulas failing with new time-stamp format.
    Attached Files Attached Files
    Last edited by wetbean; 04-05-2012 at 03:36 AM. Reason: Attachment is incorrect, refer to post 3.

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Formulas no longer working with date format

    i dont see any green or red cells, could you be more specific as to where i am looking?
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Registered User
    Join Date
    10-18-2011
    Location
    London, England
    MS-Off Ver
    Excel for Mac (16.25)
    Posts
    42

    Re: Formulas no longer working with date format

    Sorry,

    Proper example provided in this post.

    Kind regards,

    Zak
    Attached Files Attached Files

  4. #4
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Formulas no longer working with date format

    Try these formulas:

    AB - =WEEKNUM(DATEVALUE(LEFT(X368,FIND(" ",X368))))
    AD - =TEXT(DATEVALUE(LEFT(W368,FIND(" ",W368))), "mmmm/yy")
    AE - =TEXT(DATEVALUE(LEFT(X368,FIND(" ",X368))), "mmmm/yy")
    AF - =DATEVALUE(LEFT(X368,FIND(" ",X368)))+TIMEVALUE(TRIM(RIGHT(W368,8)))-DATEVALUE(LEFT(W368,FIND(" ",W368)))+TIMEVALUE(TRIM(RIGHT(W368,8)))

  5. #5
    Registered User
    Join Date
    10-18-2011
    Location
    London, England
    MS-Off Ver
    Excel for Mac (16.25)
    Posts
    42

    Re: Formulas no longer working with date format

    None of those have worked I'm afraid.

    I'm finding it difficult to see what the new format (dd/mm/yyyy hh:mm) can be doing to knock out all my formulas.

  6. #6
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Formulas no longer working with date format

    they are working for me, unless i am missing the objective... have alook at the attached.

  7. #7
    Registered User
    Join Date
    10-18-2011
    Location
    London, England
    MS-Off Ver
    Excel for Mac (16.25)
    Posts
    42

    Re: Formulas no longer working with date format

    Very strange.

    You are not missing the objective at all. For all intents and purposes you have solved my problem but when I try to copy the formulas over to my sheet (My sheet has information that I excluded for public viewing) then the formulas don't work.

    I will investigate and reply/close if I find a solution.

    Thanks

  8. #8
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Formulas no longer working with date format

    sounds good, thank you for the update.

+ 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