+ Reply to Thread
Results 1 to 12 of 12

Smaller value on conditions

  1. #1
    Registered User
    Join Date
    01-14-2011
    Location
    Greece
    MS-Off Ver
    Excel 2003
    Posts
    11

    Smaller value on conditions

    I have three columns (let's say A1:C10) filled with numbers ranging from 1-20.
    How can I get in D1 the smallest value from C column, but only from the rows that have both A and B >10?
    I'm guessing it will include a combination of small and if but I don't know how to make it work.
    Thanks

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

    Re: Smaller value on conditions

    Try:

    =MIN(IF((A1:A10>10)*(B1:B10>10),C1:C10))

    confirmed with CTRL+SHIFT+ENTER not just ENTER.

    If you get error entering formula, change the comma to a semi-colon.
    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
    01-14-2011
    Location
    Greece
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Smaller value on conditions

    I tried it, changed coma to cemicolon, but it gives me the wrong number.
    The two first numbers - I want them to be (>10) - of the row are 5(<10) and 13.
    Attached Files Attached Files

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

    Re: Smaller value on conditions

    After you enter the formula, hold the CTRL and SHIFT keys down.

    Then hit ENTER. You should see { } brackets appear around the formula.

    Does that new number meet the requirement? I got 8 as a result.

  5. #5
    Registered User
    Join Date
    01-14-2011
    Location
    Greece
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Smaller value on conditions

    Wow. Thank you very much. I'm new, so allow me a question.
    What is the purpose of brackets?

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

    Re: Smaller value on conditions

    It tells Excel that this is an ARRAY formula, allowing it to proces all the elements in the range instead of just 1...

    See this article on Array Formulas.

  7. #7
    Registered User
    Join Date
    01-14-2011
    Location
    Greece
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Smaller value on conditions

    OK. Thanks and Happy New Year

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

    Re: Smaller value on conditions

    Same to you.

  9. #9
    Registered User
    Join Date
    01-14-2011
    Location
    Greece
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Smaller value on conditions

    I thought of another problem.
    What happens if I want to display the whole row of the minimum.

    Let's say I want to display the row in A12,B12,C12 (one row below the columns of numbers)

    In the C12 I would type: =MIN(IF((A1:A10>10)*(B1:B10>10);C1:C10))
    confirmed with CTRL+SHIFT+ENTER not just ENTER

    I thought I could type in A12 : =IF((C1:C10=C12);A1:A10),
    to compare the values in C column with the minimum I found and return the value of the column A from the same row, but I'm getting FALSE

    I hope you understand what I want to do

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

    Re: Smaller value on conditions

    Try

    Please Login or Register  to view this content.
    confirmed with CSE keys again and copied to next column to get B value

    Note: To avoid double calcs you can replace
    Please Login or Register  to view this content.
    with Cell reference that has that result already

  11. #11
    Registered User
    Join Date
    01-14-2011
    Location
    Greece
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Smaller value on conditions

    It took a while to check the syntax of the functions, and I finally understood.
    However it says that the formula contains an error.

    I'm sending once more the file in case that helps you.
    If you have the patience respond.
    Thanks
    Attached Files Attached Files

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

    Re: Smaller value on conditions

    Did you change the commas to semi-colons? Then remember to hold the CTRL and Shift keys down and press ENTER.
    Attached Files Attached Files
    Last edited by NBVC; 01-15-2011 at 06:13 PM.

+ 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