+ Reply to Thread
Results 1 to 8 of 8

Sum of IF in cell N84

  1. #1
    Forum Contributor
    Join Date
    08-22-2012
    Location
    Czech republic
    MS-Off Ver
    Excel 2010
    Posts
    119

    Sum of IF in cell N84

    Dear all, please, I would like to simplify this formula anyhow, but I have no idea how.
    It says - =if($E8="BBS";$AL8*N8;0) and goes 60 times for each new line. I assume throuhg sumifs, it should be easier, but how? It could be done by extra sheets where "al*n" will be calculated for each month, but I do not would like to add any extra cells.
    Please help to rearange N84 (should be copy-able to P84 as well as to N85).
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Sum of IF in cell N84

    Use

    =SUMPRODUCT(--($E$8:$E$70="BBS"),N$8:N$70*$AL$8:$AL$70)

    Copy across
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    08-22-2012
    Location
    Czech republic
    MS-Off Ver
    Excel 2010
    Posts
    119

    Re: Sum of IF in cell N84

    Please, could you paste it into the file enclosed? I am using different excel language and just a translation of sumproduct is not enough. From my previous experience, when I open it - all syntaxt will be re-create proper way. Thans for it. Lenght of a formula is as I would like to have it - great.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Sum of IF in cell N84

    See attached.

    All changed cells highlighted in yellow

  5. #5
    Forum Contributor
    Join Date
    08-22-2012
    Location
    Czech republic
    MS-Off Ver
    Excel 2010
    Posts
    119

    Re: Sum of IF in cell N84

    Oh, great, it helps a lot. There is ";" instead of "," - so in my language it looks like :"SOUČIN.SKALÁRNÍ(--($E$8:$E$70="BBS");N$8:N$70*$AL$8:$AL$70)". Please, could you tell me, what is the meaning of "--" (double minus) here. Why it is not working without it.
    It is really awesome.

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Sum of IF in cell N84

    Yeah some Excel language versions use ; instead of ,

    This should resolve your sumproduct and -- query
    http://www.xldynamic.com/source/xld.SUMPRODUCT.html

  7. #7
    Forum Contributor
    Join Date
    08-22-2012
    Location
    Czech republic
    MS-Off Ver
    Excel 2010
    Posts
    119

    Re: Sum of IF in cell N84

    Thanks. Click * Post closed. ... thanks.

  8. #8
    Forum Contributor
    Join Date
    08-22-2012
    Location
    Czech republic
    MS-Off Ver
    Excel 2010
    Posts
    119

    Re: Sum of IF in cell N84

    Just a note for other readers: "-" is here to declare column instead of formula. Without "-" it automatically takes rows. (as in detail described in link above).

+ 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