+ Reply to Thread
Results 1 to 3 of 3

Copying Date/Time from CRM from 2 fields then calculate minutes in between

  1. #1
    Registered User
    Join Date
    11-18-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    2

    Copying Date/Time from CRM from 2 fields then calculate minutes in between

    I have been tasked with making a report (that our CRM is unable to do on its own...different topic) that basically does the following:

    I copy/paste record creation date that comes up in this format:

    Please Login or Register  to view this content.
    Then I copy and paste activity on the record that is in these two formats:

    First attempt:
    Please Login or Register  to view this content.
    Second attempt:
    Please Login or Register  to view this content.
    From there I need to be able to show the following (without having to manually add up each of these:

    - Time in minutes between creation, first attempt and second attempt.
    - Ideally I could setup "off-hours" that would not count against this (we close at 6pm until 9am so those aren't counted against; we're closed on Sunday; etc.)

    I've tried all kinds of things but I simply cannot get this to convert into dates and it's taking so much time just to manually do this.

    Any thoughts or at least get me started? I have until Monday AM to have this completed for roughly 1500 entries and manually doing this takes about 1 minute per.

    Thank you in advance!

  2. #2
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copying Date/Time from CRM from 2 fields then calculate minutes in between

    The values you are pasting are probably coming into Excel as text. They did when I pasted them into mine.

    Data Range
    A
    B
    C
    D
    E
    F
    1
    Create
    Thu Jun 29, 2017 9:06am
    42915.37917
    C1: =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(MID(B1,5,LEN(B1)),"am"," am"),"pm"," pm"),"AM", " AM"), "PM", " PM")+0
    2
    1st Att
    MON JUL 10, 2017 1:12PM
    42926.55
    16086
    min
    D2: =(E2-$E$1)*1440
    3
    2nd Att
    MON JUL 10, 2017 1:15PM
    42926.55208
    16089
    min
    D3: =(E3-$E$1)*1440

    Column C is converting the text to Excel date/time numerics, column D is doing the math.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    11-18-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    2

    Re: Copying Date/Time from CRM from 2 fields then calculate minutes in between

    Thank you! This is very helpful. Is there an easy way to omit off-hours and Sundays in this?

+ 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. Calculate working hours between two date/time fields
    By teafan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-09-2014, 07:33 AM
  2. Replies: 1
    Last Post: 12-22-2013, 08:04 AM
  3. [SOLVED] Calculate time with minutes
    By imran91 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-28-2012, 11:33 PM
  4. Want to calculate decimal time from minutes/seconds
    By Maytree in forum Excel General
    Replies: 6
    Last Post: 01-11-2012, 01:37 PM
  5. Replies: 1
    Last Post: 11-02-2011, 06:50 PM
  6. Replies: 1
    Last Post: 11-02-2011, 06:44 PM
  7. Calculate between two date/time fields?
    By camcafe in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-29-2008, 05:04 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