+ Reply to Thread
Results 1 to 6 of 6

Replace #N/A to <blanks> in INDEXMATCH function

  1. #1
    Registered User
    Join Date
    07-01-2015
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    66

    Replace #N/A to <blanks> in INDEXMATCH function

    I would like to replace all the #N/A values as a "blank"
    How to do it ?

    I have these few lines of codes

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,788

    Re: Replace #N/A to <blanks> in INDEXMATCH function

    You want the finished formula to be this:

    =IFERROR(INDEX('[PatientMerge.xls]2015'!$J1:$J10000,MATCH(C1,'[PatientMerge.xls]2015'!$J1:$J10000,0)),"")

    when it appears in the first cell.

    Hope this helps.

    Pete

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,492

    Re: Replace #N/A to <blanks> in INDEXMATCH function

    Same way you would in the worksheet, use IFERROR.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In the VBA, you will need to double up the quotes.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    07-01-2015
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    66

    Re: Replace #N/A to <blanks> in INDEXMATCH function

    OMG! That works . Thank you so much ^^ Appreciated!
    Last edited by fluffyvampirekitten; 07-27-2015 at 05:24 AM.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,492

    Re: Replace #N/A to <blanks> in INDEXMATCH function

    You're welcome.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,492

    Re: Replace #N/A to <blanks> in INDEXMATCH function

    @john55: Thanks for the rep.

+ 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] IndexMatch function not working properly
    By bubai in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-08-2015, 06:04 AM
  2. Need to replace 0's, #N/A and 1/0/00 with blanks
    By bdizness in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-05-2012, 04:58 PM
  3. Replace blanks/spaces
    By antony moseley in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-16-2009, 12:48 PM
  4. Replace 0s with blanks - IF statement
    By thomas.szwed in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-12-2007, 11:59 AM
  5. Search and replace blanks
    By SamanthaK in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-15-2006, 07:10 AM
  6. [SOLVED] replace blanks using formula
    By susiecc60 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-26-2006, 09:25 PM
  7. Need to get rid of 0's and replace with Blanks
    By Intuit in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2006, 04:55 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