+ Reply to Thread
Results 1 to 14 of 14

Extract from Date and Time

  1. #1
    Registered User
    Join Date
    08-09-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2016
    Posts
    70

    Extract from Date and Time

    Dear Members,
    I have attach a sheet for ease of reference upon which i need the help from you great people

    The colum A has the complete date and time and what i need is to spread this in a table where it shows month wise and the date wise the hours worked. i have draw the example from coloum B.

    let me know incase of any query.

    thankyou
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Extract from Date and Time

    what does that mean:
    Hours: 8 7 6 8 9 3 6 7

  3. #3
    Registered User
    Join Date
    08-09-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2016
    Posts
    70

    Re: Extract from Date and Time

    this is just sample.
    here i need the actual hours that worked from coloum A on that specified date.
    Last edited by jani.pk; 01-19-2018 at 04:07 AM.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Extract from Date and Time

    It is not clear
    How do you want to count hours?
    last date of month - first date of month?
    more details please....

    prepare real result manually

  5. #5
    Registered User
    Join Date
    08-09-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2016
    Posts
    70

    Re: Extract from Date and Time

    i have attach the sheet.
    Attached Files Attached Files

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Extract from Date and Time

    ok, thanks

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Extract from Date and Time

    Are you able to use PowerQuery (add-in for Ex2010 Pro Plus from MS site)
    and you really want this table horizontal?

  8. #8
    Registered User
    Join Date
    08-09-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2016
    Posts
    70

    Re: Extract from Date and Time

    no it is not necessary in form of horizontal. i have excel 2016 installed.
    it would be more convenient if it is solved from any formula as i am working in my officer where any installation is blocked.
    Last edited by jani.pk; 01-19-2018 at 04:33 AM.

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Extract from Date and Time

    so update your profile about Excel version

    I can do this with PowerQuery, sorry

    maybe someone else will give you formula solution

    btw. Excel 2016 has PowerQuery built-in, so if you have in your office Ex2016 or higher it will not be a problem

    but here is example:
    Attached Files Attached Files
    Last edited by sandy666; 01-19-2018 at 05:18 AM.

  10. #10
    Registered User
    Join Date
    08-09-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2016
    Posts
    70

    Re: Extract from Date and Time

    ok thanks
    can you please guide how can i use power query to get this result.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,194

    Re: Extract from Date and Time

    We do not need 11,000 rows to come up with a solution. In C2, copied across:

    =IFERROR(AGGREGATE(14,6,$A$2:$A$110/(INT($A$2:$A$110/1)=C$1),1)-AGGREGATE(15,6,$A$2:$A$110/(INT($A$2:$A$110/1)=C$1),1),"")

    I deleted most of them to make a sample sheet. Given that you're in France, you'll need ; and not , in the formula
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  12. #12
    Registered User
    Join Date
    08-09-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2016
    Posts
    70

    Re: Extract from Date and Time

    Great Glenn. Superb

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,194

    Re: Extract from Date and Time

    You're welcome and thanks for the rep.

  14. #14
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,448

    Re: Extract from Date and Time

    Jani.pk - please update your forum profile to reflect the version of Excel you are actually using.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.

+ 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. Extract and sum TIME OF DAY from column with date and time info
    By iantix in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-25-2017, 06:36 AM
  2. extract time from date/time for sorting
    By always Stumped in forum Excel General
    Replies: 3
    Last Post: 01-22-2015, 08:20 PM
  3. [SOLVED] Extract time from date and time text string
    By pattem2013 in forum Excel General
    Replies: 5
    Last Post: 09-07-2013, 03:20 AM
  4. How can I extract an undated time value from a date/time field?
    By NPB in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-06-2013, 08:47 AM
  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. Replies: 4
    Last Post: 12-02-2011, 02:41 PM
  7. Replies: 4
    Last Post: 03-23-2010, 12:44 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