+ Reply to Thread
Results 1 to 10 of 10

ISNA retuning "0" for a blank cell, Want to keep it blank

  1. #1
    Registered User
    Join Date
    06-03-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    ISNA retuning "0" for a blank cell, Want to keep it blank

    Hi All,
    I am a long time reader here but this is my second post. My Master-tracker is using two different worksheet as reference. I am using the following formula to get the values; however it returns "0" if its not getting any value in the source file.

    =IF(ISNA(VLOOKUP(A5,'[1112_Infill_WBB_Address_Analysis.xlsx]6.MNISData'!$A$2:$DG$1006,23,0)),VLOOKUP(A5,'[1112_Infill_Metro_Growth_Analysis.xlsx]6. MNIS Data'!$A$2:$DH$486,23,0),VLOOKUP(A5,'[1112_Infill_WBB_Address_Analysis.xlsx]6. MNIS Data'!$A$2:$DG$1006,23,0))

    Can you please help to get rid of this "0". I am using excel-2007.

    Thanks in advance!
    Last edited by Safaet; 02-17-2012 at 12:56 AM. Reason: Forgot my first post

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: ISNA retuning "0" for a blank cell, Want to keep it blank

    Hi Safaet,

    Try changing the last syntax of the formula to "" as shown in below formula:-

    =IF(ISNA(VLOOKUP(A5,'[1112_Infill_WBB_Address_Analysis.xlsx]6.MNISData'!$A$2:$DG$1006,23,0)),VLOOKUP(A5,'[1112_Infill_Metro_Growth_Analysis.xlsx]6. MNIS Data'!$A$2:$DH$486,23,0),"")

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Registered User
    Join Date
    06-03-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: ISNA retuning "0" for a blank cell, Want to keep it blank

    Thanks DILIPandey. I tried that formula but it's not working.
    Anyway, have you changed some part of the syntax? It might be the case for not working. Can you please revise it with the entire formula? As I mentioned before, the Master-tracker is taking values from two different worksheets, so I will require all parts of the formula. Will wait for some more comments.

    Appreciated!

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: ISNA retuning "0" for a blank cell, Want to keep it blank

    Is it possible that the reference that you are looking for is not in either file? perhaps that is why the results are not as expected?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: ISNA retuning "0" for a blank cell, Want to keep it blank

    =IF(ISNA(VLOOKUP(A5,'[1112_Infill_WBB_Address_Analysis.xlsx]6.MNISData'!$A$2:$DG$1006,23,0)),VLOOKUP(A5,'[1112_Infill_Metro_Growth_Analysis.xlsx]6. MNIS Data'!$A$2:$DH$486,23,0),VLOOKUP(A5,'[1112_Infill_WBB_Address_Analysis.xlsx]6. MNIS Data'!$A$2:$DG$1006,23,0))
    just breaking down your formula
    first formula
    logical because of the if= IF(ISNA(VLOOKUP(A5,'[1112_Infill_WBB_Address_Analysis.xlsx]6.MNISData'!$A$2:$DG$1006,23,0))

    second formula
    value if true -----VLOOKUP(A5,'[1112_Infill_Metro_Growth_Analysis.xlsx]6. MNIS Data'!$A$2:$DH$486,23,0)

    third formula
    value if false ---VLOOKUP(A5,'[1112_Infill_WBB_Address_Analysis.xlsx]6. MNIS Data'!$A$2:$DG$1006,23,0))

    where we'll the "" space be..
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: ISNA retuning "0" for a blank cell, Want to keep it blank

    why not use iferror as you are using 2007?

    iferror(VLOOKUP(A5,'[1112_Infill_WBB_Address_Analysis.xlsx]6. MNIS Data'!$A$2:$DG$1006,23,0)),VLOOKUP(A5,'[1112_Infill_Metro_Growth_Analysis.xlsx]6. MNIS Data'!$A$2:$DH$486,23,0))

    then to get blank if result is 0
    if(iferror(VLOOKUP(A5,'[1112_Infill_WBB_Address_Analysis.xlsx]6. MNIS Data'!$A$2:$DG$1006,23,0)),VLOOKUP(A5,'[1112_Infill_Metro_Growth_Analysis.xlsx]6. MNIS Data'!$A$2:$DH$486,23,0))=0,"",iferror(VLOOKUP(A5,'[1112_Infill_WBB_Address_Analysis.xlsx]6. MNIS Data'!$A$2:$DG$1006,23,0)),VLOOKUP(A5,'[1112_Infill_Metro_Growth_Analysis.xlsx]6. MNIS Data'!$A$2:$DH$486,23,0)))

    but it would be easier to custom format the cell 0;-0;;@
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Registered User
    Join Date
    06-03-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: ISNA retuning "0" for a blank cell, Want to keep it blank

    Hi FDbbins,
    That's my problem is as I mentioned in the original post.
    "My Master-tracker is using two different worksheet as reference. I am using the following formula to get the values; however it returns "0" if its not getting any value in the source file."
    AND I want to get rid of this "0"
    Thanks Anyway.

  8. #8
    Registered User
    Join Date
    06-03-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: ISNA retuning "0" for a blank cell, Want to keep it blank

    Quote Originally Posted by martindwilson View Post
    why not use iferror as you are using 2007?

    iferror(VLOOKUP(A5,'[1112_Infill_WBB_Address_Analysis.xlsx]6. MNIS Data'!$A$2:$DG$1006,23,0)),VLOOKUP(A5,'[1112_Infill_Metro_Growth_Analysis.xlsx]6. MNIS Data'!$A$2:$DH$486,23,0))

    then to get blank if result is 0
    if(iferror(VLOOKUP(A5,'[1112_Infill_WBB_Address_Analysis.xlsx]6. MNIS Data'!$A$2:$DG$1006,23,0)),VLOOKUP(A5,'[1112_Infill_Metro_Growth_Analysis.xlsx]6. MNIS Data'!$A$2:$DH$486,23,0))=0,"",iferror(VLOOKUP(A5,'[1112_Infill_WBB_Address_Analysis.xlsx]6. MNIS Data'!$A$2:$DG$1006,23,0)),VLOOKUP(A5,'[1112_Infill_Metro_Growth_Analysis.xlsx]6. MNIS Data'!$A$2:$DH$486,23,0)))

    but it would be easier to custom format the cell 0;-0;;@
    Hi Martin,
    It's perfect! You saved my time, mate! So Many Thanks!!

    Regards,
    Safaet

  9. #9
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: ISNA retuning "0" for a blank cell, Want to keep it blank

    Don't quote whole posts -- it's just clutter.

    If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding.

  10. #10
    Registered User
    Join Date
    06-03-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: ISNA retuning "0" for a blank cell, Want to keep it blank

    Quote Originally Posted by arthurbr View Post
    Don't quote whole posts -- it's just clutter.
    Noted, Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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