Results 1 to 4 of 4
  1. #1
    3 Star Lounger
    Join Date
    Mar 2001
    Location
    Canton, Ohio, USA
    Posts
    270
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Error Type Formula (Excel 97)

    I am trying to use the error.type formula in EXCEL... specially @if(error.type(e1)=7, "No 2002 sales",e1). This formula is documented in the EXCEL help file. The formula works if the target cell (e1) contains the error value of #N/A, but if the target cell has a value say 10, the if statement formula does not display the 10 in the cell, it returns an #N/A value itself. There must a trick to this...thanks.

  2. #2
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Error Type Formula (Excel 97)

    Use ISNA(E1) in stead.
    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  3. #3
    3 Star Lounger
    Join Date
    Mar 2001
    Location
    Canton, Ohio, USA
    Posts
    270
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Error Type Formula (Excel 97)

    Thank you. Any idea why the error_type function is faulty?

  4. #4
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Error Type Formula (Excel 97)

    The help file for error.type says:

    "Returns a number corresponding to one of the error values in Microsoft Excel or returns the #N/A error if no error exists."

    That says that if there is no error, then the error.type function returns the #NA error. This stops the evaluation of the If statement and displays the error.
    Legare Coleman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •