+ Reply to Thread
Results 1 to 4 of 4

Select lowest value using if fuction

Hybrid View

  1. #1
    Registered User
    Join Date
    06-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Question Select lowest value using if fuction

    Dear Excel Experts,

    I tried to wrote if function for following condition, but could not get expected result.

    Condition 1: If value A2 is greater than value B2, then in D2, lowest value should be shown
    Condition 2: If value in B2 is greater than value in A2, then in D2, lowest value should be shown.

    I have attached herewith the example book for your kind reference.

    Please do needful.

    Regards
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Select lowest value using if fuction

    Do you mean?

    Formula: copy to clipboard
    =IF(OR(A2<B2,B2<A2),MIN(A2:B2),"something else")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

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

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    06-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Select lowest value using if fuction

    Dear Fortis,

    The code is working properly.

    Thank you very much for the help.

    Regards,

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Select lowest value using if fuction

    .........................

+ 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. Copy the entire lowest row > Select the row below said row > Insert copied cell
    By saturos in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2013, 11:22 AM
  2. [SOLVED] script to go through a list and select the lowest price at specific locations
    By milmil in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-07-2013, 09:08 PM
  3. Select Surrounding Cell With the Lowest Value
    By publius190 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-29-2012, 01:55 PM
  4. Replies: 1
    Last Post: 06-28-2012, 06:17 AM
  5. Excel 2007 : Code to select lowest Number
    By Chackonman in forum Excel General
    Replies: 3
    Last Post: 01-01-2010, 12:24 PM

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