+ Reply to Thread
Results 1 to 12 of 12

Convert Time and Date

  1. #1
    Registered User
    Join Date
    11-06-2023
    Location
    Canada
    MS-Off Ver
    MS365
    Posts
    40

    Convert Time and Date

    Hello again! I have a question here. Hope you can help me out with a formula.

    I attached the snapshot.

    Based on the 4th column, I want to put in the

    Anything beyond 18:00 – 23:30 , date convert should be NEXT Day (4/1/2024), but if time is from 1:00 – 12:00, date convert will remain same day. (4/1/2024)

    "Date Convert" “Interval 30 Mins”
    Instead 3/31/2024 should reflect as 4/1/2024 – (23:00 - 00:00)
    4/1/2024 – (3:00 - 3:30)


    can you help me create a formula on this? thank you
    Attached Images Attached Images

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,990

    Re: Convert Time and Date

    A screenshot os of little use. Attach a sample workbook, please. Make sure to add some expected results manually.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,990

    Re: Convert Time and Date

    One guess:

    =IF(--LEFT(D2,2)>=18,B2+1,B2)

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,990

    Re: Convert Time and Date

    Seen, but no reply ...

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,439

    Re: Convert Time and Date

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

  6. #6
    Registered User
    Join Date
    11-06-2023
    Location
    Canada
    MS-Off Ver
    MS365
    Posts
    40

    Re: Convert Time and Date

    Thank you for providing formula. Will try it now.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,990

    Re: Convert Time and Date

    There are TWO suggestions. Please follow the instructions in post #4 to sign off the thread if these work for you.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,990

    Re: Convert Time and Date

    For the time interval, maybe:

    =IF(--LEFT(D2,2)>=18,"03:00-03:30",D2)

  9. #9
    Registered User
    Join Date
    11-06-2023
    Location
    Canada
    MS-Off Ver
    MS365
    Posts
    40

    Re: Convert Time and Date

    this works totally fine. can you explain what does -- stands for?

  10. #10
    Registered User
    Join Date
    11-06-2023
    Location
    Canada
    MS-Off Ver
    MS365
    Posts
    40

    Re: Convert Time and Date

    appreciate your help. thanks a lot. if I may ask? is it okay not to add 1? after +? will it automatically add ?

  11. #11
    Registered User
    Join Date
    11-06-2023
    Location
    Canada
    MS-Off Ver
    MS365
    Posts
    40

    Re: Convert Time and Date

    For the time interval,

    How do you convert it to Philippine Time? this one is in EDT format.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,990

    Re: Convert Time and Date

    I don’t understand your question full of question marks.

    Changing times to another time zone is a different question.

    Mark this thread as SOLVED and start a new one with a SUITABLE TITLE.

    — turns text into a number.

+ 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: 10
    Last Post: 11-25-2021, 09:02 AM
  2. Replies: 2
    Last Post: 02-06-2020, 10:04 AM
  3. Replies: 7
    Last Post: 06-19-2017, 06:10 PM
  4. [SOLVED] Convert Unix Date-time stamp to excel date and/or time columns
    By judikz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2015, 05:46 PM
  5. Convert Julian date/ time to regular date/ time (MM/DD/YYYY HH:MM:SS)
    By dataguy30 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-07-2013, 11:33 AM
  6. [SOLVED] How do I convert imported date/time data to date/time format?
    By andykent99 in forum Excel General
    Replies: 4
    Last Post: 01-03-2013, 07:47 AM
  7. Convert Julian Date/Time (ddd.tttttt) to Calendar Date/Time
    By LindseyW in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-12-2009, 09:30 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