+ Reply to Thread
Results 1 to 4 of 4

Cell returning the value of "0", required it to be empty

  1. #1
    Registered User
    Join Date
    06-23-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    70

    Cell returning the value of "0", required it to be empty

    The 2nd sheet (Form) has a data validation. Cell B1 is dropdown list, it will retrieve the data from first sheet, however when a data is empty or null on first sheet, it will return "0". I want it to be just an empty cell. To see the example, choose these following Door No. ATC0001, ATC0002, ATC0003, it will display "0" on certain values. Then compare it on the first sheet to see which cells are empty.Auto_Populate.xlsx
    Last edited by miss_chloe; 10-26-2013 at 02:16 AM. Reason: wrong file attached

  2. #2
    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
    52,917

    Re: Cell returning the value of "0", required it to be empty

    All of your data shows values, so I was unable to replicate your "problem" unless I deleted some data.

    try adding another IF() statement - this is for the last line...
    =IF(INDEX(Source!$E$2:$E$1000,MATCH($B$1,Source!$A$2:$A$1000,0))=0,"",IFERROR(INDEX(Source!$E$2:$E$1000,MATCH($B$1,Source!$A$2:$A$1000,0)),""))

    If you will always have "door" numbers, you can remove the IFERROR part and just use...
    =IF(INDEX(Source!$E$2:$E$1000,MATCH($B$1,Source!$A$2:$A$1000,0))=0,"",INDEX(Source!$E$2:$E$1000,MATCH($B$1,Source!$A$2:$A$1000,0))
    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

  3. #3
    Registered User
    Join Date
    06-23-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Cell returning the value of "0", required it to be empty

    Thank you very much it works.

  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
    52,917

    Re: Cell returning the value of "0", required it to be empty

    Happy to help and thanks for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 8
    Last Post: 07-12-2017, 05:32 PM
  2. [SOLVED] Matching info from cell to cell and returning "Yes" or "No"
    By hammer2 in forum Excel General
    Replies: 14
    Last Post: 07-19-2012, 05:43 AM
  3. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  4. Replies: 4
    Last Post: 02-03-2008, 05:11 PM
  5. Replies: 3
    Last Post: 12-14-2006, 01:36 PM

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