+ Reply to Thread
Results 1 to 18 of 18

Formula to find lowest time n 2 groups then the difference between them ignoring “-“

  1. #1
    Registered User
    Join Date
    12-06-2019
    Location
    California
    MS-Off Ver
    2016
    Posts
    19

    Formula to find lowest time n 2 groups then the difference between them ignoring “-“

    So I need to have a formula look to F, G, H, I.

    look to see which is a lower time

    F or G

    then look to see which is a lower time in

    H or I

    then subtract the lower time from F/G from the lower time in H/I.

    it will also need to ignore any "-"- it encounters

    F g h i

    AMB Fire AMB12L Fire12L

    23:15:09 23:19:18 23:00:00 23:20:00
    23:19:18 23:15:09 23:20:00 23:00:00
    23:19:18 23:15:09 - 23:00:00
    23:19:18 23:15:09 23:20:00 -


    Any help would be greatly appreciated.
    Last edited by Medicguy; 09-28-2020 at 07:27 AM.

  2. #2
    Registered User
    Join Date
    12-06-2019
    Location
    California
    MS-Off Ver
    2016
    Posts
    19

    Re: If AND OR formula help needed

    Attachment 695770

    Hopefully this goes through

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: If AND OR formula help needed

    Your attachment has been not done in proper manner.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Quang PT

  4. #4
    Registered User
    Join Date
    12-06-2019
    Location
    California
    MS-Off Ver
    2016
    Posts
    19

    Re: If AND OR formula help needed

    ok hopefully I did this right
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-06-2019
    Location
    California
    MS-Off Ver
    2016
    Posts
    19

    Re: If AND OR formula help needed

    Is this possible?

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,306

    Re: If AND OR formula help needed

    Please Login or Register  to view this content.
    Not sure what result you expect with a empty cell
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  7. #7
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: If AND OR formula help needed

    Hi,
    How about that?

    In M:
    =IF(I6<J6,I6,J6)

    In N:
    =IF(K6<L6,K6,L6)

    In O:
    =M6-N6
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-06-2019
    Location
    California
    MS-Off Ver
    2016
    Posts
    19
    Quote Originally Posted by popipipo View Post
    Please Login or Register  to view this content.
    Not sure what result you expect with a empty cell
    There are no empty cells. There is a “-“ in any cell that is empty

  9. #9
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,306

    Re: If AND OR formula help needed

    Then change the question in:
    Not sure what result you expect with a cell containing "-"

  10. #10
    Registered User
    Join Date
    12-06-2019
    Location
    California
    MS-Off Ver
    2016
    Posts
    19
    Oh! I thought I put that in the original post, apparently I brain farted. The “-“ would essentially be ignored and the other cell info would get pulled over.
    Last edited by AliGW; 09-28-2020 at 07:56 AM. Reason: PLEASE don't quote unnecessarily!

  11. #11
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: If AND OR formula help needed

    You can use:

    MIN(I8,J8)

    as this will ignore empty cells.

    Hope this helps.

    Pete

  12. #12
    Registered User
    Join Date
    12-06-2019
    Location
    California
    MS-Off Ver
    2016
    Posts
    19
    Thanks a ton! Has definitely got me closer. I had to reverse the order but it works. The only issue is if there was a blank n any of the 4 cells to be calculated it outputs “blank” since the f;I =4 is false
    Last edited by AliGW; 09-28-2020 at 07:56 AM. Reason: PLEASE don't quote unnecessarily!

  13. #13
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: If AND OR formula help needed

    You can use this in N7:

    =MAX(MIN(I7,J7),MIN(K7,L7)) - MIN(MIN(I7,J7),MIN(K7,L7))

    then copy down. The values in row 6 are actually text values, so if you copy the formula up to N6 you will get zero. Click on each cell in turn for I6:L6, then press F2 as if to edit the cell, then press Enter, and this should return a proper time value.

    I assumed you wanted the positive time difference, whichever of the pairs is larger, which the above formula will give you.

    Hope this helps.

    Pete

  14. #14
    Registered User
    Join Date
    12-06-2019
    Location
    California
    MS-Off Ver
    2016
    Posts
    19
    Thanks I’m actually looking for the minimum time to acquisition from contact. I’ll give this a try ASAP!
    Last edited by AliGW; 09-28-2020 at 07:55 AM. Reason: PLEASE don't quote unnecessarily!

  15. #15
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: If AND OR formula help needed

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  16. #16
    Registered User
    Join Date
    12-06-2019
    Location
    California
    MS-Off Ver
    2016
    Posts
    19
    Thanks, how do I change the thread title?
    Last edited by AliGW; 09-28-2020 at 07:10 AM. Reason: Please don't quote unnecessarily! You can quote part of a post, but you do not need to quote all of it.

  17. #17
    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,340

    Re: If AND OR formula help needed

    Please read the post above yours again ... The instructions are there.
    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.

  18. #18
    Registered User
    Join Date
    12-06-2019
    Location
    California
    MS-Off Ver
    2016
    Posts
    19
    Quote Originally Posted by AliGW View Post
    Please read the post above yours again ... The instructions are there.
    Lol thanks! I really should drink coffee before posting!

+ 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] Improved Formula / i've run out room to extend the current formula / (avdanced code needed
    By pmw19800 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-29-2018, 06:19 AM
  2. date formula help needed with blank cell and monthly assumtions formula needed
    By Michael.Howarth in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-31-2018, 07:47 AM
  3. Replies: 3
    Last Post: 04-06-2016, 12:19 PM
  4. Replies: 1
    Last Post: 01-11-2016, 02:31 PM
  5. Replies: 7
    Last Post: 02-03-2013, 06:25 PM
  6. [SOLVED] index formula needed--how to get a formula to skip columns
    By rsmidtisu in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-02-2012, 11:22 AM
  7. Replies: 3
    Last Post: 09-07-2012, 12:07 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