+ Reply to Thread
Results 1 to 7 of 7

Index Match How to avoid blank cells

  1. #1
    Registered User
    Join Date
    11-11-2015
    Location
    North Carolina, USA
    MS-Off Ver
    2013
    Posts
    92

    Index Match How to avoid blank cells

    Hi,

    I'm trying to use an index match and the column where I'm trying to return data has blank cells in it. The formula I tried but didn't work was:

    =INDEX(F2:F2000,IF(F2:F2000<>"",MATCH,A1,A2:A2000,0)))

    The problem I'm running into is that the data I'm trying to return on an entry occurs after a blank and that entire entry is skipped. Below is an example so you can see what's causing my issue.

    order A return data
    order A blank
    order B blank
    order B return data
    order B return data

    So order A will allow to me return the information I'm trying to grab for that order but on B because it's first cell is blank all of order B is skipped and I can't return that piece of data I'm trying to get.

    thanks for the help.

  2. #2
    Registered User
    Join Date
    11-11-2015
    Location
    North Carolina, USA
    MS-Off Ver
    2013
    Posts
    92

    Re: Index Match How to avoid blank cells

    Also posted at:

    https://www.mrexcel.com/forum/excel-...ml#post4866015
    http://chandoo.org/forum/threads/ind...k-cells.35036/

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Index Match How to avoid blank cells

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  4. #4
    Registered User
    Join Date
    11-11-2015
    Location
    North Carolina, USA
    MS-Off Ver
    2013
    Posts
    92

    Re: Index Match How to avoid blank cells

    I've attached a sample workbook.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Index Match How to avoid blank cells

    In I2

    =IFERROR(INDEX(Sheet2!$F$2:$F$15,SMALL(IF((Sheet2!$A$2:$A$15=Sheet1!$C2)*(Sheet2!$F$2:$F$15<>""),ROW($F$2:$F$15)-ROW($F$2)+1),1)),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Index Match How to avoid blank cells

    It could be shorter

    **Must be entered with Ctrl+Shift+Enter key combination.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  7. #7
    Registered User
    Join Date
    11-11-2015
    Location
    North Carolina, USA
    MS-Off Ver
    2013
    Posts
    92

    Re: Index Match How to avoid blank cells

    awesome that worked. thank you.

+ 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 formula having trouble with blank cells.
    By Big.Moe in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-15-2017, 09:59 PM
  2. Using Match Index (Excluding Blank cells)
    By crazyarun2004 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-05-2017, 11:03 AM
  3. Index and Match where cells are blank
    By bigroo1958 in forum Excel General
    Replies: 10
    Last Post: 07-01-2015, 03:55 PM
  4. Excel index match, don't want blank cells in result
    By sambak2 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 12-20-2014, 05:22 AM
  5. INDEX and MATCH functions to sum data with blank cells
    By Simplex06 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-14-2013, 08:38 AM
  6. [SOLVED] INDEX and MATCH with Date format and Blank Cells
    By Pooger in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-16-2013, 09:22 PM
  7. [SOLVED] Index & Match on Blank Cells
    By itselflearn in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-11-2013, 02:28 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