+ Reply to Thread
Results 1 to 9 of 9

Time and date formula problems

  1. #1
    Registered User
    Join Date
    01-31-2012
    Location
    CHattanooga, Tn
    MS-Off Ver
    Excel 2007, 2010
    Posts
    8

    Time and date formula problems

    Good Day,

    I am having issues with time formulas and been struggling for two days now. I am good at excel formulas just not time.

    1) subtracting time and dates in the same field and displaying as text. It is the text part that is kicking my butt, I tried this

    A1 B1 c1
    3/3/2014 23:32:00 3/3/2014 23:33:58 =24*(b1-A1) but it gives me the wrong answer :-(


    The next I am having issues with is because I can not get the time displayed as text correctly.

    2) I need to pick out ones in C1 above that is less than 15, >15<30, >30<45, >45<1:00, etc in different columns. The <15 is easy it is the ones that are in between 2 times that i can't get (why I am trying to make the times text)

    I am so stuck it is bad and I am starting to repeat my failures any help or push in the correct direction is greatly appreciated.

    One day I want to understand time and dates in excel. I read and think I understand then this happens :-(.

    Thank you,

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Time and date formula problems

    Hi DABlaylock,

    =B1-A1

    this should give you 01:58 after you format cell C1 Custom and select mm:ss

    A
    B
    C
    1
    3/3/2014 23:32
    3/3/2014 23:33
    01:58
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    01-31-2012
    Location
    CHattanooga, Tn
    MS-Off Ver
    Excel 2007, 2010
    Posts
    8

    Re: Time and date formula problems

    AlKey,

    Thank you for your response and I have tried that and the issue is that method still leaves it in time format. This creates a problem when it is over 24 hours. The display is correct but it is still in AM/PM format which causes problems down the road.

    I think I have solved the time to text issue with =TEXT(LEFT(S2,5),"hh:mm:ss") But still can not break out the data to increments of 0 to 15 min, 15 to 30 min, 30 to 45 min, 45 to 1hr, over 1 hr, over 5 hr, over 10 hr and so on.

    I have attached a spreadsheet to try and give better examples.

    Example.xlsx

    Thank you,

  4. #4
    Registered User
    Join Date
    01-31-2012
    Location
    CHattanooga, Tn
    MS-Off Ver
    Excel 2007, 2010
    Posts
    8

    Re: Time and date formula problems

    I am sorry here is an example that has the formulas that have gotten me this far.

    Thanks

    Example.xlsx

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Time and date formula problems

    You can use this formula to group by 0:15 min increment.

    =ROUNDUP(TEXT(LEFT(C2,5),"[h]:mm:ss")*96,0)/96

  6. #6
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Time and date formula problems

    Hi DABlaylock,

    If you're fine with changing the title/format of E1:L1 in time format (i.e. E1=0:00, F1=0:15, G1=0:30 ... L1=15:00), then you may skip the text conversion and use the following formula (and copy across E2:L362) to achieve your objective.

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin
    Last edited by alvin-chung; 03-05-2014 at 10:13 PM.

  7. #7
    Registered User
    Join Date
    01-31-2012
    Location
    CHattanooga, Tn
    MS-Off Ver
    Excel 2007, 2010
    Posts
    8

    Re: Time and date formula problems

    AlKey and alvin-chung,

    Thank both of you you guys are great and not only solved my problem but you taught me something I will use in the future. I have always said this is the greatest excel forum and it all because of people like the two of you.

    Thank you again

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Time and date formula problems

    You're welcome and thank you for the feedback!

  9. #9
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Time and date formula problems

    Hi DABlaylock, you're welcome and thanks for the reputation


    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 12-19-2013, 06:49 AM
  2. Date and Time Formula problems
    By JakeMann in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-10-2013, 04:26 AM
  3. Date and Time difference problems
    By SilverShifter in forum Excel General
    Replies: 4
    Last Post: 06-21-2006, 07:55 AM
  4. Problems with date time format
    By Jay in forum Excel General
    Replies: 2
    Last Post: 06-07-2006, 01:55 PM
  5. [SOLVED] time and date problems still
    By Michaela in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-07-2005, 02:06 PM

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