+ Reply to Thread
Results 1 to 4 of 4

Remove #n/a error message

  1. #1
    Registered User
    Join Date
    12-30-2007
    Posts
    5

    Remove #n/a error message

    Hi all.

    I'm pulling info to one of my sheets from another sheet using the Include and Match functions.

    However, when it tries to pull information from a cell that doesn't have any information in it, it puts an "#N/A" into the cell, which makes any calculations made on that column useless.

    Is there a way I can get the cell to display a "0" or a text string instead of the "#N/A"?

    The function I use to get information into those cells is as follows:

    =IF(INDEX('Shipped Items'!D:D,MATCH('Project Sheet'!C7,'Shipped Items'!C:C,0),1)>0,INDEX('Shipped Items'!D:D,MATCH('Project Sheet'!C7,'Shipped Items'!C:C,0),1),"")

    Thanks for any help you can provide.

    Reymus

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =IF(ISNA(INDEX('Shipped Items'!D:D,MATCH('Project Sheet'!C7,'Shipped Items'!C:C,0),1)),0,IF(INDEX('Shipped Items'!D:D,MATCH('Project Sheet'!C7,'Shipped Items'!C:C,0),1)>0,INDEX('Shipped Items'!D:D,MATCH('Project Sheet'!C7,'Shipped Items'!C:C,0),1),""))
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    12-30-2007
    Posts
    5
    So, the stupid question is, which part of what you just gave me actually puts the "0" into the cell if it's not pulling anything from the other sheet?

  4. #4
    Registered User
    Join Date
    12-30-2007
    Posts
    5
    Never mind. I just opened my eyes enough to figure it out.

+ 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