+ Reply to Thread
Results 1 to 5 of 5

Sumproduct formula

  1. #1
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Sumproduct formula

    Hi there,

    =SUMPRODUCT(--(E3<G3:G5000),--(ISNUMBER(SEARCH("Beaumont",H3:H5000))),D3:D5000)

    This formula works well except I forgot to have it check Column “I” first… if column “I” has “Yes” then I don’t wan to add… even though E3<G3:5000….

    =SUMPRODUCT(--(H3:H5000="no"),--(ISNUMBER(SEARCH("Olivia",G3:G5000))),F3:F5000)

    This formula looks for anything containing Olivia… so if that column has “Olivia/off” or just “Olivia” it will sum the balance in rows “F3:F5000”.. how can I adjust to look for exactly “Olivia”… if it has “Olivia/Off” I don’t want to add…
    Last edited by jgomez; 03-29-2011 at 09:43 AM.

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

    Re: How to modify sumproduct formula...

    =SUMPRODUCT(--(I3:I5000<>"Yes"),--(E3<G3:G5000),--(ISNUMBER(SEARCH("Beaumont",H3:H5000))),D3:D5000)

    and

    =SUMPRODUCT(--(H3:H5000="no"),--(G3:G5000="Olivia"),F3:F5000)
    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
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Re: How to modify sumproduct formula...

    okay the 2nd formula worked but I had to add more rows and sfuff so I changed the cell range from:

    =SUMPRODUCT(--(H3:H5000="no"),--(G3:G5000="Olivia"),F3:F5000)

    to

    =SUMPRODUCT(--(I3:I5000="no"),--(E6:E5000="Olivia"))

    I just wanted to count them don't need the totals on column "F" and it worked until I modified it... all i get is #N/A...

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

    Re: Sumproduct formula

    Do you get #N/A or #VALUE?

    It looks like you have missized ranges..

    Should be perhaps:

    =SUMPRODUCT(--(I3:I5000="no"),--(E3:E5000="Olivia"))

  5. #5
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Re: Sumproduct formula

    its my spreadsheet, tried that formula in 3 blank sheets and it works... not sure why. Thanks though.

+ 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