+ Reply to Thread
Results 1 to 7 of 7

Ignore N/A within a complex formula.

  1. #1
    Registered User
    Join Date
    06-12-2020
    Location
    Greece
    MS-Off Ver
    365 Pro
    Posts
    40

    Ignore N/A within a complex formula.

    Hello everybody!

    I am calculating percentages of "Yes" (success rate) with a formula that ignores hidden rows. However, I want also to ignore N/A but I don't know how to combine this. Here is the formula that I'm using to ignore hidden cells and calculate percentages of "Yes":

    =SUMPRODUCT(SUBTOTAL(3,OFFSET('Raw Data'!L3:L300,ROW('Raw Data'!L3:L300)-ROW('Raw Data'!L3),0,1)),--('Raw Data'!L3:L300="Yes"))/SUBTOTAL(103,'Raw Data'!L3:L300)

    Thank you in advance!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Ignore N/A within a complex formula.

    Hi,

    Just wrap the whole formula in an =IFERROR() function.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Ignore N/A within a complex formula.

    If, conversely, you're saying your L3:L500 values are result of formulas, and can return #N/A (which you want to keep but ignore in your calc) then:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-12-2020
    Location
    Greece
    MS-Off Ver
    365 Pro
    Posts
    40

    Re: Ignore N/A within a complex formula.

    Hi and thank you for your reply.

    I have already tried by adding IFERROR in the beginning and "") at the end, but it is not working. The N/A is not an actual error like #N/A. It's just a 3rd option e.g. "Yes", "No", "N/A"

  5. #5
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Ignore N/A within a complex formula.

    Hi, if the n/a is a literal string your existing calculation would work... unless you're saying you want to adjust the denominator such that it excludes the n/a string?

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    if that's not what you mean I'd suggest posting a sample file to better illustrate

  6. #6
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    Germany
    MS-Off Ver
    365
    Posts
    490

    Re: Ignore N/A within a complex formula.

    I cannot 100% follow either.

    If you column L range contains "yes"/"no"/"n/a", I don't see why you would need to ignore "n/a" as your sumproduct already only considers "yes" values?

    Perhaps the problem is rather in the denominator of your formula, i.e. the last subtotal part that needs to be amended in a similar way to ignore hidden values?

    Edit: I guess what XLent says above is where I was heading, too.

  7. #7
    Registered User
    Join Date
    06-12-2020
    Location
    Greece
    MS-Off Ver
    365 Pro
    Posts
    40

    Re: Ignore N/A within a complex formula.

    Brilliant! It worked!

    Thank you so much XLent, and of course everybody!!

+ 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] Using IFERROR to Make Complex Formula Ignore Error
    By DGARDNERMAN in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-03-2018, 12:50 PM
  2. [SOLVED] Complex formula getting moer complex
    By Trebor777 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-02-2017, 01:39 PM
  3. Replies: 6
    Last Post: 01-04-2017, 11:20 AM
  4. [SOLVED] Ignore blank cells with formulas or ignore NA() in a formula
    By guiismiti in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-24-2016, 02:13 PM
  5. [SOLVED] Use an existing cell formula for creating a new more complex formula
    By dubcap01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2014, 07:41 AM
  6. Replies: 12
    Last Post: 07-04-2013, 07:26 AM
  7. Replies: 4
    Last Post: 05-22-2009, 11:17 AM

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