+ Reply to Thread
Results 1 to 8 of 8

Post difference between low and high based on name

  1. #1
    Forum Contributor
    Join Date
    04-20-2017
    Location
    SWEDEN
    MS-Off Ver
    2016
    Posts
    123

    Post difference between low and high based on name

    In this sheet people check in, but in D:D (Timeworked) I would like to see how long a shift has been, but cant seem to wrap my head around it...

    https://www.excelforum.com/attachmen...1&d=1513074504
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Post difference between low and high based on name

    Does thsi work?

    in D2
    =MAX(IF(B$2:B$13=B2,C$2:C$13))-MIN(IF(B$2:B$13=B2,C$2:C$13))
    Array formula, use Ctrl-Shift-Enter
    and copy down the column
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Contributor
    Join Date
    04-20-2017
    Location
    SWEDEN
    MS-Off Ver
    2016
    Posts
    123

    Re: Post difference between low and high based on name

    Hi, thanks.

    But no, it ce-calculates the whole column evertime a user fills in a new row (ei. get to work).

    So instead of having a lot of entries, I get the same 3 times for everyday they've been in

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Post difference between low and high based on name

    You only supplied one days worth of data.

    Try this (untested)

    =MAX(IF((B$2:B1000=B2)*(INT(C$2:C1000)=INT(C2)),C$2:C1000))-MIN(IF((B$2:B1000=B2)*(INT(C$2:C1000)=INT(C2)),C$2:C1000))

  5. #5
    Forum Contributor
    Join Date
    04-20-2017
    Location
    SWEDEN
    MS-Off Ver
    2016
    Posts
    123

    Re: Post difference between low and high based on name

    I'm sorry for not specifying, thanks.

    The problem is it doesnt take in to consideration that the same user comes more then once.
    It changes that user all dates (which is the same in this test)

    I only want to populate the instance he checks out, based on the time he last checked in

    https://www.excelforum.com/attachmen...1&d=1513075957
    Attached Files Attached Files

  6. #6
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Post difference between low and high based on name

    =if(isodd(countif($a$2:a2,a2)),vlookup([@id],$a3:$c$13,3,)-[@[in/out]],"")

  7. #7
    Forum Contributor
    Join Date
    04-20-2017
    Location
    SWEDEN
    MS-Off Ver
    2016
    Posts
    123

    Re: Post difference between low and high based on name

    @tim201110

    That seems to do the trick, but doesn't take into account that by time, the rows will expand with new inputs

  8. #8
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Post difference between low and high based on name

    =if(isodd(countif($a$2:a2,a2)),vlookup([@id],$a3:index($c:$c,match(100000,$c:$c)),3,)-[@[in/out]],"")

+ 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. [SOLVED] Rank items in Pivot table from high to low and low to high based on the filter selected
    By jholiday78 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 02-19-2017, 11:22 AM
  2. [SOLVED] High lighting entire row based on a value in cell
    By tejaz007 in forum Excel General
    Replies: 3
    Last Post: 08-24-2016, 05:11 AM
  3. Populate the text based on high to low
    By Kumara_faith in forum Excel General
    Replies: 1
    Last Post: 10-27-2015, 05:54 AM
  4. High Low Close Chart - How to add High & Low labels
    By stephenedwardbennett in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-23-2015, 06:45 AM
  5. [SOLVED] How to high entired row based on data in a cell
    By Dariusd7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2015, 03:04 PM
  6. [SOLVED] Sorting High to Low based on percent of total
    By Harold in forum Excel General
    Replies: 0
    Last Post: 04-05-2006, 12:20 PM
  7. Replies: 3
    Last Post: 01-27-2006, 06: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