+ Reply to Thread
Results 1 to 7 of 7

Index Match Skip Blank rows

  1. #1
    Registered User
    Join Date
    08-09-2016
    Location
    New York
    MS-Off Ver
    Windows 10
    Posts
    7

    Index Match Skip Blank rows

    I've been scouring the internet and have found similar queries but nothing accomplishing exactly what I need. Hoping someone can help.

    So I have two columns with data as shown below:

    Column B Column M
    Big Lots Brian
    (blank cell) (blank cell)
    (blank cell) (blank cell)
    Law Office Melanie
    Xfinity Brian

    What I would like is a list in one column that shows:

    Column A
    Big Lots
    Xfinity

    In other words, I want to retrieve all of the values in Column B that have a value of "Brian" in Column M, but ignoring the blank rows.

    I know there is a way to do this, but am having trouble figuring it out.

    Thanks!

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Index Match Skip Blank rows

    Simplest way would be to use a pivot table.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Index Match Skip Blank rows

    But if you want a formula, this array formula will do it (assumes data start in row 2)

    =IFERROR(INDEX(B:B,SMALL(IF($M$2:$M$8="Brian",ROW($M$2:$M$8)),ROWS($1:1))),"")

    Array Formulae are a little different from ordinary formulas in that they MUST be 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 the outside of your formula. If you do not CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Index Match Skip Blank rows

    Try this array formula in A2. It can be dragged down
    Please Login or Register  to view this content.
    ARRAY formula is used

    To enter ARRAY formula
    Paste the formula
    Press F2
    Press Ctrl+Shift+Enter keys together.
    formula will be covered with{} brackets.

  5. #5
    Registered User
    Join Date
    08-09-2016
    Location
    New York
    MS-Off Ver
    Windows 10
    Posts
    7

    Re: Index Match Skip Blank rows

    Thanks! Totally saved me.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Index Match Skip Blank rows

    You're welcome. thanks for the feedback & Rep.

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Index Match Skip Blank rows

    Thanks for the feed back.

+ 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: 4
    Last Post: 03-24-2016, 03:20 PM
  2. Replies: 1
    Last Post: 03-13-2016, 10:29 PM
  3. Index Match Function? Ignore blank rows - (rows without values)
    By jgray in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-26-2015, 01:12 PM
  4. [SOLVED] IF name match, copy, if blank skip to next row
    By marek256 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-29-2014, 04:11 AM
  5. [SOLVED] Need help : Vlookup/index with skip blank/empty cell, problem!!!!
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-25-2013, 12:18 AM
  6. index match, ..... skip result if blank value ...... jump to next match
    By gehawk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-08-2013, 04:42 AM
  7. Match string in one column, return value in same row, skip rows that down't match
    By anilsen0711 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 05:35 AM

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