Consulting

Results 1 to 3 of 3

Thread: Condition Base Min & Max

  1. #1
    VBAX Contributor
    Joined
    May 2010
    Posts
    106
    Location

    Lightbulb Condition Base Min & Max

    Dear Friends,

    I am looking for a min and maximum in between two hundred. These hundreds found in "C" columns, respectively (offset) "B" column checked to find the min and maximum value in that range to calculate the % for min & max value.

    A sample file is attached in a very detailed explanation with highlighted cells.

    Thanks, Regards R_know

    Condition Base Min&Max.xlsm

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    To give you a simple solution:
    In D2:
    =IF(AND($C2=100,$C3=""),MIN($B2:INDEX($B2:$B$1854,MATCH(100,$C3:$C$1854,0))),"")
    in E2:
    =IF(AND($C2=100,$C3=""),MAX($B2:INDEX($B2:$B$1854,MATCH(100,$C3:$C$1854,0))),"")
    In F2:
    =IFERROR(E2/D2-1,"")
    Copy down.
    Finally, to cheat, place 100 in cell C1854!

    You might have to commit the formulae in columns D and E using Ctrl+Shift+Enter rather than the plain old Enter, depending on your version of Excel.
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    VBAX Contributor
    Joined
    May 2010
    Posts
    106
    Location
    Many Thanks p45cal
    I appreciated your quick response in simple ways...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •