+ Reply to Thread
Results 1 to 8 of 8

Removing #N/A from Cell after calculation

Hybrid View

  1. #1
    Registered User
    Join Date
    12-03-2018
    Location
    London
    MS-Off Ver
    2016
    Posts
    27

    Removing #N/A from Cell after calculation

    I am just starting to learn about Excel and am working on a spreadsheet, the problem is if the Vlook function doesnt provide a match from B17 and Sheet1!E:I,5,0, #N/A appears which causes an error message in another cell. How do you go about changing the code so it does the same calculation but if there is no match the cell remains empty. Any help appreciated



    =IF($G$4>Sheet1!$C$2,"",IF(VLOOKUP(B17,Sheet1!E:I,5,0)="","",VLOOKUP(B17,Sheet1!E:I,5,0)))

  2. #2
    Registered User
    Join Date
    10-17-2018
    Location
    Plymouth
    MS-Off Ver
    Excel 2021
    Posts
    96

    Re: Removing #N/A from Cell after calculation

    =IFERROR(IF($G$4>Sheet1!$C$2,"",IF(VLOOKUP(B17,Sheet1!E:I,5,0)="","",VLOOKUP(B17,Sheet1!E:I,5,0))),"")


    Try that

    You may need another bracket before the comma at the end.

  3. #3
    Registered User
    Join Date
    12-03-2018
    Location
    London
    MS-Off Ver
    2016
    Posts
    27

    Re: Removing #N/A from Cell after calculation

    Thanks aabbey for the help. Its working correctly now.

  4. #4
    Registered User
    Join Date
    10-17-2018
    Location
    Plymouth
    MS-Off Ver
    Excel 2021
    Posts
    96

    Re: Removing #N/A from Cell after calculation

    Quote Originally Posted by WWST View Post
    Thanks aabbey for the help. Its working correctly now.
    If it satisfied your requirement please give a reputation point. I only ask because it will be my first.

  5. #5
    Registered User
    Join Date
    12-03-2018
    Location
    London
    MS-Off Ver
    2016
    Posts
    27

    Re: Removing #N/A from Cell after calculation

    Quote Originally Posted by aabbey View Post
    If it satisfied your requirement please give a reputation point. I only ask because it will be my first.
    Just added it for you.

  6. #6
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,906

    Re: Removing #N/A from Cell after calculation

    It has been brought to our notice that you have cross-posted this query on another forum. Our rules require you to disclose this before you can get help here, so please provide the missing link to that other forum.

    No further help, please, until the link has been provided.

    Our forum rules are here: https://www.excelforum.com/forum-rul...rum-rules.html
    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.

  7. #7
    Registered User
    Join Date
    12-03-2018
    Location
    London
    MS-Off Ver
    2016
    Posts
    27

    Re: Removing #N/A from Cell after calculation

    I posted on 2 forums incase I didnt get a reply on one of the forums. I wont cross post again.

  8. #8
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,459

    Re: Removing #N/A from Cell after calculation

    Please post the link to your other post as requested and read this to understand why

+ 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. [SOLVED] Calculation of dates and leaving blank cell when calculation sees non-date values
    By Hedy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-22-2018, 07:52 AM
  2. Removing Holiday's from date calculation
    By Timjor in forum Excel General
    Replies: 9
    Last Post: 04-07-2014, 05:51 AM
  3. [SOLVED] Average a set of numbers any removing all zeros from calculation
    By helpbitte in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-24-2012, 07:31 PM
  4. Removing non existant values from an 'average calculation
    By alocke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-08-2012, 04:48 PM
  5. Removing column from calculation
    By rwqiii in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-24-2011, 09:11 PM
  6. Add an amount from a calculation to a cell with a calculation (Sample attached)
    By aiwnjoo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2010, 10:41 AM
  7. Replies: 23
    Last Post: 03-10-2006, 09:31 PM

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