+ Reply to Thread
Results 1 to 3 of 3

calculate lowest value in range (above 0) and reference a related cell.

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    witlshire, england
    MS-Off Ver
    Excel 2010
    Posts
    3

    Question calculate lowest value in range (above 0) and reference a related cell.

    Hi

    I need to calculate the lowest value in a range, above 0, from the bottom row of the following table (row 27, columns Q to T).

    4 13 26 52
    2000 2000 1200 0
    -£500.00 -£500.00 £300.00 £1,500.00
    £0.00 £0.00 £300.00 £1,500.00

    In the above example the formula would select the column headed 26 (but it could be any column), then the cell containing the formula would show 26.

    I have tried the following formula
    Please Login or Register  to view this content.
    but the only result it gives is "FALSE" or "#VALUE!"

    Any help greatly recieved.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: calculate lowest value in range (above 0) and reference a related cell.

    welcome to the forum, klyncher. did you press CTRL + SHIFT + ENTER? just to be sure, i hope you're not entering the curly brackets manually. i seem to be able to get 1200 for that.

    anyways, you could use this non-array formula. you mention above zero but you're using <> (not equals to) 0. so depending on what you need, maybe:
    =SMALL(Q27:T27,1+COUNTIF(Q27:T27,0))
    or:
    =SMALL(Q27:T27,1+COUNTIF(Q27:T27,"<=0"))

    Edit: if you pound signs are manually keyed & not formatted in the cells, they are texts. then you would have to use this array formula:
    =SMALL(--SUBSTITUTE(Q27:T27,"£",""),1+SUM(--(--SUBSTITUTE(Q27:T27,"£","")<=0)))
    Last edited by benishiryo; 11-27-2013 at 04:43 AM.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    09-30-2013
    Location
    witlshire, england
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: calculate lowest value in range (above 0) and reference a related cell.

    Hi benishiryo,

    Thanks for the response. I did press CTRL + SHIFT + ENTER

    The non array formulas both work (no error msg), but don't quite give the answer I was after. The result of both formulas was 300, but I was looking for the result to be the heading of "26" which was above 300 in the example contained in my original message.

+ 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. Populate the range of data in Userform by clicking on cell value which is related
    By haridevadiga in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2013, 02:31 AM
  2. Replies: 7
    Last Post: 05-02-2013, 09:50 PM
  3. Replies: 1
    Last Post: 05-23-2012, 12:49 PM
  4. Finding the lowest values within a range and add cell to a formula
    By vampyr07au in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-05-2011, 01:05 AM
  5. [SOLVED] Returning the row no of the lowest non-zero cell in a range
    By Peter Rooney in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-27-2005, 09:05 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