+ Reply to Thread
Results 1 to 5 of 5

Adding an Error to a formula for Excel 2003

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    18

    Smile Adding an Error to a formula for Excel 2003

    Hi,

    Hoping someone can help with a fomula concept that i need.

    I have used Match and Index to return a value of a cell in a data range as follows :

    =INDEX(DATA!$A$1:$O$1793,MATCH($A$10,DATA!$A$1:$A$1793,0),MATCH($B$10,DATA!$A$1:$O$1,0))

    This is used to match a name that i key into cell A10 in the range selected in the Data Sheet in Column A and a reference that i key into cell B10 and locates a response. My problem is that some weeks certain items aren't in the DATA and instead of it returning '#N/A' i need it to return zero.

    I have managed to this this in Excel 2007 by just wrapping the whole formula with an IFERROR (). This works ok but most of my colleagues are using excel 2003 and IFERROR doesn't work.

    So i have tried to use an =IF(ISERROR fomula (below) but 1) Is it right?? and 2) Can it be done easier??

    =IF(ISERROR(INDEX(DATA!$A$1:$O$1793,MATCH($A$10,DATA!$A$1:$A$1793,0),MATCH($B$10,DATA!$A$1:$O$1,0))),0,INDEX(DATA!$A$1:$O$1793,MATCH($A$10,DATA!$A$1:$A$1793,0),MATCH($B$10,DATA!$A$1:$O$1,0)))

    Would be grateful for any help...
    Last edited by Cra5h; 03-06-2013 at 02:20 PM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Adding an Error to a formula for Excel 2003

    1) Is it right??
    Yep its fine

    and 2) Can it be done easier??
    Unfortunately not
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Adding an Error to a formula for Excel 2003

    Try this...

    =IF(COUNT(MATCH($A$10,DATA!$A$1:$A$1793,0)+MATCH($B$10,DATA!$A$1:$O$1,0)),VLOOKUP($A$10,DATA!$A$1:$O$1793,MATCH($B$10,DATA!$A$1:$O$1,0),0),0)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    07-11-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    18

    Wink Re: Adding an Error to a formula for Excel 2003

    Thanks Tony,

    That seems to work fine on mine, but will it work with excel 2003?

    Cheers

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Adding an Error to a formula for Excel 2003

    Yes, it will work in any version of Excel.

+ 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