+ Reply to Thread
Results 1 to 6 of 6

Get an array to ignore blank cells

  1. #1
    Registered User
    Join Date
    09-10-2012
    Location
    the moon
    MS-Off Ver
    Excel 2010
    Posts
    9

    Get an array to ignore blank cells

    Hi,

    Is there any way to have the following array ignore blank cells in the range?

    =SUM(IF(FREQUENCY(IF(AN2:AN1021<=100,ROW(AN2:AN1021)),IF(AN2:AN1021>100,ROW(AN2:AN1021)))>=10,1))

    Thanks in advance!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Get an array to ignore blank cells

    Perhaps?

    =SUM(IF(FREQUENCY(IF((AN2:AN1021<=100)*(AN2:AN1021>0),ROW(AN2:AN1021)),IF(AN2:AN1021>100,ROW(AN2:AN1021)))>=10,1))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-10-2012
    Location
    the moon
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Get an array to ignore blank cells

    Thanks that didn't work but adjusting it to:

    =SUM(IF(FREQUENCY(IF((AN2:AN1021<=100)*(AN2:AN1021<>""),ROW(AN2:AN1021)),IF(AN2:AN1021>100,ROW(AN2:AN1021)))>=10,1))

    seems to work!

  4. #4
    Registered User
    Join Date
    09-10-2012
    Location
    the moon
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Get an array to ignore blank cells

    However, when i try to add this in vba code I get a runtime error because the array is longer than 255 characters. Is there any way around this?

    Thanks

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Get an array to ignore blank cells

    we'll need to wait for a VBA expert to come by....

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Get an array to ignore blank cells

    This should work...

    Please Login or Register  to view this content.
    HTH
    Regards, Jeff

+ 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. How can I make a macro ignore blank cells? - Blank Cells have formulas
    By mz1161 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-30-2013, 08:54 AM
  2. [SOLVED] Getting an array to ignore blank cells
    By Mike001 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-25-2013, 06:46 PM
  3. [SOLVED] Array formula to ignore blank cells
    By trickeyja in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-22-2012, 07:35 PM
  4. Array formula to ignore blank cells
    By bronsonb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-13-2011, 09:14 AM
  5. Array Function - ignore blank values
    By gillemi in forum Excel General
    Replies: 6
    Last Post: 06-13-2006, 04:10 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