+ Reply to Thread
Results 1 to 9 of 9

Value Not Available Error when combining functions

  1. #1
    Registered User
    Join Date
    08-31-2017
    Location
    Serbia
    MS-Off Ver
    2010
    Posts
    7

    Value Not Available Error when combining functions

    Hello,
    Combining AND, RANK.AVG and OR functions, I sometimes receive an error. In the attached worksheet, for example, there is a “Value Not Available Error” in cell F11 and not in G11. Why? Formulas in both columns should produce same result.
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Value Not Available Error when combining functions

    It's because of the blank in C11.
    RANK.AVG(C11,C4:C11) is returning #N/A because C11 is blank.

  3. #3
    Registered User
    Join Date
    08-31-2017
    Location
    Serbia
    MS-Off Ver
    2010
    Posts
    7

    Re: Value Not Available Error when combining functions

    D11 is also blank, but G11 is returning TRUE. Why? Formulas in both F and G columns should return same result.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Value Not Available Error when combining functions

    The formula in G11 is NOT using this function RANK.AVG(C11,C4:C11)
    Instead, it is merely doing D11<7
    D11 being blank will not cause an error with that

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Value Not Available Error when combining functions

    So what do you want to happen in the case that cell is blank ?
    Do you want to assume the Rank.Avg<7 test is TRUE if C is blank?

    Try
    =AND(RANK.AVG(A11,A4:A11)<5,OR(RANK.AVG(B11,B4:B11)>4,IFERROR(RANK.AVG(C11,C4:C11)<7,TRUE)))

  6. #6
    Registered User
    Join Date
    08-31-2017
    Location
    Serbia
    MS-Off Ver
    2010
    Posts
    7

    Re: Value Not Available Error when combining functions

    Formula in F11 should return TRUE if either RANK.AVG(B11,B4:B11)>4 or RANK.AVG(C11,C4:C11)<7 is true. It seems that F11 doesn’t recognize OR function in my formula and I wonder why.

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Value Not Available Error when combining functions

    It seems that F11 doesn’t recognize OR function in my formula and I wonder why
    Like I said, Because RANK.AVG(C11,C4:C11) returns #N/A

    Once any function returns an error value like #N/A, then that error propegates throughout the entire formula, unluess it's trapped with an error trapping function like IFERROR.
    Basically, the RanklAvg function is the source of the #N/A
    Then the OR returns #N/A simply because an argument contained in within the OR is returning #N/A. Regardless if the other argument is TRUE or FALSE, both arguments of the OR are processed.
    Then the AND returns #N/A simply because the OR within the AND is returning #N/A

  8. #8
    Registered User
    Join Date
    08-31-2017
    Location
    Serbia
    MS-Off Ver
    2010
    Posts
    7

    Re: Value Not Available Error when combining functions

    Many thanks for the explanation!

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Value Not Available Error when combining functions

    You're welcome.

+ 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] Error Message When Combining IF and COUNTIF Functions
    By EverClever in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2017, 04:50 PM
  2. Combining multiple functions>lookup/sum functions
    By mush106 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-22-2013, 07:47 AM
  3. Combining two functions
    By ram09 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-24-2013, 01:57 PM
  4. Combining two functions
    By jordache_keith in forum Excel General
    Replies: 24
    Last Post: 05-11-2012, 05:23 AM
  5. Combining functions
    By rangerel in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-01-2010, 07:43 AM
  6. Combining IF functions
    By NeilM442 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-10-2009, 01:02 PM
  7. Combining IF functions
    By rlkerr1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-14-2007, 03:20 PM

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