+ Reply to Thread
Results 1 to 3 of 3

Finding the minimum non zero value in a column using VBA

  1. #1
    Registered User
    Join Date
    01-30-2015
    Location
    Durham, England
    MS-Off Ver
    Microsoft 2007
    Posts
    31

    Finding the minimum non zero value in a column using VBA

    Hi everyone,

    I am trying to find the minimum value in cell range J2:J70, I want this minimum value to appear in cell K2. However, if the number is negative then I do not want it to be taken into consideration. So I only want values zero and upwards to be considered. If you could help me out with some code that would be great! I want to be able to do this using VBA.

    Thank you

    Sarah

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Finding the minimum non zero value in a column using VBA

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    using array formula...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    in vba
    Please Login or Register  to view this content.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    01-30-2015
    Location
    Durham, England
    MS-Off Ver
    Microsoft 2007
    Posts
    31

    Re: Finding the minimum non zero value in a column using VBA

    Thank you so much! It works perfectly

+ 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: 7
    Last Post: 04-17-2013, 03:53 PM
  2. Replies: 11
    Last Post: 01-02-2013, 10:14 AM
  3. Replies: 4
    Last Post: 06-24-2011, 05:24 PM
  4. Finding the minimum value
    By northerng in forum Excel General
    Replies: 2
    Last Post: 05-27-2011, 03:48 AM
  5. Replies: 9
    Last Post: 01-28-2009, 04:16 PM
  6. Finding the minimum value with the exeption of zero
    By phil@micro in forum Excel General
    Replies: 3
    Last Post: 01-23-2009, 06:32 AM
  7. finding the minimum value in a column that comes after the maximum value
    By rantarctica in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-11-2008, 04:42 PM
  8. Finding a minimum value
    By Jan Kronsell in forum Excel General
    Replies: 2
    Last Post: 03-29-2005, 07:06 AM

Tags for this Thread

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