+ Reply to Thread
Results 1 to 10 of 10

Index match formula help - get nth non blank text

  1. #1
    Registered User
    Join Date
    08-22-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    5

    Index match formula help - get nth non blank text

    Hello, I manage to get the formula for 1st non blank text, but have problem for next non blank text formula. I need help for formula to get nth non blank text (yellow cell in attachment)

    Picture3.jpg

    TIA
    Jason

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

    Re: Index match formula help - get nth non blank text

    Pls attach a sample excel file
    Samba

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

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

    Re: Index match formula help - get nth non blank text

    In the absence of a sample file, this will get you there.

    In C16, enter this array formula and drag it to the right:

    =IFERROR(INDEX(5:9,MATCH($B$16,$B$5:$B$9,0),SMALL(IF(INDEX($C$5:$L$9,MATCH($B$16,$B$5:$B$9,0),)<>"",COLUMN($C$5:$L$9)),COLUMNS($A:A))),"")



    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use 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 brackets yourself - it won't work...
    Attached Files Attached Files
    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
    08-22-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Index match formula help - get nth non blank text

    Hi Glenn,

    thanks that works.
    & sorry about not attachment. I can't get attachment to work, it just shows a blank box when I click it.
    Now I need help to get the correct header in case of duplicated content (yellow highlight)

    Picture1.jpg

    Thanks again
    Jason

  5. #5
    Registered User
    Join Date
    08-22-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Index match formula help - get nth non blank text

    This is sample file

    Book 1, r2.xlsx

    Regards
    Jason

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

    Re: Index match formula help - get nth non blank text

    Onw way (array formula, again):

    =IFERROR(INDEX($4:$4,SMALL(IF(INDEX($C$5:$L$9,MATCH($B$16,$B$5:$B$9,0),)=C16,COLUMN($C$5:$L$9)),COUNTIF($C16:C16,C16))),"")





    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
    Attached Files Attached Files

  7. #7
    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,025

    Re: Index match formula help - get nth non blank text

    Minor tweak needed (not in sheet above):

    =IFERROR(IF(C16="","",INDEX($4:$4,SMALL(IF(INDEX($C$5:$L$9,MATCH($B$16,$B$5:$B$9,0),)=C16,COLUMN($C$5:$L$9)),COUNTIF($C16:C16,C16)))),"")

  8. #8
    Registered User
    Join Date
    08-22-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Index match formula help - get nth non blank text

    haha was about to ask you to clear that issue. Your tweak did it!!
    Thanks 1 million

    Jason

  9. #9
    Registered User
    Join Date
    08-22-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Index match formula help - get nth non blank text

    I'll just make some QC check before marking the tread as [SOLVED]

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

    Re: Index match formula help - get nth non blank text

    No problem. Just shout if you hit any snags.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. Creating INDEX MATCH MATCH formula based off text in cells
    By bbkdude in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-26-2017, 10:37 AM
  2. [SOLVED] show cell blank instead of 0 or error after index match formula
    By tabkaz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-23-2016, 01:46 AM
  3. 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
  4. 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
  5. [SOLVED] INDEX/MATCH formula doesn't like blank cells.
    By Big.Moe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-07-2015, 01:40 PM
  6. I want to exclude blank cell in index match formula with multiple criteria
    By NOOR8225 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-16-2013, 06:51 AM
  7. [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

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