+ Reply to Thread
Results 1 to 53 of 53

Sumif across columns

  1. #1
    Registered User
    Join Date
    06-29-2005
    Posts
    3

    Sumif across columns

    I'm trying to figure out a cleaner/easier way to do this:

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!F:F)

    Any ideas?

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Quote Originally Posted by mminsf
    I'm trying to figure out a cleaner/easier way to do this:

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!F:F)

    Any ideas?
    Try...

    =SUMPRODUCT((Sheet1!A1:A100=Sheet2!B11)*Sheet1!C1:F100)

    Adjust the range accordingly. Note that SUMPRODUCT does not accept whole column references. But you can use 'near' whole column references, such as A2:A65536.

    Hope this helps!

  3. #3
    Registered User
    Join Date
    06-29-2005
    Posts
    3
    Quote Originally Posted by Domenic
    Try...

    =SUMPRODUCT((Sheet1!A1:A100=Sheet2!B11)*Sheet1!C1:F100)
    thanks so much for your quick reply! I gave it a try, but I'm getting a #value! error. any thoughts on how I might fix that?

  4. #4
    Bob Phillips
    Guest

    Re: Sumif across columns

    You could try

    =SUMPRODUCT(--(Sheet1!A1:A1000Sheet2!B11),Sheet1!B1:B1000+Sheet1!C1:C1000+Sh
    eet1!D1:D1000+Sheet1!E1:E1000+Sheet1!F1:F1000)

    but it doesn't look that much simpler to me.

    --
    HTH

    Bob Phillips

    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  5. #5
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    Sum C to F in G per record, then invoke:

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!G:G)

    mminsf wrote:
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    > =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!D:D)

    +SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!F:F)
    >
    > Any ideas?
    >
    >


  6. #6
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Quote Originally Posted by mminsf
    thanks so much for your quick reply! I gave it a try, but I'm getting a #value! error. any thoughts on how I might fix that?
    Aladin has just pointed out that that happens because you have values like "" in the ranges to sum (his post to follow -- thanks Aladin, I hadn't thought about that ). Acordingly, try the following formula...

    =SUM(IF(Sheet1!A1:A100=Sheet2!B11,IF(Sheet1!C1:F100<>"",Sheet1!C1:F100)))

    ...confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

    Hope this helps!

  7. #7
    Registered User
    Join Date
    06-29-2005
    Posts
    3
    Quote Originally Posted by Domenic
    Aladin has just pointed out that that happens because you have values like "" in the ranges to sum (his post to follow -- thanks Aladin, I hadn't thought about that ). Acordingly, try the following formula...

    =SUM(IF(Sheet1!A1:A100=Sheet2!B11,IF(Sheet1!C1:F100<>"",Sheet1!C1:F100)))

    ...confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

    Hope this helps!
    you're my new best friend -- thanks so much, it worked perfectly!

  8. #8
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    That happens because you have text values like "" in ranges to sum.

    So:

    7 * ""

    or

    7 + ""

    will error out.

    mminsf wrote:
    > Domenic Wrote:
    >
    >>Try...
    >>
    >>=SUMPRODUCT((Sheet1!A1:A100=Sheet2!B11)*Sheet1!C1:F100)
    >>
    >>

    >
    >
    > thanks so much for your quick reply! I gave it a try, but I'm getting a
    > #value! error. any thoughts on how I might fix that?
    >
    >


  9. #9
    Sandy Mann
    Guest

    Re: Sumif across columns

    Assuming titles in row 1:

    =SUMPRODUCT((Sheet1!A2:A65536=Sheet2!B11)*(Sheet1!C2:F65536))

    --
    HTH

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  10. #10
    Sandy Mann
    Guest

    Re: Sumif across columns

    Assuming titles in row 1:

    =SUMPRODUCT((Sheet1!A2:A65536=Sheet2!B11)*(Sheet1!C2:F65536))

    --
    HTH

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  11. #11
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    That happens because you have text values like "" in ranges to sum.

    So:

    7 * ""

    or

    7 + ""

    will error out.

    mminsf wrote:
    > Domenic Wrote:
    >
    >>Try...
    >>
    >>=SUMPRODUCT((Sheet1!A1:A100=Sheet2!B11)*Sheet1!C1:F100)
    >>
    >>

    >
    >
    > thanks so much for your quick reply! I gave it a try, but I'm getting a
    > #value! error. any thoughts on how I might fix that?
    >
    >


  12. #12
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    Sum C to F in G per record, then invoke:

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!G:G)

    mminsf wrote:
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    > =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!D:D)

    +SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!F:F)
    >
    > Any ideas?
    >
    >


  13. #13
    Bob Phillips
    Guest

    Re: Sumif across columns

    You could try

    =SUMPRODUCT(--(Sheet1!A1:A1000Sheet2!B11),Sheet1!B1:B1000+Sheet1!C1:C1000+Sh
    eet1!D1:D1000+Sheet1!E1:E1000+Sheet1!F1:F1000)

    but it doesn't look that much simpler to me.

    --
    HTH

    Bob Phillips

    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  14. #14
    Bob Phillips
    Guest

    Re: Sumif across columns

    You could try

    =SUMPRODUCT(--(Sheet1!A1:A1000Sheet2!B11),Sheet1!B1:B1000+Sheet1!C1:C1000+Sh
    eet1!D1:D1000+Sheet1!E1:E1000+Sheet1!F1:F1000)

    but it doesn't look that much simpler to me.

    --
    HTH

    Bob Phillips

    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  15. #15
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    Sum C to F in G per record, then invoke:

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!G:G)

    mminsf wrote:
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    > =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!D:D)

    +SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!F:F)
    >
    > Any ideas?
    >
    >


  16. #16
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    That happens because you have text values like "" in ranges to sum.

    So:

    7 * ""

    or

    7 + ""

    will error out.

    mminsf wrote:
    > Domenic Wrote:
    >
    >>Try...
    >>
    >>=SUMPRODUCT((Sheet1!A1:A100=Sheet2!B11)*Sheet1!C1:F100)
    >>
    >>

    >
    >
    > thanks so much for your quick reply! I gave it a try, but I'm getting a
    > #value! error. any thoughts on how I might fix that?
    >
    >


  17. #17
    Sandy Mann
    Guest

    Re: Sumif across columns

    Assuming titles in row 1:

    =SUMPRODUCT((Sheet1!A2:A65536=Sheet2!B11)*(Sheet1!C2:F65536))

    --
    HTH

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  18. #18
    Sandy Mann
    Guest

    Re: Sumif across columns

    Assuming titles in row 1:

    =SUMPRODUCT((Sheet1!A2:A65536=Sheet2!B11)*(Sheet1!C2:F65536))

    --
    HTH

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  19. #19
    Bob Phillips
    Guest

    Re: Sumif across columns

    You could try

    =SUMPRODUCT(--(Sheet1!A1:A1000Sheet2!B11),Sheet1!B1:B1000+Sheet1!C1:C1000+Sh
    eet1!D1:D1000+Sheet1!E1:E1000+Sheet1!F1:F1000)

    but it doesn't look that much simpler to me.

    --
    HTH

    Bob Phillips

    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  20. #20
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    That happens because you have text values like "" in ranges to sum.

    So:

    7 * ""

    or

    7 + ""

    will error out.

    mminsf wrote:
    > Domenic Wrote:
    >
    >>Try...
    >>
    >>=SUMPRODUCT((Sheet1!A1:A100=Sheet2!B11)*Sheet1!C1:F100)
    >>
    >>

    >
    >
    > thanks so much for your quick reply! I gave it a try, but I'm getting a
    > #value! error. any thoughts on how I might fix that?
    >
    >


  21. #21
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    Sum C to F in G per record, then invoke:

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!G:G)

    mminsf wrote:
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    > =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!D:D)

    +SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!F:F)
    >
    > Any ideas?
    >
    >


  22. #22
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    That happens because you have text values like "" in ranges to sum.

    So:

    7 * ""

    or

    7 + ""

    will error out.

    mminsf wrote:
    > Domenic Wrote:
    >
    >>Try...
    >>
    >>=SUMPRODUCT((Sheet1!A1:A100=Sheet2!B11)*Sheet1!C1:F100)
    >>
    >>

    >
    >
    > thanks so much for your quick reply! I gave it a try, but I'm getting a
    > #value! error. any thoughts on how I might fix that?
    >
    >


  23. #23
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    Sum C to F in G per record, then invoke:

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!G:G)

    mminsf wrote:
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    > =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!D:D)

    +SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!F:F)
    >
    > Any ideas?
    >
    >


  24. #24
    Sandy Mann
    Guest

    Re: Sumif across columns

    Assuming titles in row 1:

    =SUMPRODUCT((Sheet1!A2:A65536=Sheet2!B11)*(Sheet1!C2:F65536))

    --
    HTH

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  25. #25
    Bob Phillips
    Guest

    Re: Sumif across columns

    You could try

    =SUMPRODUCT(--(Sheet1!A1:A1000Sheet2!B11),Sheet1!B1:B1000+Sheet1!C1:C1000+Sh
    eet1!D1:D1000+Sheet1!E1:E1000+Sheet1!F1:F1000)

    but it doesn't look that much simpler to me.

    --
    HTH

    Bob Phillips

    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  26. #26
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    That happens because you have text values like "" in ranges to sum.

    So:

    7 * ""

    or

    7 + ""

    will error out.

    mminsf wrote:
    > Domenic Wrote:
    >
    >>Try...
    >>
    >>=SUMPRODUCT((Sheet1!A1:A100=Sheet2!B11)*Sheet1!C1:F100)
    >>
    >>

    >
    >
    > thanks so much for your quick reply! I gave it a try, but I'm getting a
    > #value! error. any thoughts on how I might fix that?
    >
    >


  27. #27
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    Sum C to F in G per record, then invoke:

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!G:G)

    mminsf wrote:
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    > =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!D:D)

    +SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!F:F)
    >
    > Any ideas?
    >
    >


  28. #28
    Bob Phillips
    Guest

    Re: Sumif across columns

    You could try

    =SUMPRODUCT(--(Sheet1!A1:A1000Sheet2!B11),Sheet1!B1:B1000+Sheet1!C1:C1000+Sh
    eet1!D1:D1000+Sheet1!E1:E1000+Sheet1!F1:F1000)

    but it doesn't look that much simpler to me.

    --
    HTH

    Bob Phillips

    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  29. #29
    Sandy Mann
    Guest

    Re: Sumif across columns

    Assuming titles in row 1:

    =SUMPRODUCT((Sheet1!A2:A65536=Sheet2!B11)*(Sheet1!C2:F65536))

    --
    HTH

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  30. #30
    Sandy Mann
    Guest

    Re: Sumif across columns

    Assuming titles in row 1:

    =SUMPRODUCT((Sheet1!A2:A65536=Sheet2!B11)*(Sheet1!C2:F65536))

    --
    HTH

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  31. #31
    Bob Phillips
    Guest

    Re: Sumif across columns

    You could try

    =SUMPRODUCT(--(Sheet1!A1:A1000Sheet2!B11),Sheet1!B1:B1000+Sheet1!C1:C1000+Sh
    eet1!D1:D1000+Sheet1!E1:E1000+Sheet1!F1:F1000)

    but it doesn't look that much simpler to me.

    --
    HTH

    Bob Phillips

    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  32. #32
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    Sum C to F in G per record, then invoke:

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!G:G)

    mminsf wrote:
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    > =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!D:D)

    +SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!F:F)
    >
    > Any ideas?
    >
    >


  33. #33
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    That happens because you have text values like "" in ranges to sum.

    So:

    7 * ""

    or

    7 + ""

    will error out.

    mminsf wrote:
    > Domenic Wrote:
    >
    >>Try...
    >>
    >>=SUMPRODUCT((Sheet1!A1:A100=Sheet2!B11)*Sheet1!C1:F100)
    >>
    >>

    >
    >
    > thanks so much for your quick reply! I gave it a try, but I'm getting a
    > #value! error. any thoughts on how I might fix that?
    >
    >


  34. #34
    Sandy Mann
    Guest

    Re: Sumif across columns

    Assuming titles in row 1:

    =SUMPRODUCT((Sheet1!A2:A65536=Sheet2!B11)*(Sheet1!C2:F65536))

    --
    HTH

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  35. #35
    Bob Phillips
    Guest

    Re: Sumif across columns

    You could try

    =SUMPRODUCT(--(Sheet1!A1:A1000Sheet2!B11),Sheet1!B1:B1000+Sheet1!C1:C1000+Sh
    eet1!D1:D1000+Sheet1!E1:E1000+Sheet1!F1:F1000)

    but it doesn't look that much simpler to me.

    --
    HTH

    Bob Phillips

    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  36. #36
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    Sum C to F in G per record, then invoke:

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!G:G)

    mminsf wrote:
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    > =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!D:D)

    +SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!F:F)
    >
    > Any ideas?
    >
    >


  37. #37
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    That happens because you have text values like "" in ranges to sum.

    So:

    7 * ""

    or

    7 + ""

    will error out.

    mminsf wrote:
    > Domenic Wrote:
    >
    >>Try...
    >>
    >>=SUMPRODUCT((Sheet1!A1:A100=Sheet2!B11)*Sheet1!C1:F100)
    >>
    >>

    >
    >
    > thanks so much for your quick reply! I gave it a try, but I'm getting a
    > #value! error. any thoughts on how I might fix that?
    >
    >


  38. #38
    Sandy Mann
    Guest

    Re: Sumif across columns

    Assuming titles in row 1:

    =SUMPRODUCT((Sheet1!A2:A65536=Sheet2!B11)*(Sheet1!C2:F65536))

    --
    HTH

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  39. #39
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    That happens because you have text values like "" in ranges to sum.

    So:

    7 * ""

    or

    7 + ""

    will error out.

    mminsf wrote:
    > Domenic Wrote:
    >
    >>Try...
    >>
    >>=SUMPRODUCT((Sheet1!A1:A100=Sheet2!B11)*Sheet1!C1:F100)
    >>
    >>

    >
    >
    > thanks so much for your quick reply! I gave it a try, but I'm getting a
    > #value! error. any thoughts on how I might fix that?
    >
    >


  40. #40
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    Sum C to F in G per record, then invoke:

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!G:G)

    mminsf wrote:
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    > =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!D:D)

    +SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!F:F)
    >
    > Any ideas?
    >
    >


  41. #41
    Bob Phillips
    Guest

    Re: Sumif across columns

    You could try

    =SUMPRODUCT(--(Sheet1!A1:A1000Sheet2!B11),Sheet1!B1:B1000+Sheet1!C1:C1000+Sh
    eet1!D1:D1000+Sheet1!E1:E1000+Sheet1!F1:F1000)

    but it doesn't look that much simpler to me.

    --
    HTH

    Bob Phillips

    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  42. #42
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    Sum C to F in G per record, then invoke:

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!G:G)

    mminsf wrote:
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    > =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!D:D)

    +SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!F:F)
    >
    > Any ideas?
    >
    >


  43. #43
    Sandy Mann
    Guest

    Re: Sumif across columns

    Assuming titles in row 1:

    =SUMPRODUCT((Sheet1!A2:A65536=Sheet2!B11)*(Sheet1!C2:F65536))

    --
    HTH

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  44. #44
    Bob Phillips
    Guest

    Re: Sumif across columns

    You could try

    =SUMPRODUCT(--(Sheet1!A1:A1000Sheet2!B11),Sheet1!B1:B1000+Sheet1!C1:C1000+Sh
    eet1!D1:D1000+Sheet1!E1:E1000+Sheet1!F1:F1000)

    but it doesn't look that much simpler to me.

    --
    HTH

    Bob Phillips

    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  45. #45
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    That happens because you have text values like "" in ranges to sum.

    So:

    7 * ""

    or

    7 + ""

    will error out.

    mminsf wrote:
    > Domenic Wrote:
    >
    >>Try...
    >>
    >>=SUMPRODUCT((Sheet1!A1:A100=Sheet2!B11)*Sheet1!C1:F100)
    >>
    >>

    >
    >
    > thanks so much for your quick reply! I gave it a try, but I'm getting a
    > #value! error. any thoughts on how I might fix that?
    >
    >


  46. #46
    Bob Phillips
    Guest

    Re: Sumif across columns

    You could try

    =SUMPRODUCT(--(Sheet1!A1:A1000Sheet2!B11),Sheet1!B1:B1000+Sheet1!C1:C1000+Sh
    eet1!D1:D1000+Sheet1!E1:E1000+Sheet1!F1:F1000)

    but it doesn't look that much simpler to me.

    --
    HTH

    Bob Phillips

    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  47. #47
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    Sum C to F in G per record, then invoke:

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!G:G)

    mminsf wrote:
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    > =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!D:D)

    +SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!F:F)
    >
    > Any ideas?
    >
    >


  48. #48
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    That happens because you have text values like "" in ranges to sum.

    So:

    7 * ""

    or

    7 + ""

    will error out.

    mminsf wrote:
    > Domenic Wrote:
    >
    >>Try...
    >>
    >>=SUMPRODUCT((Sheet1!A1:A100=Sheet2!B11)*Sheet1!C1:F100)
    >>
    >>

    >
    >
    > thanks so much for your quick reply! I gave it a try, but I'm getting a
    > #value! error. any thoughts on how I might fix that?
    >
    >


  49. #49
    Sandy Mann
    Guest

    Re: Sumif across columns

    Assuming titles in row 1:

    =SUMPRODUCT((Sheet1!A2:A65536=Sheet2!B11)*(Sheet1!C2:F65536))

    --
    HTH

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  50. #50
    Bob Phillips
    Guest

    Re: Sumif across columns

    You could try

    =SUMPRODUCT(--(Sheet1!A1:A1000Sheet2!B11),Sheet1!B1:B1000+Sheet1!C1:C1000+Sh
    eet1!D1:D1000+Sheet1!E1:E1000+Sheet1!F1:F1000)

    but it doesn't look that much simpler to me.

    --
    HTH

    Bob Phillips

    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




  51. #51
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    Sum C to F in G per record, then invoke:

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!G:G)

    mminsf wrote:
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    > =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!D:D)

    +SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!F:F)
    >
    > Any ideas?
    >
    >


  52. #52
    Aladin Akyurek
    Guest

    Re: Sumif across columns

    That happens because you have text values like "" in ranges to sum.

    So:

    7 * ""

    or

    7 + ""

    will error out.

    mminsf wrote:
    > Domenic Wrote:
    >
    >>Try...
    >>
    >>=SUMPRODUCT((Sheet1!A1:A100=Sheet2!B11)*Sheet1!C1:F100)
    >>
    >>

    >
    >
    > thanks so much for your quick reply! I gave it a try, but I'm getting a
    > #value! error. any thoughts on how I might fix that?
    >
    >


  53. #53
    Sandy Mann
    Guest

    Re: Sumif across columns

    Assuming titles in row 1:

    =SUMPRODUCT((Sheet1!A2:A65536=Sheet2!B11)*(Sheet1!C2:F65536))

    --
    HTH

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "mminsf" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm trying to figure out a cleaner/easier way to do this:
    >
    >

    =SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!C:C)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!
    D:D)+SUMIF(Sheet1!A:A,Sheet2!B11,Sheet1!E:E)+SUMIF(Sheet1!A:A,Sheet2!B11,She
    et1!F:F)
    >
    > Any ideas?
    >
    >
    > --
    > mminsf
    > ------------------------------------------------------------------------
    > mminsf's Profile:

    http://www.excelforum.com/member.php...o&userid=24767
    > View this thread: http://www.excelforum.com/showthread...hreadid=383325
    >




+ 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