+ Reply to Thread
Results 1 to 3 of 3

How to get a VLOOKUP+MATCH formula to return 0 and not N/A when MATCH doesnt work

  1. #1
    Registered User
    Join Date
    11-02-2016
    Location
    Sweden
    MS-Off Ver
    2013
    Posts
    21

    How to get a VLOOKUP+MATCH formula to return 0 and not N/A when MATCH doesnt work

    Hi,

    This is the formula I use =VLOOKUP(A3;'[Testbook.xlsm]Sheet1'!$C:$BW;MATCH($J$2;'[Testbook.xlsm]Sheet1'!$C$2:$BW$2;0);0)

    So I use the formula to copy data from a pivot table in another workbook if I have matches on A3 and J2. This is working great with one exception. I have roughly 30 columns containing this formula and under that 1000's of rows. What the formula does is look for a match on value from A3 and use the number from cell J2 to target a specific cell. The problem is that sometimes the value from J2 isn't in the pivot table and instead of returning 0 it returns N/A. How can I fix the formula to return 0 if the match value isn't there?

    There is no difference if I change J2 to the specific value (I don't want to do this, I want the workbook to be easy to use if I need to switch out target data in row 2)

    Thanks in advance

    /René

  2. #2
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: How to get a VLOOKUP+MATCH formula to return 0 and not N/A when MATCH doesnt work

    =IFERROR(VLOOKUP(A3;'[Testbook.xlsm]Sheet1'!$C:$BW;MATCH($J$2;'[Testbook.xlsm]Sheet1'!$C$2:$BW$2;0);0),0)

  3. #3
    Registered User
    Join Date
    11-02-2016
    Location
    Sweden
    MS-Off Ver
    2013
    Posts
    21

    Re: How to get a VLOOKUP+MATCH formula to return 0 and not N/A when MATCH doesnt work

    Thank you DannyJ, this worked perfectly.

+ 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] Index+Match+Match doesnt returns right values
    By SwissExcel in forum Excel General
    Replies: 10
    Last Post: 07-21-2015, 08:39 AM
  2. [SOLVED] Vlookup/index/match to return all values that match
    By Asil01 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-09-2014, 12:49 PM
  3. VLOOKUP/INDEX/MATCH to return all values that match
    By lijia00 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2014, 11:56 AM
  4. Match formula? as Vlookup will not work
    By kokapelly in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2013, 08:53 PM
  5. possible Vlookup or match formula to return results.
    By mcranda in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-02-2013, 03:16 PM
  6. [SOLVED] any Ideas Why this INDEX MATCH formula doesnt work ?
    By ecelaras in forum Excel General
    Replies: 13
    Last Post: 11-30-2012, 06:55 AM
  7. [SOLVED] IF test doesnt work to match data. Any ideas?
    By MyComputerGuy in forum Excel General
    Replies: 7
    Last Post: 11-12-2011, 04:23 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