+ Reply to Thread
Results 1 to 3 of 3

Array formulas and blank/null cells...

  1. #1
    Registered User
    Join Date
    05-24-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    46

    Array formulas and blank/null cells...

    Hi,
    Say if you have two equally sized arrays (A1:A20 and B1:B20), and you want to find the MAX of A-B using an array formula.... the formula would look as such:

    {=MAX(A1:A20-B1:B20)}
    CTRL+SHIFT+ENTER used to make it an array formula....

    My problem is, how do you handle a situation where one of the arrays has some blank cells... so for example cell A10,A11,A12 are blank, whilst cells B10,B11,B12 have content... this would obviously skew the data.... so is there a way to avoid having a MAX result returned if there are blank/"NULL" cells or at least ignore those cells?

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Array formulas and blank/null cells...

    =MAX(IF(A1:A20<>"",IF(B1:B20<>"",A1:A20-B1:B20)))
    Confirm CSE.
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Registered User
    Join Date
    12-15-2012
    Location
    In a bin
    MS-Off Ver
    Excel 2013
    Posts
    43

    Re: Array formulas and blank/null cells...

    Or a non array version as you have Excel 2010.

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

+ 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. Array formulas and blank cells
    By Pacicka70 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-09-2010, 06:45 AM
  2. Blank cells are getting populated as null
    By Banerjee in forum Excel General
    Replies: 1
    Last Post: 05-29-2009, 04:51 AM
  3. Replies: 3
    Last Post: 01-14-2008, 11:32 PM
  4. Blank Cells But Not Null Values
    By jtwork in forum Excel General
    Replies: 1
    Last Post: 04-17-2007, 08:08 AM
  5. counting not blank / null cells
    By rc51wv in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-20-2006, 04:45 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