+ Reply to Thread
Results 1 to 3 of 3

Multiple If's has got to be easier ....

  1. #1
    Registered User
    Join Date
    03-12-2005
    Posts
    42

    Multiple If's has got to be easier ....

    I need to make a SUM IF based on multiple conditions and just can't seem to get it right....Here is what I need it to do

    Add column C1:C100 if A1:A100=2001 AND B1:B100<>"Previous total"

    Now I know that is not written in syntax, but that is the problem, I don't know what format to put it in....Please help or point me to where I can figure this out, I tried a few examples but just don't seem to get it right

    Thanks,
    Jenny

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try...

    =SUMPRODUCT(--(A1:A100=2001),--(B1:B100<>"Previous total"),C1:C100)

    or

    =SUMPRODUCT(--(A1:A100=D1),--(B1:B100<>E1),C1:C100)

    ...where D1 contains your first criterion, such as 'Year', and E1 your second criterion, such as 'Previous total'.

    Hope this helps!

  3. #3
    Registered User
    Join Date
    03-12-2005
    Posts
    42

    Red face

    WOW! Thanks...You just saved me A LOT of time I had the same formula w/out the -- so I guess that makes all the difference... Thanks again

+ 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