+ Reply to Thread
Results 1 to 10 of 10

INDEX MATCH to ignore blank cells in array

  1. #1
    Registered User
    Join Date
    09-05-2019
    Location
    N/A
    MS-Off Ver
    For Mac 16.26
    Posts
    10

    INDEX MATCH to ignore blank cells in array

    Hi there!

    Struggling with using the INDEX MATCH function in my spreadsheet. My formula is currently returning only the first match result (which is often a blank), and not giving me the results of subsequent matches.

    This is what it looks like. Current formula being used in column X is:

    =INDEX($S$3:$S$300,MATCH($W3,$Q$3:$Q$300,0))

    Capture.JPG

    Thanks heaps for your help in advance!

    Cheers. :D
    Attached Files Attached Files
    Last edited by Leaflock; 09-05-2019 at 12:55 AM.

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: INDEX MATCH to ignore blank cells in array

    In "W3" which criteria. If you provide / attach sample workbook its more helpful.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Registered User
    Join Date
    09-05-2019
    Location
    N/A
    MS-Off Ver
    For Mac 16.26
    Posts
    10

    Re: INDEX MATCH to ignore blank cells in array

    Hi avk, I've added a picture to my first post to make it clearer.

  4. #4
    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,460

    Re: INDEX MATCH to ignore blank cells in array

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). 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.
    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.

  5. #5
    Registered User
    Join Date
    09-05-2019
    Location
    N/A
    MS-Off Ver
    For Mac 16.26
    Posts
    10

    Re: INDEX MATCH to ignore blank cells in array

    Thank you AliGW. Sample spreadsheet attached to first post. I manually added the desired results in a new column.

  6. #6
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: INDEX MATCH to ignore blank cells in array

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    09-05-2019
    Location
    N/A
    MS-Off Ver
    For Mac 16.26
    Posts
    10

    Re: INDEX MATCH to ignore blank cells in array

    UPDATE: Actually, just double-checked, this isn't quite working. This seems to only skip the first blank value, but if there are multiple blank values before a filled cell, it still returns a blank cell.

    Thanks so much avk, that worked perfectly!

    Very elegant solution too. You're the best. :D
    Last edited by Leaflock; 09-05-2019 at 01:32 AM.

  8. #8
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,901

    Re: INDEX MATCH to ignore blank cells in array

    Try this:

    =INDEX($S:$S,AGGREGATE(15,6,ROW($S$3:$S$8)/($S$3:$S$8<>"")/($Q$3:$Q$8=W3),1))

    Or:

    =LOOKUP(2,1/($Q$3:$Q$8=W3)/($S$3:$S$8<>""),$S$3:$S$8)

  9. #9
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: INDEX MATCH to ignore blank cells in array

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    09-05-2019
    Location
    N/A
    MS-Off Ver
    For Mac 16.26
    Posts
    10

    Re: INDEX MATCH to ignore blank cells in array

    Thanks Phuocam!

    I ended up using this formula, and added an IFERROR. Worked perfectly.

    =IFERROR(INDEX($S:$S,AGGREGATE(15,6,ROW($S$3:$S$300)/($S$3:$S$300<>"")/($Q$3:$Q$300=W3),1)),"")

+ 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: 3
    Last Post: 10-09-2019, 09:04 PM
  2. INDEX MATCH formula, ignore blank cells and define time frames
    By ChildishAlbino in forum Excel General
    Replies: 2
    Last Post: 02-16-2016, 03:16 PM
  3. How to ignore blanks in an Index/Match Array Formula
    By michaelcarrera in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-06-2015, 08:50 PM
  4. Replies: 0
    Last Post: 11-05-2014, 10:54 AM
  5. Get an array to ignore blank cells
    By moses67 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-16-2013, 11:37 AM
  6. [SOLVED] An INDEX MATCH formula has blank cell - need to ignore or delete
    By rls231 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-26-2013, 11:13 PM
  7. [SOLVED] Getting an array to ignore blank cells
    By Mike001 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-25-2013, 06:46 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