+ Reply to Thread
Results 1 to 7 of 7

Index/Match f(x) which Skips Blanks in Arrays

  1. #1
    Registered User
    Join Date
    10-16-2019
    Location
    California
    MS-Off Ver
    Latest
    Posts
    15

    Index/Match f(x) which Skips Blanks in Arrays

    Hello Everyone:

    I would greatly appreciate some help. I would like to insert an INDEX/MATCH function in cell B2:B2 in sheet one by pulling data from sheet 2. I've searched this forum and several other fora but I can't find the correct way to formulate an INDEX/MATCH function which skips blank rows. Below is data regarding to give context to my question. This is my first post! Best regards.

    Sheet 1

    A B
    Unit Tenant
    -250B
    -150
    -190D

    Sheet 2


    B C
    -250B CHERRY IMPROVEMENT ASSOCIATION
    [BLANK] [BLANK]
    [BLANK] [BLANK]
    -190D BERRY PALACE RESTAURANT
    [BLANK] [BLANK]
    -150 WANYE PLAZA DENTAL GROUP
    Last edited by fbinaghi; 10-16-2019 at 06:55 PM.

  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,725

    Re: Index/Match f(x) which Skips Blanks in Arrays

    Try this in B2 of Sheet1:

    =IFERROR(VLOOKUP(A2,Sheet2!B:C,2,0),"")

    then copy down as required.

    Hope this helps.

    Pete

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

    Re: Index/Match f(x) which Skips Blanks in Arrays

    Ah, you have just edited your first post while I was composing my reply. Try this instead:

    =IF(A2="","",IFERROR(VLOOKUP(A2,Sheet2!B:C,2,0),""))

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    10-16-2019
    Location
    California
    MS-Off Ver
    Latest
    Posts
    15

    Re: Index/Match f(x) which Skips Blanks in Arrays

    Hello Pete:

    Thank you for your quick response. All I receive in my cell is a blank; in addition, regarding the type of data I am dealing with, the function shouldn't return a blank, i.e., (""), so perhaps an IFERROR or IFNA isn't what I need in this situation. In the past I believe I used a formula where 1 was divided by the same index and match formula. There was an ISNA nested in the INDEX/MATCH formula? What I really need is some way to have index and match skip the blank rows which is generated by my accounting software when it outputs to excel. Best regards.

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

    Re: Index/Match f(x) which Skips Blanks in Arrays

    Did you see my follow-up in Post #3?

    Pete

  6. #6
    Registered User
    Join Date
    10-16-2019
    Location
    California
    MS-Off Ver
    Latest
    Posts
    15

    Re: Index/Match f(x) which Skips Blanks in Arrays

    Yes. Upon closer inspection of my input of the formula, I was able to have it return the correct values from the data sheet. Be that as it may, what if I were to have to use an alternative to VLOOKUP due to it's limitation of "looking left" if I remember correctly? Is there an INDEX/MATCH will could achieve the same result? I work with several accounting reports which are output in different formats.

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

    Re: Index/Match f(x) which Skips Blanks in Arrays

    Instead of this formula:

    =IF(A2="","",IFERROR(VLOOKUP(A2,Sheet2!B:C,2,0),""))

    you could use this INDEX/MATCH equivalent:

    =IF(A2="","",IFERROR(INDEX(Sheet2!C:C,MATCH(A2,Sheet2!B:B,0)),""))

    Hope this helps.

    Pete

    P.S. If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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 two arrays
    By T86157 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-22-2017, 04:46 PM
  2. Index/match that skips null rows
    By kilohotel77 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-31-2016, 11:08 AM
  3. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  4. [SOLVED] Formula for filtering that skips blanks?
    By jenlookxl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2012, 05:08 PM
  5. Sum Index Match Arrays
    By CaesarBob in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-19-2012, 04:38 AM
  6. [SOLVED] Index & Match returning incorrect value. Arrays fixed and exact match used.
    By SDes in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-07-2012, 08:29 PM
  7. [SOLVED] code skips blanks in data
    By Alan M in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-10-2005, 08:05 AM

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