+ Reply to Thread
Results 1 to 9 of 9

Is it possible to find the min of the last few digits of a range.

  1. #1
    Registered User
    Join Date
    06-15-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    18

    Is it possible to find the min of the last few digits of a range.

    Hi,

    I have a row of values, where any number below a certain threshold would be displayed as the value preceded by the word "Stop"

    e.g. For a threshold of -7.00%:

    2.89%, 1.58%, 10.99%, -4.09%, -6.84%, Stop -7.81%, -2.28%

    I need to calculate the minimum value (i.e. -7.81%) and have tried to combine the min and right functions, but to no avail.

    Is there a way to achieve this?

    Thanks in advance.

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

    Re: Is it possible to find the min of the last few digits of a range.

    Does the minimum value alway combine with the string "Stop"?
    Quang PT

  3. #3
    Registered User
    Join Date
    06-15-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Is it possible to find the min of the last few digits of a range.

    Anything below 7% will.

  4. #4
    Registered User
    Join Date
    06-15-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Is it possible to find the min of the last few digits of a range.

    Sorry, I meant to say anything less than -7% will.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Is it possible to find the min of the last few digits of a range.

    =MIN(INDEX(--SUBSTITUTE(UPPER(A1:G1),"STOP",""),0)) should do it
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Is it possible to find the min of the last few digits of a range.

    Try this.........

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  7. #7
    Registered User
    Join Date
    06-15-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Is it possible to find the min of the last few digits of a range.

    Thank you very much, that works perfectly.

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Is it possible to find the min of the last few digits of a range.

    Glad to help you. Thanks for the feedback.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is it possible to find the min of the last few digits of a range.

    Here's another one...

    Array entered**:

    =MIN(--SUBSTITUTE(A2:G2,"Stop",""))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Assumes no empty cells within the range.

    Format as Percentage
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. How do I find the sum of all digits in a number?
    By monkeyforce5 in forum Excel General
    Replies: 6
    Last Post: 02-11-2021, 10:42 AM
  2. find last four digits in a column using vba
    By likeexcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-08-2012, 04:36 AM
  3. .Find problem when the found range's rows go from single to double digits
    By alsega in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-13-2012, 11:21 AM
  4. [SOLVED] Trying to find last 6 digits of variable number
    By Warhawk in forum Excel General
    Replies: 4
    Last Post: 03-07-2006, 10:15 PM
  5. [SOLVED] 2.3345 I want to find out what the last 2 digits are, i.e. 45
    By Marcus in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-16-2005, 11:50 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