Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
John Mitchell
 
Posts: n/a
Default Sumif where sum range is more than one column?

I am familiar with using SUMIF to conditionally sum a column of data:

=SUMIF(A1:A10,"YES",B1:B10)

To conditionally sum data in columns B, C, and D, I can:

=SUMIF(A1:A10,"YES",B1:B10)+SUMIF(A1:A10,"YES",C1: C10)+SUMIF(A1:A10,"YES",D1:D10)

Is there is a more concise way of doing this with an array formula?

Regards, John M
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way

=SUMPRODUCT((A1:A10="Yes")*(B1:D10))

--
Regards,

Peo Sjoblom

(No private emails please)


"John Mitchell" wrote in message
...
I am familiar with using SUMIF to conditionally sum a column of data:

=SUMIF(A1:A10,"YES",B1:B10)

To conditionally sum data in columns B, C, and D, I can:

=SUMIF(A1:A10,"YES",B1:B10)+SUMIF(A1:A10,"YES",C1: C10)+SUMIF(A1:A10,"YES",D1:D10)

Is there is a more concise way of doing this with an array formula?

Regards, John M


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CountIf first column range = "Word" and second column range <> 0 TinaMo Excel Worksheet Functions 3 June 3rd 05 10:56 PM
sumif involving another column Bruce Norris Excel Worksheet Functions 4 April 6th 05 12:28 AM
Sumif range returns #NUM! BAC Excel Worksheet Functions 3 December 6th 04 05:10 PM
SUMIF multiple criteria in 1 range Mike@Q Excel Worksheet Functions 5 November 26th 04 03:55 PM
SUMIF across a range of worksheets Mike@Q Excel Worksheet Functions 3 November 24th 04 02:36 PM


All times are GMT +1. The time now is 08:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"