+ Reply to Thread
Results 1 to 4 of 4

Need a formula

  1. #1
    rkemper
    Guest

    Need a formula

    I need to create a formula that will convert "#N/A" to a specific value.
    Specifically, cell A1 contains a VLOOKUP formula in which the value "#N/A" is
    displayed when the formula is FALSE (the lookup value is not found), which is
    correct.

    I need to create another formula that will automatically convert #N/A to
    100%, but leave any other values as is. For example, if A1 displays "#N/A"
    then I need it to be converted to read 100%. But if A1 displays 70% then I
    need it to remain the same.
    --
    Thanks!

    RKEMPER

  2. #2
    John Michl
    Guest

    Re: Need a formula

    Try
    =IF(ISERROR(VLOOKUP,a1,B1:C10,2,FALSE),100%,VLOOKUP,a1,B1:C10,2,FALSE)

    - John


  3. #3
    Duke Carey
    Guest

    Re: Need a formula

    Or use ISNA() instead of ISERROR()

    =if(isna([vlookup formula or cell reference]), 1,[vlookup formula or cell
    reference])

    "John Michl" wrote:

    > Try
    > =IF(ISERROR(VLOOKUP,a1,B1:C10,2,FALSE),100%,VLOOKUP,a1,B1:C10,2,FALSE)
    >
    > - John
    >
    >


  4. #4
    Ken Wright
    Guest

    Re: Need a formula

    If the error is #NA then it should be ISNA used, else ISERROR may hide other
    inadvertant errors.

    --
    Regards
    Ken....................... Microsoft MVP - Excel
    Sys Spec - Win XP Pro / XL 97/00/02/03

    ------------------------------*------------------------------*----------------
    It's easier to beg forgiveness than ask permission :-)
    ------------------------------*------------------------------*----------------

    "John Michl" <waxwing1@gmail.com> wrote in message
    news:1143574325.906543.213920@i40g2000cwc.googlegroups.com...
    > Try
    > =IF(ISERROR(VLOOKUP,a1,B1:C10,2,FALSE),100%,VLOOKUP,a1,B1:C10,2,FALSE)
    >
    > - John
    >




+ 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