+ Reply to Thread
Results 1 to 3 of 3

Sum if array formula, with multi criteria, some in the same column

  1. #1
    Registered User
    Join Date
    09-29-2009
    Location
    Oporto
    MS-Off Ver
    Excel 2007
    Posts
    31

    Sum if array formula, with multi criteria, some in the same column

    Hi guys,

    Hope there's a few excel master's that could help me building an array formula for the following:

    I've a file, in which I want to sum, in another sheet, a column of material values, by taking in consideration that this sum should be only for a specific business area, that info is in other column, and then taking in consideration that shall be cumulative monthly, and the months are in other column. But for this last array I want that the formula sum more than one month.

    How do I do it?

    Formulas in Portuguese. Excel 2010. excelforum_test.xlsx

    I'm using: {=SOMA(SE((Data!$H2:$H30="RMV"'this is the business area column')*(Data!$B2:$B30="ABR"'this is the first month column')*(Data!$B2:$B30="MAI"'this is the second month column');Data!$U2:$U30'this is the rang I want to sum'))}

    What is wrong here?

    Sometimes, simple things becomes stupidly difficult to do!

    Regards

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

    Re: Sum if array formula, with multi criteria, some in the same column

    Try instead:

    =SOMA(SE((DATA!$H2:$H30=B$1)*((DATA!$B2:$B30="ABR")+(DATA!$B2:$B30="MAI"));DATA!$U2:$U30))

    confirmed with CTRL+SHIFT+ENTER

    or

    =SOMARPRODUTO(SOMA.SE.S(DATA!$U2:$U30;DATA!$H2:$H30;B$1;DATA!$B2:$B30;{"ABR";"MAI"}))

    This formula is not an array formula, so you can use just ENTER.
    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
    Registered User
    Join Date
    09-29-2009
    Location
    Oporto
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Sum if array formula, with multi criteria, some in the same column

    Hi NVBC,

    you're a GURU! It'worked just fine! So simple!

    How far I am from having a quarter of tour knowledge?

    Thanks a lot and have a nice wknd!

    Carlos

+ 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