+ Reply to Thread
Results 1 to 13 of 13

Long Array Formula Problem

  1. #1
    Registered User
    Join Date
    08-20-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Long Array Formula Problem

    Hey everyone, so I was introduced to array formulas the other day and I created one. It works great all the way until the end where I have one small problem. Right now it counts the row if something is entered in any of the 10 columns (401(k),403(b), etc) but my problem is the last one. While the first 10 each have just a particular text string in a column (it is either 401(k) or nothing), the last column has random text (an other box). I want to count a row if just that last column has something in it (not blank). I tried using a not blank statement as you can see in the last part of the array. So far no luck. Any idea?

    Thank you so much!

    =SUM((micro!DJ3:DJ8000="401(k)")+(micro!DK3:DK8000="401(a)")+(micro!DL3:DL8000="403(b)")+(micro!DM3:DM8000="457")+(micro!DN3:DN8000="Roth 401(k)/Roth 403(b)")+(micro!DO3:DO8000="Money Purchase")+(micro!DP3:DP8000="Profit Sharing/ESOP")+(micro!DQ3:DQ8000="Non-Qualified Deferred Comp")+(micro!DR3:DR8000="SEP")+(micro!DS3:DS8000="SIMPLE IRA")+(micro!DT3:DT8000="<>"""))
    Last edited by tnederlof; 08-20-2009 at 02:54 PM.

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

    Re: Long Array Formula Problem

    Try:

    Please Login or Register  to view this content.
    This is normally entered.. with just ENTER
    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
    08-20-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Long Array Formula Problem

    Tried it and it returns zero so no such luck there. Basically I have columns DJ-DT on a micro sheet. DJ has 401(k)'s, DK has 401(a)'s, etc. I want to count a row if even just one of the 11 cells has something in it. Maybe there is an easier way and I just complicated it?

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

    Re: Long Array Formula Problem

    Thought your were checking if any one row contains all conditions...

    try then:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-20-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Long Array Formula Problem

    I tried that and I got a number that is to high. I think its close. Why is it in two arrays? Sorry I am new to this complexity of formulas. I see -- at one point in the formula. Should these be put before each column or not at all?

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

    Re: Long Array Formula Problem

    I messed up the last condition:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-20-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Long Array Formula Problem

    I really appreciate your help. Now the number is to low... 911 when it should be 2522 (when I do it manually). Any ideas? Can you explain what your formula is doing and maybe if its doing something else I can tell you what I need it to do more clearly?

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

    Re: Long Array Formula Problem

    it counts how many occurances of each of those items occur in each respective column and sums them up...

  9. #9
    Registered User
    Join Date
    08-20-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Long Array Formula Problem

    Okay. I need a total of rows with something in any of them. So if there is something in one of the 11 cells in row 3 between DJ-DT then that counts as 1 row. Then if there are 3 cells with something in them say DJ DK and DN, that row is counted as 1. Does this make more sense?

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

    Re: Long Array Formula Problem

    Replace each condition with an ISNUMBER(MATCH()) combination

    e.g.

    (micro!DJ3:DJ8000="401(k)")

    would now be:

    ISNUMBER(MATCH("401(k)",micro!DJ3:DJ8000,0))

    etc...

  11. #11
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695

    Re: Long Array Formula Problem

    Does this work?

    Please Login or Register  to view this content.
    Last edited by daddylonglegs; 08-20-2009 at 02:47 PM.

  12. #12
    Registered User
    Join Date
    08-20-2009
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Long Array Formula Problem

    daddylonglegs, yes thank you! it works perfectly. You guys are amazing at this stuff. Thank you for all your help.

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

    Re: Long Array Formula Problem

    I must have misunderstood your request then... I apologize.

    ...or maybe not... I see what DLL did now... works too...
    Last edited by NBVC; 08-20-2009 at 02:58 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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