+ Reply to Thread
Results 1 to 9 of 9

Time and Date Forumla Issues

Hybrid View

  1. #1
    Registered User
    Join Date
    07-16-2013
    Location
    aberdeen
    MS-Off Ver
    Excel 365
    Posts
    20

    Time and Date Forumla Issues

    I am trying to create a maintenance excel sheet where I have a date and time in one cell then depending on the time of the task add it from the other cell. I can add it no problem if it was just 4 days. i.e 27/04/2013 13:43 + 2 days = 29/04/2013 13:43. However it is trying to add it when it comes to minutes and hours that I am having trouble with as the Cells that have the duration they have to resolve the maintenance is just a number. I have attempted various things but I cannot get anywhere.

    Can anyone else at all please?

    Thank you.

    Trying to get the answer from Collum f + collum h = collum j

    Maintenance Example Forum.xls

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Time and Date Forumla Issues

    Hi,

    Try:

    =F3+LEFT(H3,FIND(" ",H3)-1)/LOOKUP(MID(H3,FIND(" ",H3)+1,255),{"day","days","hours","minutes"},{1,1,24,1440})

    Regards
    Click * below if this answer helped

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

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Time and Date Forumla Issues

    Put real day/time values in column F on the allocation & codes sheet.
    F2 = 14
    F3 = 4:00:00
    F4 = 1:30:00
    F5 = 7
    F6 = 1
    F7 = 5:00:00

    Then on the Log sheet, J3 formula is
    =F3+VLOOKUP(H3,'Allocation & Codes'!$E$2:$F$7,2,FALSE)

  4. #4
    Forum Contributor
    Join Date
    08-08-2005
    Location
    Kansas, USA
    MS-Off Ver
    2016
    Posts
    293

    Re: Time and Date Forumla Issues

    Try this:

    =F3+(LEFT(H3,FIND(" ",H3)-1)/(24*60))

    Assuming that H3 is always expressed in minutes

  5. #5
    Registered User
    Join Date
    07-16-2013
    Location
    aberdeen
    MS-Off Ver
    Excel 365
    Posts
    20

    Re: Time and Date Forumla Issues

    Works really well only thing I am wondering is can you put it into working hours MOnday to Friday 9:00am - 5:00pm so it will take inco consideration working hours and days?


    Regards


  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Time and Date Forumla Issues

    Hi,

    Not sure I understand what you mean. Could you give a few examples with your expected results, or, better still, post these examples in your attached?

    Regards

  7. #7
    Registered User
    Join Date
    07-16-2013
    Location
    aberdeen
    MS-Off Ver
    Excel 365
    Posts
    20

    Re: Time and Date Forumla Issues

    Copy of Maintenance Example Forum.xlsHi XOR LX,

    If you look at the attached spreadsheet it has your formula in column J as the resolve time which works it out great expect i was wondering if you could put the results in column J to work out the resolve time between Monday - Friday 9:00am 6:00pm as its a maintenance spreadsheet and we done work past 5:30pm and we dont work the weekends to the fact that column J arrives at a resolve time of after them days/hours it doesnt work.

    Thank you again for ur help.

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Time and Date Forumla Issues

    Ok, thanks. But what I was really hoping for - and which would be very useful - was for you to re-upload your workbook with several more examples, including where and why the current solution fails and, if so, what the correct result should be.

    Regards

  9. #9
    Registered User
    Join Date
    07-16-2013
    Location
    aberdeen
    MS-Off Ver
    Excel 365
    Posts
    20

    Re: Time and Date Forumla Issues

    Copy%20of%20Maintenance%20Example%20Forum(1).xls Please see attached with what you asked for. Sorry I am not very good at explaining myself sometimes.

    I have put some text in to describe what we require and some examples with comments in so show what the answer should be.

    Thank you again for all your help.

    Regards

    Randomfluky

+ 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. [SOLVED] Date and Time issues in Excel 2013
    By sjsmith in forum Excel General
    Replies: 1
    Last Post: 01-15-2013, 03:28 PM
  2. Date and Time Issues
    By ScottL in forum Excel General
    Replies: 1
    Last Post: 11-29-2011, 02:07 PM
  3. Date and Time issues
    By Kypsis in forum Excel General
    Replies: 2
    Last Post: 12-02-2010, 04:16 PM
  4. IF forumla for time
    By Leigh Ann in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-23-2005, 02:06 PM
  5. Time & Date format issues
    By amblipo in forum Excel General
    Replies: 0
    Last Post: 01-05-2005, 06:47 PM

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