+ Reply to Thread
Results 1 to 4 of 4

Amendment to formula required to avoid having #N/A displayed

  1. #1
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Question Amendment to formula required to avoid having #N/A displayed

    Hi,

    Can any advise me how I can amend the two formals in cells O32 and S32 (see below) to avoid getting #N/A in the cells if there is no valid data in any of the other cells in the formulas

    Formula in cell O32

    =VLOOKUP(($J$12:$J$5000 & " Total"),$A$12:$G$5000,7,FALSE)+'WAF Cover'!O22

    Formula in cell S32


    =IF(N32-(N32/100*80)<R32,"",IF(N32="",""," Warning 20% or less Remains!"))


    Any assistance would be greatly appreciated


    Many thanks in advance


    Rob


    N.B. Excel version 2003
    Rob

  2. #2
    Forum Contributor
    Join Date
    04-23-2009
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003 work, 2007 home
    Posts
    199

    Re: Amendment to formula required to avoid having #N/A displayed

    use the IFERROR function

    eg =iferror((value),value_if_error)

    =iferror(IF(N32-(N32/100*80)<R32,"",IF(N32="",""," Warning 20% or less Remains!")))inset what you want here between " " or leave a space for a blank")

    sorry not in excel at the mo to test
    Last edited by somesoldiers; 09-18-2009 at 10:04 AM.

  3. #3
    Forum Contributor
    Join Date
    04-23-2009
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003 work, 2007 home
    Posts
    199

    Re: Amendment to formula required to avoid having #N/A displayed

    actually just noticed this will not work in 2003

    For 2003
    =if(iserror(IF(N32-(N32/100*80)<R32,"",IF(N32="",""," Warning 20% or less Remains!"))),"what you want instead of the NA",(IF(N32-(N32/100*80)<R32,"",IF(N32="",""," Warning 20% or less Remains!")))

    should do it or post a sample of your workbook and I'll do it for you
    Last edited by somesoldiers; 09-18-2009 at 01:48 PM.

  4. #4
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Thumbs up Re: Amendment to formula required to avoid having #N/A displayed

    somesoldiers

    many thanks for the code it worked as required


    Thanks again


    Rob
    Last edited by robertguy; 11-05-2009 at 10:24 AM. Reason: To mark Resolved

+ 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