+ Reply to Thread
Results 1 to 5 of 5

Need false condition of IF statement to return a blank that can be ignored by MIN function

  1. #1
    Registered User
    Join Date
    11-03-2014
    Location
    Cincinnati, OH
    MS-Off Ver
    2010
    Posts
    3

    Need false condition of IF statement to return a blank that can be ignored by MIN function

    Hi, I'm tyring to have excel perform calculations if the cell is not blank, and display the minimum of all the calculated values. The problem I'm having is the MIN function isn't interpreting "" as a blank and returns #VALUE. I do not want the false condition of the IF statement to return a zero, b/c the MIN function would then calculate the 0 instead of ignoring it. Any help is greatly appreciated.


    =MIN(((P21-K21)/K21),(IF(Q21<>"",((Q21-P21)/P21),""))

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Need false condition of IF statement to return a blank that can be ignored by MIN func

    Try

    IF(Q21<>"",(P21-K21)/K21,MIN((P21-K21)/K21,(Q21-P21)/P21)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    10-16-2014
    Location
    Center Line, Michigan, United States
    MS-Off Ver
    MS Office 2013
    Posts
    139

    Re: Need false condition of IF statement to return a blank that can be ignored by MIN func

    Hello rsanford, and welcome to the forum.

    I don't have your sample, so when I tried to emulate your error, I didn't get a value error. The only way I was able to generate any type of error was to turn K21 or P21 into a 0, which led to the #div/0 error. Could you provide a sample workbook with any sensitive information removed to illustrate exactly where you're having the issue?
    Please click the star (add rep) if I helped!

  4. #4
    Registered User
    Join Date
    11-03-2014
    Location
    Cincinnati, OH
    MS-Off Ver
    2010
    Posts
    3

    Re: Need false condition of IF statement to return a blank that can be ignored by MIN func

    Sure, it's attached

    MIN function example.xlsx

  5. #5
    Registered User
    Join Date
    11-03-2014
    Location
    Cincinnati, OH
    MS-Off Ver
    2010
    Posts
    3

    Re: Need false condition of IF statement to return a blank that can be ignored by MIN func

    thanks for your reply. However this logic doesn't quite match my goal.

    If Q1 isn't blank, i need excel to tell me the min between the P21/K21 calculation, and the Q21/P21 calculation. If Q1 is blank, I need the Q21/P21 calculation to not occur and return a blank that MIN can ignore. Currently I'm unable to get MIN to ignore the return value of "" (#value error occurs).

+ 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: 2
    Last Post: 01-27-2013, 12:32 PM
  2. (multiple) VLOOKUP Function to return blank field on false
    By frank_a in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-10-2009, 01:39 AM
  3. [SOLVED] keep cell blank if IF statement is False
    By ruthslaughter in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 11-25-2005, 09:35 AM
  4. Keep cell blank if condition is false in IF function
    By ruthslaughter in forum Excel General
    Replies: 2
    Last Post: 11-23-2005, 09:20 AM
  5. [SOLVED] keep cell blank when false in IF statement
    By ruthslaughter in forum Excel General
    Replies: 2
    Last Post: 11-22-2005, 02:15 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