SUMIF and MULTIPLE DATA

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a spreadsheet with about 6 columns and 25 rows of data. One of the
columns represents dollar amounts...and the remaining columns represent
account names, account numbers...etc.
I'm trying to come up with a way to sum all the dollar amounts if the data
in the other columns is the same.
I've used the sumif formula when I have only one piece of data I'm looking
for in common, but how can I get the same result when I'm looking for
information with at least two columns of the same data?
I've tried used the sumproduct formula.
=SUMPRODUCT(($B$106:$B$505="*042000314*")*($D$106:$D$505="*637185059*")*($L$106:$L$500))
However I keep getting a #N/A result.
Any idea why this isn't working?
 
Hi!

Are the asterisks wildcards?

Sumproduct won't accept wildcards. Also, your last array
is not the same size. Typo?

Biff
 
Brian

The easiest approach is the use an array formula. These can be used in
either of two ways: to produce an array of outputs (many of the statistical
functions do this), or to process an array of inputs.

The array formula you want for the example below would be:
=sum(if($B$106:$B$505="*042000314*",if($D$106:$D$505="*637185059*",$L$106:$L$505,0),0))
After you have typed this in, press <CTRL-SHIFT-Enter> (hold down the
Control and Shift keys while pressing enter). Braces ( { } ) will appear
around the formula.

When you use array formulas, be sure that all of the arrays refer to exactly
the same number of rows and columns. One reason you might have been having
a problem with the formula in your message is that the last range only
extends to L500, while the first two extent to Row 505.

Good luck!

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

sumproduct or sumif? 3
SUMIF with multiple conditions 5
SumIf 3
Sumif 11
Sumif comparing dates in criteria 1
SUMIF. 1
sumproduct or sumif 1
Double Sorting of Data 1

Back
Top