+ Reply to Thread
Results 1 to 6 of 6

Formula to long

Hybrid View

pdmkh Formula to long 05-22-2011, 08:12 AM
zbor Re: Formula to long 05-22-2011, 08:41 AM
daddylonglegs Re: Formula to long 05-22-2011, 11:09 AM
pdmkh Re: Formula to long 05-23-2011, 08:08 AM
daddylonglegs Re: Formula to long 05-23-2011, 03:35 PM
pdmkh "SOLVED" Re: Formula to... 07-22-2011, 11:55 AM
  1. #1
    Registered User
    Join Date
    09-26-2009
    Location
    ontario canada
    MS-Off Ver
    Excel 2003
    Posts
    64

    Formula to long

    looking for some help on an issue I am having with a prompt stating that a formula is two long. I am using SUMPRODUCT ISNUMBER SEARCH formula for multiple selections, approx 30, and the way I am entering the code works but "formula to long" error message appears before I am able to enter criteria for all 30 selections. I am just adding each of the equations to each other to return a total. attached is a portion of the formula. Is there a different way of listing the criteria that is more efficient?? Please help!!

    =SUMPRODUCT(--ISNUMBER(SEARCH("ENG",'T-WEEK DATA'!G6:G2283))
    , --('T-WEEK DATA'!U6:U2283="T-9"))
    +SUMPRODUCT(--ISNUMBER(SEARCH("BM",'T-WEEK DATA'!G6:G2283)), --('T-WEEK DATA'!U6:U2283="T-9"))

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,053

    Re: Formula to long

    Please open only one thread.
    Last edited by zbor; 05-23-2011 at 08:44 AM.
    Never use Merged Cells in Excel

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

    Re: Formula to long

    You can use a formula like this

    =SUM((MMULT(ISNUMBER(SEARCH({"BM","ENG"},'T-WEEK DATA'!G6:G2283))*('T-WEEK DATA'!U6:U2283="T-9"),LEN({"BM";"ENG"})^0)>0)+0)

    You can expand the {"BM","ENG"} parts as much as you like - Note that the first array constant uses comma separators, the second uses semi-colons.

    MMULT is limited to 5461 rows in Excel 2003

    .......or if you list all 30 criteria in a column range, e.g. Z1:Z30 on same sheet as formula then you can use this version

    =SUM((MMULT(ISNUMBER(SEARCH(TRANSPOSE(Z1:Z30),'T-WEEK DATA'!G6:G2283))*('T-WEEK DATA'!U6:U2283="T-9"),LEN(Z1:Z30)^0)>0)+0)

    That needs to be confirmed with CTRL+SHIFT+ENTER

    Edit: I deleted your duplicate post
    Last edited by daddylonglegs; 05-22-2011 at 11:16 AM.
    Audere est facere

  4. #4
    Registered User
    Join Date
    09-26-2009
    Location
    ontario canada
    MS-Off Ver
    Excel 2003
    Posts
    64

    Re: Formula to long

    Thank you very much for the help. I used the formula listed below and it work perfectly. Can you add another criteria?? I have tried to add ('T-WEEK DATA'!L6:L2283="1") with no luck returning the proper number. I must be missing something when I am adding to the formula. Any help would be appreciated.
    =SUM((MMULT(ISNUMBER(SEARCH(TRANSPOSE(Z1:Z30),'T-WEEK DATA'!G6:G2283))*('T-WEEK DATA'!U6:U2283="T-9"),LEN(Z1:Z30)^0)>0)+0)

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

    Re: Formula to long

    Did you try it like this

    =SUM((MMULT(ISNUMBER(SEARCH(TRANSPOSE(Z1:Z30),'T-WEEK DATA'!G6:G2283))*('T-WEEK DATA'!U6:U2283="T-9")*('T-WEEK DATA'!L6:L2283="1"),LEN(Z1:Z30)^0)>0)+0)

    .....although "1" signifies a text value so normally if you have numeric data you don't need the quotes, just use 1.....

  6. #6
    Registered User
    Join Date
    09-26-2009
    Location
    ontario canada
    MS-Off Ver
    Excel 2003
    Posts
    64

    "SOLVED" Re: Formula to long

    Sorry for the delay in responding. The info you supplied worked very well and returned exactly what I needed. I am a little worried about the number of rows this funtion is able to review. is ther another formula that is not as limited that could provide the same information?
    Last edited by pdmkh; 07-24-2011 at 09:18 AM.

+ 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