+ Reply to Thread
Results 1 to 6 of 6

SUMIF for multiple columns

  1. #1
    Registered User
    Join Date
    09-17-2008
    Location
    Europe
    Posts
    48

    SUMIF for multiple columns

    Hi,

    I have the following situation:

    Code Region1 Region2 Region1
    XSAS $10.50 $11.50 $9.75

    My worksheet contains many more columns! I need to sum the Code by Region as follows:

    Code Region1 Region2
    XSAS $20.25 $11.50


    What is the right formula to use?


    regards,

  2. #2
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717
    Hi,

    Sumproduct function will do.

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Something like this may be

    Region 1
    =SUMPRODUCT(--(A2:A20="XSAS"),(B2:B20)+(D2:D20))

    Region 2
    =SUMPRODUCT(--(A2:A20="XSAS"),(C2:C20))

    Depends on your layout of columns and number of rows?
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Valued Forum Contributor Rahul Nagar's Avatar
    Join Date
    09-18-2008
    Location
    nasik
    MS-Off Ver
    Excel 2003
    Posts
    465
    Hi Makku,

    Try this...........


    Code Region1 Region2 Region1 Region2
    XSAS $10.50 $11.50 $9.75 $5.00

    Code(SUM) Region1 Region2
    XSAS =B5+D5 =C5+E5

    Regards
    Rahul
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor Rahul Nagar's Avatar
    Join Date
    09-18-2008
    Location
    nasik
    MS-Off Ver
    Excel 2003
    Posts
    465
    Hi Makku,

    Try this...........


    Code Region1 Region2 Region1 Region2
    XSAS $10.50 $11.50 $9.75 $5.00

    Code(SUM) Region1 Region2
    XSAS =B5+D5 =C5+E5

    Check attached file.

    Regards
    Rahul
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    12-06-2005
    Posts
    118
    Quote Originally Posted by makku View Post
    Hi,

    I have the following situation:

    Code Region1 Region2 Region1
    XSAS $10.50 $11.50 $9.75

    My worksheet contains many more columns! I need to sum the Code by Region as follows:

    Code Region1 Region2
    XSAS $20.25 $11.50


    What is the right formula to use?


    regards,


    Depending on how many criteria you have, you can also use a sum with multiple (up to 7) IF statements. It's a Ctrl+Shift+Enter function.

    ={sum(if(A1:A25="XSAS",if(A1:Z1="Region 1",A2:Z2,0),0))}

    Now for the ranges, you can input whatever you want depending on how big your range is. Hope this helps!

+ 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