+ Reply to Thread
Results 1 to 7 of 7

A Date & Time Cell

  1. #1
    Registered User
    Join Date
    12-09-2014
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    80

    A Date & Time Cell

    Hi Al

    I have a spreadsheet with two tabs. Both tabs have a Start Time column but the start time for the 2nd tab is determined by the first tab start time cell.

    All the lines in tab 1 have either "Pre" or "Post" in them which is a criteria that needs to be met for the formula in the 2nd tab start time cell.

    The current formula in the 1st tab on cell S48 is =S47+INT(T47/24)+TIME(T47,0,0)
    S47= the date and time in the cell above
    T47= the hours it takes for production

    The result will come up with a cell looking like 12/06/2017 06:00

    The 2nd tab start time cell must only pick up the lines with "Pre" in them from tab 1 and show the result like the above date and time.

    I have tried an if formula but I couldn't get it to work. Any help would be much appreciated!

    Rgds

    Aarron
    Attached Images Attached Images

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: A Date & Time Cell

    Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff) - and, depending on what browser is being used, some pics dont even show up on the forum

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    12-09-2014
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    80

    Re: A Date & Time Cell

    Hi Ford

    Thanks very much for your reply.

    Attached is a mock workbook with the result I would like too.
    On tab Machine 2 I need a formula that would pick up any line with Criteria Range, "Machine 1 Pre/Post", Criteria, "Pre" and give the result of the Start Time.

    I appreciate any help!

    Rgds

    Aarron
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: A Date & Time Cell

    in cell c2 put =INDEX('Machine 1'!$D$2:$D$9,MATCH("Pre"&B2,'Machine 1'!$B$2:$B$9&'Machine 1'!$C$2:$C$9,0)) and enter as an array with shift control enter

  5. #5
    Registered User
    Join Date
    12-09-2014
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    80

    Re: A Date & Time Cell

    Hi Davsth

    It worked perfectly. Thank you!

    Rgds

    Aarron

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: A Date & Time Cell

    If the question is answered, you should edit the title and mark the thread as solved. glad it worked!

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: A Date & Time Cell

    Quote Originally Posted by davsth View Post
    If the question is answered, you should edit the title and mark the thread as solved. glad it worked!
    No need to edit the title, just use the THREAD TOOLS just above the very 1st post, and mark it SOLVED there

+ 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] Conditional Formatting with Date/Time with Date/Time of another cell
    By jnepsa in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-20-2017, 10:48 AM
  2. Need to separate date/time from a single cell and create a date/time chart
    By slicksilver79 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 06-19-2014, 09:48 PM
  3. Creating a VBA Code for if cell value ='s and Last Time Cell Update Time Date Stamp
    By Sixto2014 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-14-2014, 08:31 PM
  4. modify date time cell to an excel format date time
    By rileyp in forum Excel General
    Replies: 12
    Last Post: 03-24-2013, 08:39 PM
  5. [SOLVED] Extract a time from a cell with date and time stamp and then perform calculations
    By Marcos Aristotelous in forum Excel General
    Replies: 3
    Last Post: 10-31-2012, 04:36 AM
  6. Display the date and time each time the data in a cell range is changed
    By BVZM in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-24-2012, 01:23 PM
  7. Replies: 1
    Last Post: 03-23-2005, 09:06 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