+ Reply to Thread
Results 1 to 3 of 3

Need Excel If Condition

  1. #1
    Registered User
    Join Date
    03-14-2012
    Location
    Sin
    MS-Off Ver
    Excel 2010
    Posts
    1

    Need Excel If Condition

    Hi there,

    Hi I am using Excel 2010,

    I have some Country name in Column name 'A' also DEST in column 'B' and amount in column 'C',

    So I need

    in A22 = SUM(IF(COUNTRYNAME="SINGAPORE" AND DEST="O")
    IN B22= SUM(IF(COUNTRYNAME="SINGAPORE" AND DEST="C")

    in A24 = SUM(IF(COUNTRYNAM!E="SINGAPORE" AND DEST="O") (NOT EQUAL TO SINGAPORE)
    IN B24= SUM(IF(COUNTRYNAME!="SINGAPORE" AND DEST="C") (NOT EQUAL TO SINGAPORE)

    How to SUM of above it???
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Need Excel If Condition

    A22
    =sumifs(c2:c16,a2:a16,"singapore",b2:b16,"o")
    b22
    =sumifs(c2:c16,a2:a16,"singapore",b2:b16,"c")
    a24
    =sumifs(c2:c16,a2:a16,"<>singapore",b2:b16,"o")
    b24
    =sumifs(c2:c16,a2:a16,"<>singapore",b2:b16,"c")
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Need Excel If Condition

    or maybe with sumproduct

    =SUMPRODUCT(--(C2:C16),--(A2:A16="singapore"),--(B2:B16="c"))
    =SUMPRODUCT(--(C2:C16),--(A2:A16="singapore"),--(B2:B16="o"))

    =SUMPRODUCT(--(C2:C16),--(A2:A16<>"singapore"),--(B2:B16="c"))
    =SUMPRODUCT(--(C2:C16),--(A2:A16<>"singapore"),--(B2:B16="0"))
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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