+ Reply to Thread
Results 1 to 9 of 9

Sumproduct with certain text

Hybrid View

  1. #1
    Registered User
    Join Date
    04-05-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    22

    Sumproduct with certain text

    guys from this formula

    =SUMPRODUCT((ISERROR(FIND("MEP",ALL!P11:P15039))=FALSE)*(ISERROR(FIND("L",ALL!D11:D15039))=FALSE)*
    (ISBLANK(ALL!J11:J15039)=FALSE)*
    (ISERROR(FIND({"1","2","-","A","B","D","E"},ALL!L11:L15039))=FALSE)*(ISBLANK(ALL!B11:B15039)=FALSE))

    not only it counts this text {"1","2","-","A","B","D","E"} but it also counts 2&R, B&R & D&R because 2, B & D exist.

    what to do so it will not include this text 2&R, B&R & D&R during execution of formula.

    thanks

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

    Re: Sumproduct with certain text

    Are {"1","2","-","A","B","D","E"} only characters in cell and can not be part of some string?

  3. #3
    Registered User
    Join Date
    04-05-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Sumproduct with certain text

    yes, only characters and cannot be part of the string.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,636

    Re: Sumproduct with certain text

    And is MEP also one word or part of the string?

  5. #5
    Registered User
    Join Date
    04-05-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Sumproduct with certain text

    yes MEP is part of a string and L is a character

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,636

    Re: Sumproduct with certain text

    Here, try this:

    =SUMPRODUCT(--(ISNUMBER(FIND("MEP",ALL!P11:P15039))),--(ALL!D11:D15039="L"),--ISNUMBER(MATCH(ALL!J11:J15039,Sheet2!$A$1:$A$7,0)),--(ALL!B11:B15039<>""))

    Edit:

    I didn't manage with array but you can define list where you want to put your data
    (for example: in Sheet2!$A$1:$A$7 you write 1,2,- etc)
    Last edited by zbor; 05-10-2012 at 03:58 AM.

  7. #7
    Registered User
    Join Date
    04-05-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Sumproduct with certain text

    the result didnt give the right one, hmmm

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,636

    Re: Sumproduct with certain text

    First result or edited?

  9. #9
    Registered User
    Join Date
    04-05-2012
    Location
    UAE
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Sumproduct with certain text

    now its ok, just define the characters as you write... thanks zbor!

+ 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