+ Reply to Thread
Results 1 to 8 of 8

ignore blanks

  1. #1
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    ignore blanks

    this formula is working fine up to 20 but i need it to go to 100 but sometimes here is more blanks than results

    =INDEX($A$5:$A$20,MODE(MATCH($A$5:$A$20,$A$5:$A$20,0)))

    how do i get excel to ignore the blanks and give the expected result?

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

    Re: ignore blanks

    Exactly the same issue is currently being discussed here: https://www.excelforum.com/excel-for...ber-error.html

    I would not normally suggest you hijack another thread, but in this particular case, as this is coincidentally an almost identical request, you might want to look in there.
    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.

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

    Re: ignore blanks

    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

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,913

    Re: ignore blanks

    This link will show you how to avoid the Blank cells.

    https://exceljet.net/formula/most-fr...occurring-text
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Ireland
    MS-Off Ver
    Microsoft 365
    Posts
    403

    Re: ignore blanks

    Got the correct fix from here https://www.excelforum.com/excel-for...ber-error.html thank youo AliGW i used this but changed what i need from this


    =INDEX(C5:C5000,0,MODE(IF(C5:C5000<>"",MATCH(C5:C5000,C5:C5000,0))))

    to this

    =INDEX($A$5:$A$100,1,MODE(IF(A5:A100<>"",MATCH($A$5:$A$100,$A$5:$A$100,0))))

    this was the original i posted

    =INDEX($A$5:$A$20,MODE(MATCH($A$5:$A$20,$A$5:$A$20,0)))

    than you all for your help

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: ignore blanks

    or maybe this one normal entered:
    =INDEX($A$5:$A$2o,MODE(MATCH($A$5:$A$2o,NOT(ISBLANK($A$5:$A$2o))*$A$5:$A$2o,0)))

    change o to 0

  7. #7
    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
    81,247

    Re: ignore blanks

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

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: ignore blanks

    or =INDEX($A$5:$A$100,MODE(IF(A5:A100<>"",MATCH($A$5:$A$100,$A$5:$A$100,0))),) (CSE)

    ignore my previous post
    Last edited by sandy666; 07-21-2017 at 08:56 AM.

+ 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. Ignore the blanks
    By ailismanzoni in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-19-2017, 08:41 AM
  2. Ignore blanks powerpivot
    By stephme55 in forum Excel General
    Replies: 0
    Last Post: 08-22-2016, 06:40 PM
  3. VBA code finds blanks, but how to write VBA to ignore non blanks?
    By hopegriffin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2016, 10:51 AM
  4. [SOLVED] Ignore Blanks in IF Statement
    By ShakJames in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-19-2016, 07:56 AM
  5. [SOLVED] MIN/MAX IF To Ignore Blanks
    By splendidus in forum Excel General
    Replies: 2
    Last Post: 07-04-2012, 04:00 PM
  6. Concatenate and ignore blanks
    By nujwaan in forum Excel Programming / VBA / Macros
    Replies: 28
    Last Post: 09-24-2009, 11:23 AM
  7. Ignore blanks or zeros
    By gil0730 in forum Excel General
    Replies: 1
    Last Post: 02-03-2005, 12:12 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