+ Reply to Thread
Results 1 to 4 of 4

Data Subraction

  1. #1
    Registered User
    Join Date
    05-26-2017
    Location
    Usa
    MS-Off Ver
    MS Excel 2013
    Posts
    1

    Data Subraction

    I have a list of data with item numbers. This item number is associated with different status like received,put away and invoiced. The issue is, in the data set I have only one line of the data with received status at particular time but there are many lines with put away status at different time. I need to subtract the Received Time with the multiple put away time.

    Example

    Item 1 - Received - 12:01 PM
    Item 1 - Put away - 12:04 PM ( Need to subtract 12:04 with 12:01 PM which is 3 min)
    Item 1 - Put away - 12:07 PM (Need to subtract 12:07 with 12:01 PM which is 6 min)
    Item 1 - Put away - 12:10 PM (Need to subtract 12:10 with 12:01 PM which is 9 min)
    Item 2- Received - 12:09 PM
    Item 2- Put away - 12:24 PM (Need to subtract 12:24 with 12:09 PM which is 15 min)
    Item 2- Put away - 12:36 PM (Need to subtract 12:36 with 12:09 PM which is 27 min)

    Doing this for one item number is easy but I need to do it for so many different item numbers. I dont know what is the easy way to do

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Data Subraction

    Hi and welcome to the forum.

    Would you upload the workbook so that we can see the precise layout. These things are always easier if we can see the context.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Data Subraction

    If your data is in A2:C8 (headers in row 1), you can use this formula formatted as Custom h:mm in D2 copied down

    =IF(COUNTIF(A$2:A2,A2)-1,C2-MIN(IF($A$2:$A$8=A2,$C$2:$C$8)),"") Ctrl Shift Enter
    Last edited by 63falcondude; 05-26-2017 at 08:33 PM.

  4. #4
    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,099

    Re: Data Subraction

    Here's an ordinary formula that does the same thing:

    =IF(B2="Received","",C2-LOOKUP(2,1/($B$2:$B2="Received"),$C$2:$C2))
    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

+ 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: 2
    Last Post: 04-30-2017, 08:28 PM
  2. Constant subraction formula
    By paulie102003 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2017, 01:42 PM
  3. [SOLVED] Need to add Date value subraction to IF statement
    By Jason G in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-22-2016, 01:48 PM
  4. Replies: 11
    Last Post: 12-23-2014, 01:01 PM
  5. Replies: 34
    Last Post: 01-21-2014, 03:07 PM
  6. Replies: 4
    Last Post: 02-01-2013, 10:18 AM
  7. Use of Excel to pull data from database daily, posting new data below older data
    By Ishness in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-09-2011, 10:08 AM

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