+ Reply to Thread
Results 1 to 11 of 11

INDEX MATCH MATCH first non-blank value

  1. #1
    Registered User
    Join Date
    11-22-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    5

    Post INDEX MATCH MATCH first non-blank value

    Hi all,

    I'm trying to get this formula to return the first non-blank cell: =+INDEX($A$1:$E$10,MATCH($A13,$A$1:$A$10,0),MATCH(B$12,$A$1:$E$1,0))

    I have tried e.g.
    =+INDEX($A$1:$E$10,MATCH($A14,$A$1:$A$10,0),MATCH(B$12,$A$1:$E$1,0),MATCH(TRUE,$A$1:$E$10<>"",0))

    But that returns #NA.

    The array contains formulas, and I want to get the first match where the formula has returned a value.

    Thank you in advance!

  2. #2
    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,133

    Re: INDEX MATCH MATCH first non-blank value

    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.

  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
    43,959

    Re: INDEX MATCH MATCH first non-blank value

    it's not clear what the logic is.

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    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
    Registered User
    Join Date
    11-22-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: INDEX MATCH MATCH first non-blank value

    Dear both,

    please find attached the mock-up.

    Many thanks in advance!
    K
    Attached Files Attached Files

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: INDEX MATCH MATCH first non-blank value

    Try

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


    ...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.

    There is problem in you row no 7 Circular reference. If you would delete the data in row 7 formula would work.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  6. #6
    Forum Contributor shivya's Avatar
    Join Date
    08-19-2017
    Location
    Delhi, India
    MS-Off Ver
    2013
    Posts
    240

    Re: INDEX MATCH MATCH first non-blank value

    Quote Originally Posted by shukla.ankur281190 View Post
    Try

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


    ...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.

    There is problem in you row no 7 Circular reference. If you would delete the data in row 7 formula would work.
    Not working.

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,911

    Re: INDEX MATCH MATCH first non-blank value

    h3=IFERROR(INDEX(INDEX($B$3:$E$11,,MATCH(H$2,$B$2:$E$2,0)),MATCH(1,INDEX((INDEX($B$3:$E$11,,MATCH(H$2,$B$2:$E$2,0))<>"")*($A$3:$A$11=$G3),0),0)),"")
    Try this and copy across
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  8. #8
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: INDEX MATCH MATCH first non-blank value

    Check the attached file.
    Attached Files Attached Files

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,911

    Re: INDEX MATCH MATCH first non-blank value

    Quote Originally Posted by shivya View Post
    Not working.
    It is workings as it an array formula please confirm the formula with Shift+Ctrl+Enter

  10. #10
    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,133

    Re: INDEX MATCH MATCH first non-blank value

    Try

    =IFERROR(INDEX(INDEX($B$3:$E$11,,MATCH(H$2,$B$2:$E$2,0)),SMALL(IF(($A$3:$A$11=$G3)*(INDEX($B$3:$E$11,,MATCH(H$2,$B$2:$E$2,0)))<>0,ROW($A$3:$A$11)-ROW($A$3)+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.

  11. #11
    Registered User
    Join Date
    11-22-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: INDEX MATCH MATCH first non-blank value

    Thanks a lot! This works perfectly - saves me a lot of time.

+ 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: 5
    Last Post: 02-18-2017, 11:21 AM
  2. Index/ Match Formula, How to return blank cell as a blank not 0
    By MDResearcher in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-24-2016, 08:40 PM
  3. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  4. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  5. 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
  6. Replies: 5
    Last Post: 02-29-2012, 08:51 PM
  7. Index Match: Show blank instead of #NA for no match
    By cedarhill in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-20-2011, 03:21 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