LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Is there a way to use a multiple column array in SUMPRODUCT?

=SUMPRODUCT(--(A2:A61=A44),--(B2:B61=B44)--(F2:F61)) works for just column
F, but when I try to add more columns, i.e., D - F, the function no longer
works.



Try it like this:

=SUMPRODUCT((A2:A61=A44)*(B2:B61=B44)*D2:F61)



"rk" wrote:

I am attempting to use SUMPRODUCT to pull values froma multiple column
spreadsheet and add them together. I am able to get the SUMPRODUCT to work
if I am only looking for values in one column, but as soon as I select all
columns, the function no longer works.

example: column A holds accounts, column B holds subaccounts, columns D - F
(possibility of over 100 columns) hold companies

I am looking for all values to be added together that hold values for both
column A and column B

=SUMPRODUCT(--(A2:A61=A44),--(B2:B61=B44)--(F2:F61)) works for just column
F, but when I try to add more columns, i.e., D - F, the function no longer
works.

Is there a way to expand this function or nest another function (maybe
SUMIF) to do this?

A B C D E F
100 121 account descrip 89.00 - 900.00
200 131 account descrip - - 10,000.00
300 141 account descrip - - 101.50
400 151 account descrip - - 895.30
500 161 account descrip - - -

So with the formula I have now, I am getting an answer of 900.00, but what I
would really like to get is the answer 989.00.

 
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
Can a SUMPRODUCT array formula be used across multiple worksheets? Ray Excel Discussion (Misc queries) 0 February 24th 10 06:58 PM
SumProduct - checking for multiple options in one column edeaston Excel Discussion (Misc queries) 2 January 30th 09 04:56 PM
sumproduct with multiple criteria in single column my Excel Discussion (Misc queries) 4 July 5th 07 07:57 PM
Creating a single vertical array from multiple column arrays Bryan Excel Worksheet Functions 2 December 10th 05 07:12 PM
Sumproduct - multiple criteria in Column A briank Excel Worksheet Functions 2 January 6th 05 06:44 PM


All times are GMT +1. The time now is 07:22 AM.

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

About Us

"It's about Microsoft Excel"