+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : MIN, AVE, MAX values but exclude blanks

  1. #1
    Registered User
    Join Date
    03-13-2010
    Location
    Cape Town, SA
    MS-Off Ver
    MS Office 2013
    Posts
    59

    Talking MIN, AVE, MAX values but exclude blanks

    I need to find the minimum, maximum, average...etc. cost/kg from different suppliers, but exclude any supplier with a blank or zero value, from the calculation. Please see attache sample file. Yellow blocks are where I want the values.

    SOLVED

    Thanks NBVC
    Attached Files Attached Files
    Last edited by Quagga; 07-15-2010 at 01:55 PM. Reason: SOLVED

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: MIN, AVE, MAX values but exclude blanks

    In S5:

    =SMALL(IF($F$4:$Q$4="R / kg",IF($F5:$Q5>0,$F5:$Q5)),1)

    in T5:

    =SMALL(IF($F$4:$Q$4="R / kg",IF($F5:$Q5>0,$F5:$Q5)),2)

    in U5:

    =SMALL(IF($F$4:$Q$4="R / kg",IF($F5:$Q5>0,$F5:$Q5)),3)

    in V5:

    =LARGE(IF($F$4:$Q$4="R / kg",IF($F5:$Q5>0,$F5:$Q5)),1)

    in W5:

    =AVERAGE(IF($F$4:$Q$4="R / kg",IF($F5:$Q5>0,$F5:$Q5)))

    each confirmed with CTRL+SHIFT+ENTER
    and copied down
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-13-2010
    Location
    Cape Town, SA
    MS-Off Ver
    MS Office 2013
    Posts
    59

    Re: MIN, AVE, MAX values but exclude blanks

    Thank you NBVC you have made my day.
    Much appreciated

  4. #4
    Registered User
    Join Date
    03-13-2010
    Location
    Cape Town, SA
    MS-Off Ver
    MS Office 2013
    Posts
    59

    Re: MIN, AVE, MAX values but exclude blanks

    Why would I get #NUM! and /or #VALUE! displayed instead of a value?
    The formula seems correct.

    Thanking you

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: MIN, AVE, MAX values but exclude blanks

    Are you confirming the formula by holding the CTRL and SHIFT keys down, then pressing ENTER. If done correctly, you will see { } brackets around the formula. Then you can copy down.

  6. #6
    Registered User
    Join Date
    03-13-2010
    Location
    Cape Town, SA
    MS-Off Ver
    MS Office 2013
    Posts
    59

    Re: IF CELL IS EQUAL TO ANOTHER DISPLAY THE HEADING

    I need to identify which supplier has the lowest price by displaying it in the cell next to the lowest price. I can only get the "IF" formula to work on one cell and not for all 6 suppliers.
    How do I do this.
    Attached Files Attached Files

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: MIN, AVE, MAX values but exclude blanks

    Try:

    =INDEX($F$3:$Q$3,MATCH(1,INDEX(($F$4:$Q$4="R / kg")*($F5:$Q5=S5),0),0)-1)

    copied down.

  8. #8
    Registered User
    Join Date
    03-13-2010
    Location
    Cape Town, SA
    MS-Off Ver
    MS Office 2013
    Posts
    59

    Talking Re: MIN, AVE, MAX values but exclude blanks

    Thank you very much. It works very well.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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