+ Reply to Thread
Results 1 to 10 of 10

Find lowest value in a column between 2 cells and calculate again for next sample

  1. #1
    Registered User
    Join Date
    04-26-2020
    Location
    uk
    MS-Off Ver
    2010
    Posts
    13

    Find lowest value in a column between 2 cells and calculate again for next sample

    Hi,

    Please see spreadsheet attached.

    In column D if a new high is made I wish to find the Low from C between the old new high and the new new high of D.

    My current way of calculating is to enter 1 in column E for the new high. Then filter column E for only values of 1. Then I double click on column F and drag the cell selector to the appropriate columns of column C.

    Is there a more elegant less time consuming way of doing this?

    Thank you for your help.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    UK
    MS-Off Ver
    365
    Posts
    693

    Re: Find lowest value in a column between 2 cells and calculate again for next sample

    Does the attached help?
    Attached Files Attached Files

  3. #3
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Find lowest value in a column between 2 cells and calculate again for next sample

    Try this in F2:

    Please Login or Register  to view this content.
    Then copy it down.

    WBD
    Office 365 on Windows 11, looking for rep!

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Find lowest value in a column between 2 cells and calculate again for next sample

    I think similar to the above
    =IFERROR(IF(E2=1,MIN(OFFSET(C1,0,0,-(1+ROW(D1)-LOOKUP(2,1/($E1:E$2=1),ROW($E1:E$2))),1)),""),"")

    corrected as the below post, but as pointed out the index function is not volatile so a better choice
    Last edited by davsth; 10-21-2021 at 09:52 AM.

  5. #5
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    UK
    MS-Off Ver
    365
    Posts
    693

    Re: Find lowest value in a column between 2 cells and calculate again for next sample

    Quote Originally Posted by davsth View Post
    I think similar to the above
    =IFERROR(IF(E2=1,MIN(OFFSET(C1,0,0,-(ROW(#REF!)-LOOKUP(2,1/($E1:E$2=1),ROW($E1:E$2))),1)),""),"")
    davsth, did you delete something before pasting the formula, probably manual calculation on?

  6. #6
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Find lowest value in a column between 2 cells and calculate again for next sample

    FWIW, any formula with OFFSET in it is volatile and will recalculate when anything changes. Just be aware ...

    WBD

  7. #7
    Registered User
    Join Date
    04-26-2020
    Location
    uk
    MS-Off Ver
    2010
    Posts
    13

    Re: Find lowest value in a column between 2 cells and calculate again for next sample

    Thanks, the answers are what I was looking for. I don't fully understand the formulas, I'll have a look at them and come back with questions if that's ok. Thanks again.

  8. #8
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Find lowest value in a column between 2 cells and calculate again for next sample

    Another option:

    Please Login or Register  to view this content.
    Taking it apart:
    Please Login or Register  to view this content.
    If E2 is zero then leave this cell blank.

    Please Login or Register  to view this content.
    Find the row on which the previous highest value occurred.

    Please Login or Register  to view this content.
    Locate the correct cell in column C based on the row value we found.

    Please Login or Register  to view this content.
    Find the minimum value from column C based on the cell previously identified and the cell in column C on the current row.

    Hope that helps your understanding. It's a bit easier to explain than the LOOKUP(2,1/...) stuff.

    WBD

  9. #9
    Registered User
    Join Date
    04-26-2020
    Location
    uk
    MS-Off Ver
    2010
    Posts
    13

    Re: Find lowest value in a column between 2 cells and calculate again for next sample

    Thanks for the updated formula and explanation. Yes I understand that formula much better. What does the 0 do at the end of:

    MATCH($D1,$B:$B,0)

    Thanks

  10. #10
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Find lowest value in a column between 2 cells and calculate again for next sample

    MATCH(..,..,0) means "find an exact match"

    WBD

+ 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: 1
    Last Post: 05-10-2017, 05:14 PM
  2. find the lowest value from column B based on duplicate item at column A
    By dare2join in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-24-2016, 12:50 AM
  3. [SOLVED] Re: Find lowest 5 numbers in column A with highest values in column B
    By jd16 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-05-2013, 02:08 AM
  4. Replies: 4
    Last Post: 10-06-2013, 10:40 AM
  5. Find lowest 5 numbers in column A with highest values in column B
    By dmccoy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-06-2013, 09:22 AM
  6. Replies: 5
    Last Post: 04-17-2012, 12:28 PM
  7. Replies: 3
    Last Post: 03-21-2009, 09:37 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