+ Reply to Thread
Results 1 to 10 of 10

Count if there is a number and answer is smallest value

  1. #1
    Registered User
    Join Date
    07-09-2013
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2013
    Posts
    10

    Talking Count if there is a number and answer is smallest value

    I have 20 cells that I'm wanting to pull the lowest value out of each row. The problem is that there are cells without a value so I need to exclude any blank cells or zeros.

    So i need the lowest value of a series of cells but only countif there is a value greater than zero...i'm hoping for an easy answer!

  2. #2
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Count if there is a number and answer is smallest value

    Hi
    Suppose that your data in a1:a20 range.
    =SMALL(IF(ISBLANK(A1:A20),"",A1:A20),1) Ctrl+Shift+Enter
    Appreciate the help? CLICK *

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Count if there is a number and answer is smallest value

    Hi,

    Maybe, assuming your data is in A1:J1:

    =AGGREGATE(15,6,1/(A1:J1>0)*A1:J1,1)

    Copy down as required.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

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

    Re: Count if there is a number and answer is smallest value

    Like this...

    =SMALL(A1:T1,COUNTIF(A1:T1,0)+1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    07-09-2013
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Count if there is a number and answer is smallest value

    One issue, the cells are not all together. Sorry for not including this in the original post:
    W8,Z8,AC8,AF8,AI8,AL8,AO8,AR8,AU8,AX8,BA8,BD8,BG8,BJ8,BM8,BP8,BS8,BV8,BY8,CB8

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

    Re: Count if there is a number and answer is smallest value

    What's in the cells between the cells of interest?

    If there are no numbers then you can still use my suggestion.

  7. #7
    Registered User
    Join Date
    07-09-2013
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Count if there is a number and answer is smallest value

    There is different data between cells. I have it divided by locations.

    If it helps, the original data is coming from separate table that would put the data all together in a column but then I would need to figure out how offset the formula to skip down 20 when I fill the other rows.

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Count if there is a number and answer is smallest value

    Maybe be safe with an array formula**:

    =MIN(IF(MOD(COLUMN(W8:CB8)-MIN(COLUMN(W8:CB8)),3)=0,IF(W8:CB8>0,W8:CB8)))

    Regards


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).

  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: Count if there is a number and answer is smallest value

    In that case I would use XOR LX's suggestion in post #8.

  10. #10
    Registered User
    Join Date
    07-09-2013
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Count if there is a number and answer is smallest value

    Thank you all for your help, it looks like it is working.

+ 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. [SOLVED] count the values from smallest date with criteria!!! help excel formula
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-08-2013, 11:34 AM
  2. Smallest number > 0
    By 1cellshort in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-01-2009, 12:53 AM
  3. smallest number not zero
    By Neuther in forum Excel General
    Replies: 4
    Last Post: 12-12-2008, 08:44 PM
  4. Smallest positive number
    By kras in forum Excel General
    Replies: 3
    Last Post: 05-10-2008, 11:17 AM
  5. Smallest number which is not 0
    By eirikst in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-26-2006, 02:39 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