+ Reply to Thread
Results 1 to 7 of 7

Calculate difference if there is a change in certain cell

  1. #1
    Forum Contributor
    Join Date
    06-01-2012
    Location
    va
    MS-Off Ver
    2007
    Posts
    163

    Calculate difference if there is a change in certain cell

    Hi all,

    I was wondering if the following is possible:

    -I want to calculate the time it takes to change "Depts" in the workbook attached.

    Is there a formula I could use that would say if there is a change in the "Dept." column calculate the change in column G?

    I have given the time difference formula I would like to use.

    Any help would be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    07-16-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2013
    Posts
    176

    Re: Calculate difference if there is a change in certain cell

    is the change from the max time or min time? IE for shovel, do you want the change form g8-g2 or g8-g7?

  3. #3
    Forum Contributor
    Join Date
    06-01-2012
    Location
    va
    MS-Off Ver
    2007
    Posts
    163

    Re: Calculate difference if there is a change in certain cell

    Quote Originally Posted by igoodable View Post
    is the change from the max time or min time? IE for shovel, do you want the change form g8-g2 or g8-g7?
    G8-G7 please. Sorry about that

  4. #4
    Forum Contributor
    Join Date
    07-16-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2013
    Posts
    176

    Re: Calculate difference if there is a change in certain cell

    It appears your formula already does that, am I missing something? oh..I see it now, perhaps this?

    IF(VALUE(E3)<VALUE(E2),0,(G3-G2)*24)
    Last edited by igoodable; 07-16-2013 at 03:53 PM.

  5. #5
    Forum Contributor
    Join Date
    06-01-2012
    Location
    va
    MS-Off Ver
    2007
    Posts
    163

    Re: Calculate difference if there is a change in certain cell

    Oh sorry, I left an ifstatement in there, but no that didn't work. I want there to be nothing in the calculation column if there is no dept. change. So there wouldn't be any calculation till row 7 which would be calculating the time it takes to go from 10 to 20.

  6. #6
    Forum Contributor
    Join Date
    07-16-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2013
    Posts
    176

    Re: Calculate difference if there is a change in certain cell

    I believe this should work. =IF(E2<>E3,(G3-G2)*24,"")

  7. #7
    Forum Contributor
    Join Date
    06-01-2012
    Location
    va
    MS-Off Ver
    2007
    Posts
    163

    Re: Calculate difference if there is a change in certain cell

    Perfect, thanks a lot!!

+ 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 difference after looking for a cell that has some value in it
    By devilsahil in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-26-2012, 06:43 AM
  2. [SOLVED] Stuck! How to calculate difference of time from one cell?
    By drhenry1 in forum Excel General
    Replies: 4
    Last Post: 07-05-2012, 07:59 PM
  3. Replies: 2
    Last Post: 11-28-2011, 02:13 AM
  4. Excel Function to calculate difference in time in same cell
    By jr white in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-08-2007, 01:16 PM
  5. Calculate the difference between two cell entries using NOW() func
    By CZeigler in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-07-2006, 12:55 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