+ Reply to Thread
Results 1 to 12 of 12

Ignore blanks in Index/Match

  1. #1
    Registered User
    Join Date
    09-20-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    98

    Ignore blanks in Index/Match

    Can anyone suggest how to edit this code to ignore any blanks in column AC?

    Thanks

    Please Login or Register  to view this content.
    Last edited by dazbear; 01-25-2018 at 01:54 PM.

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

    Re: Ignore blanks in Index/Match

    We can't really see what it's doing...

    Is there any reason why you are using the old IF(ISERROR( style of error trap? Is the sheet being shared with users with Excel 2003 and earlier?

    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

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

    Re: Ignore blanks in Index/Match

    can you also explain what you WANT the formula to do??

  4. #4
    Registered User
    Join Date
    09-20-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    98

    Re: Ignore blanks in Index/Match

    Unfortunately I cannot upload any sample due to strict rules applied this end

    Basically it lists pupils in groups according to a given score (in this case identified in J5).

    Source:
    Pupil Names in AB
    Pupil Scores in AC
    Idenitifier in J5 (in the case of +2 or more)

    I have similar code for scores such as 0, +1, -1 etc all of which works really well.

    The issue with this particularly 'group/list' code is that it pulls together any pupils with a score of '+2 or more'. This then also reports any pupils with a blank in column AC


    Please Login or Register  to view this content.

  5. #5
    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,063

    Re: Ignore blanks in Index/Match

    That doesn't help!!

    What is in K4 and K5? Where is the formula? In the case of the attached file, what are the expected results?
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-20-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    98

    Re: Ignore blanks in Index/Match

    I have got permission to upload a dummy....
    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,063

    Re: Ignore blanks in Index/Match

    If you can upload dummy data, modify my sample file and upload it. Otherwise... (you're a teacher)... use your language skills to describe everthing succinctly and clearly.


    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.

  8. #8
    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,063

    Re: Ignore blanks in Index/Match

    Hi. OK. I have twiddled with your formula, to make it more efficient (only calculating once, and a non array formula). Now that I understand what's going on... what changes do you need , or have I accidentally solved your problem. Hidden columns have been deleted.

    =IFERROR(INDEX($X:$X,AGGREGATE(15,6,ROW($Y$5:$Y$34)/($Y$5:$Y$34<=-2),ROWS($1:1))),"")

    and similar...
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    09-20-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    98

    Re: Ignore blanks in Index/Match

    Thanks for you time on this and your code is certainly is much more efficient.

    However my original issue remains. Column G (in your updated version) is still including pupils with blanks in column Y (eg Yasmine)

    Last edited by dazbear; 01-25-2018 at 03:38 PM.

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

    Re: Ignore blanks in Index/Match

    Simples... to coin a phrase... try this, variants of:

    =IFERROR(INDEX($X:$X,AGGREGATE(15,6,ROW($Y$5:$Y$34)/(($Y$5:$Y$34<=-2)*($Y$5:$Y$34<>"")),ROWS($1:1))),"")
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    09-20-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    98

    Re: Ignore blanks in Index/Match

    Brilliant!

    Thanks for your time on this

  12. #12
    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,063

    Re: Ignore blanks in Index/Match

    You're welcome.



    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. [SOLVED] Index Match Blanks
    By Delta729 in forum Excel General
    Replies: 2
    Last Post: 10-07-2017, 05:58 PM
  2. Getting INDEX MATCH MATCH to ignore blanks
    By JK_Nation in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-08-2016, 05:44 PM
  3. Search Through a Column to Find Match, ignore blanks return Value
    By lmc2016 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2016, 11:39 AM
  4. [SOLVED] Ignore N/A in INDEX MATCH sum
    By KML1976 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-02-2016, 10:31 AM
  5. Ignore Blanks for INDEX/MATCH with multiple criteria search
    By Stephen23 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2015, 09:14 AM
  6. 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
  7. [SOLVED] Ignore if NA in index/match
    By anon in forum Excel General
    Replies: 5
    Last Post: 06-16-2014, 09:32 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