Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Feb 2001
    Location
    Louisville, Kentucky, USA
    Posts
    605
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Index (Excel 2000)

    I'm using the following code to retrieve the respective values from another worksheet and all is well expect for 1 minor issue.

    <hr>
    =INDEX('0607'!$C$12:$BC$12,MATCH(B10,'0607'!$C$1:$ BC$1,0))
    <hr>

    The problem I'm having is:

    B10 has "AD" in the cell BUT "AD" isn't in the range of 0607!C1:BC1. If that happens "N/A" is the value in the cell where the formula is. I need this value to be a 0, what am I missing?

    I was hoping someone could provide the missing peice of syntax I need. In Access it would be something along the line of Nz, but I've tried that here and it doesn't work.
    Roberta Price <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Index (Excel 2000)

    Try

    =IF(ISNUMBER(MATCH(B10,'0607'!$C$1:$BC$1,0)),INDEX ('0607'!$C$12:$BC$12,MATCH(B10,'0607'!$C$1:$BC$1,0 )),0)

    The formula tests if MATCH results in a valid number; if so, it returns the result of the INDEX function, otherwise it returns 0.

  3. #3
    5 Star Lounger
    Join Date
    Feb 2001
    Location
    Louisville, Kentucky, USA
    Posts
    605
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Index (Excel 2000)

    Works PERFECTLY.....thanks!
    Roberta Price <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>

Posting Permissions

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