+ Reply to Thread
Results 1 to 6 of 6

IF and VLOOKUP Calculations so it does not return N/A

  1. #1
    Registered User
    Join Date
    12-09-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    MS Office 2010
    Posts
    19

    IF and VLOOKUP Calculations so it does not return N/A

    hello,

    I am trying to figure a formula that will perform the calculation if it is greater than 0, otherwise I want it to return 0 or leave it blank.

    for example

    Cell A13 has the initial of CH.

    In another tab, I have the initial on the left side and dollar value on the right. So i.e CH $10.00

    So in A14, i want it to have $10.00 as it corresponds with the initial. However, if the other tab has no amount, it returns a "N/A". I want it to say 0 or blank instead of N/A.

    Currently my formula in A14 is VLOOKUP(A13,WorkOrderList,2) which works fine when there is a value in column 2 in the other tab, but returns N/A if blank.

    I am trying to see if I can do a formula where if the vlookup value returns a number greater than 0 then calculate the vlookup, otherwise blank. not sure if this is possible or the best way.

    Any ideas would be appreciated!

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

    Re: IF and VLOOKUP Calculations so it does not return N/A

    Try this:

    =IF(VLOOKUP(A13,WorkOrderList,2)="","",VLOOKUP(A13,WorkOrderList,2))

    or:

    =IFERROR(VLOOKUP(A13,WorkOrderList,2),"")
    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.

  3. #3
    Registered User
    Join Date
    12-09-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    MS Office 2010
    Posts
    19

    Re: IF and VLOOKUP Calculations so it does not return N/A

    it is still returning N/A

  4. #4
    Forum Contributor
    Join Date
    05-18-2012
    Location
    Chicopee, Ma
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    196

    Re: IF and VLOOKUP Calculations so it does not return N/A

    You could use iferror, this formula is from one of my spreadsheets, =IFERROR(VLOOKUP(Q64,'Department standard hour list'!$A$2:$D$390,4,FALSE)*P64,0) this formula returns a value of 0 instead of N/A.
    IFERROR in other words if N/A return 0 (see the last part of the formula)
    Hope that helps

  5. #5
    Registered User
    Join Date
    12-09-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    MS Office 2010
    Posts
    19

    Re: IF and VLOOKUP Calculations so it does not return N/A

    Just saw your reply if with the Iferror and that one works. thank you so much!

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: IF and VLOOKUP Calculations so it does not return N/A

    You're welcome!

+ 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: 0
    Last Post: 12-22-2015, 08:24 PM
  2. Replies: 1
    Last Post: 10-16-2014, 04:29 PM
  3. [SOLVED] Easiest way to return a blank cell that can be used in subsequent calculations
    By GavJ in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-15-2013, 01:15 AM
  4. Multiple calculations then return lowest value
    By whitetoo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-03-2013, 04:41 PM
  5. Replies: 2
    Last Post: 08-17-2010, 10:08 PM
  6. Look up text and return cell address which can be used for calculations
    By redseal in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-01-2007, 06:34 PM
  7. [SOLVED] vlookup and calculations
    By antonov in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-19-2005, 07:30 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