+ Reply to Thread
Results 1 to 11 of 11

Need Help to remove #N/A from a cell

  1. #1
    Registered User
    Join Date
    05-29-2020
    Location
    Leeds UK
    MS-Off Ver
    Office 365
    Posts
    4

    Question Need Help to remove #N/A from a cell

    Hi all
    I have formula
    =IF(T19="Labour",VLOOKUP(Q19,Labour!$D$9:$K$84,8,FALSE),IF(T19="Plant",VLOOKUP(Q19,Plant!$D$14:$I$156,6,FALSE),IF(T19="Materials",VLOOKUP(Q19,Materials!$D$3:$O$86,11,FALSE),IF(T19="Subcontractor",VLOOKUP(Q19,Subcontractors!$D$3:$J$94,7,FALSE),"0"))))

    It is looking up rates in various sheets based on the item from a drop down in cell Q19. If Q19 is blank or not an item in the drop down list I get a #N/A in the cell where the rate should appear.

    How can I stop the #N/A?

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Need Help to remove #N/A from a cell

    Add iferror maybe:

    Please Login or Register  to view this content.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Need Help to remove #N/A from a cell

    Or:

    =IFNA(IF(T19="Labour",VLOOKUP(Q19,Labour!$D$9:$K$84,8,FALSE),IF(T19="Plant",VLOOKUP(Q19,Plant!$D$14:$I$156,6,FALSE),IF(T19="Materials",VLOOKUP(Q19,Materials!$D$3:$O$86,11,FALSE),IF(T19="Subcontractor",VLOOKUP(Q19,Subcontractors!$D$3:$J$94,7,FALSE),"0")))),"")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    Re: Need Help to remove #N/A from a cell

    Be aware that the IFERROR function should be used with caution as it hides ALL errors, not only N/A...
    That why Ali very wisely avoided it

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Need Help to remove #N/A from a cell

    Easy to say, however IFNA is not available in some earlier versions. YOu'd have to use:

    =IF(ISNA(formula),"",formula)

  6. #6
    Registered User
    Join Date
    05-29-2020
    Location
    Leeds UK
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Need Help to remove #N/A from a cell

    Thanks everyone for your help.
    Now on to the next issue.... watch this space!

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Need Help to remove #N/A from a cell

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  8. #8
    Registered User
    Join Date
    05-29-2020
    Location
    Leeds UK
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Need Help to remove #N/A from a cell

    Thanks Ali

    I need a little more help with this!
    In the "" at the end of the formula I have input the word "error" but is it possible that if Q19 is blank to just put a zero in the cell?

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Need Help to remove #N/A from a cell

    Yes!

    Change "" to 0.

  10. #10
    Registered User
    Join Date
    05-29-2020
    Location
    Leeds UK
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Need Help to remove #N/A from a cell

    I am looking for two options, because Q19 is a drop down list if something that is not on the list is entered it will show an error from the "error" but if its left blank it still shows Error. If its blank an it remain zero?
    Sorry for being a pain!!!

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Need Help to remove #N/A from a cell

    This?


    =IF(Q19="",0,IFNA(IF(T19="Labour",VLOOKUP(Q19,Labour!$D$9:$K$84,8,FALSE),IF(T19="Plant",VLOOKUP(Q19,Plant!$D$14:$I$156,6,FALSE),IF(T19="Materials",VLOOKUP(Q19,Materials!$D$3:$O$86,11,FALSE),IF(T19="Subcontractor",VLOOKUP(Q19,Subcontractors!$D$3:$J$94,7,FALSE),"0")))),""))

+ 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: 1
    Last Post: 04-17-2017, 01:42 PM
  2. [SOLVED] Remove lines based on cell value (remove lines in range, not entire row)
    By Tapyr in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-27-2015, 07:31 AM
  3. How can i remove remove the last "?" from a cell/url string?
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-21-2015, 02:13 PM
  4. Replies: 6
    Last Post: 03-03-2014, 02:28 PM
  5. Replies: 1
    Last Post: 03-05-2011, 12:37 PM
  6. [SOLVED] Excel 2007 : Remove unwanted cell fill from blank cell
    By tradersteve in forum Excel General
    Replies: 4
    Last Post: 09-21-2010, 03:45 AM
  7. Replies: 5
    Last Post: 07-14-2009, 10:30 AM

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