+ Reply to Thread
Results 1 to 7 of 7

Simple SUMIF formula gone wrong!

Hybrid View

  1. #1
    Registered User
    Join Date
    11-09-2005
    Posts
    11

    Simple SUMIF formula gone wrong!

    Hey I was wondering what is wrong with this formula, I want it to sum only if the row next to it said shipped and the row next to that doesn't say PAID
    =SUMIF(AND(N2:N35="SHIPPED", O2:O35="<>PAID"),L2:L35)

  2. #2
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    try this

    =SUMPRODUCT((N2:N35="SHIPPED")*(O2:O35="<>PAID")*(L2:L35))
    not a professional, just trying to assist.....

  3. #3
    Registered User
    Join Date
    11-09-2005
    Posts
    11
    It gives me a negative number, I am trying to get it so that each row can be either shipped and paid and not the whole column is required to be filled with shipped or paid example:
    $1.00 SHIPPED
    $1.00 SHIPPED PAID
    $1.00

    SUM=$1.00

    row one added to sum because it is shipped
    row two not added because it is paid
    row 3 not added because it isn't shipped
    Last edited by exutable; 05-07-2006 at 08:28 PM.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702
    I think duane's suggestion has a typo, try this amendment

    =SUMPRODUCT((N2:N35="SHIPPED")*(O2:O35<>"PAID")*L2:L35)

  5. #5
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    yes, but you need another set of ()

    =SUMPRODUCT((N2:N35="SHIPPED")*(O2:O35<>"PAID")*(L2 :L35))

  6. #6
    Registered User
    Join Date
    11-09-2005
    Posts
    11
    Thanks works perfectly(the last one)

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702
    Quote Originally Posted by duane
    yes, but you need another set of ()

    =SUMPRODUCT((N2:N35="SHIPPED")*(O2:O35<>"PAID")*(L2 :L35))
    ....works fine for me without the parentheses....

+ 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