Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Brian
 
Posts: n/a
Default SUMIF and MULTIPLE DATA

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?
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Are the asterisks wildcards?

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

Biff

-----Original Message-----
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?
.

  #3   Report Post  
David Benson
 
Posts: n/a
Default

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$5 05="*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




"Brian" wrote in message
...
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?



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
How do I use the sumif if I have multiple criteria (i.e. greater . Kellyatisl Excel Worksheet Functions 3 June 4th 06 06:33 AM
How do I sum (like sumif) but predicated on multiple criteria, in. djpaik Excel Worksheet Functions 2 January 1st 05 01:12 PM
How do I ask for multiple criteria when creating a "sumif" formul. Rachelle Excel Worksheet Functions 3 December 1st 04 11:49 PM
sumif to add data in multiple sheets Sues Excel Worksheet Functions 4 November 18th 04 06:54 AM
Is it possible to specify multiple condition with SUMIF? Daniel Excel Worksheet Functions 1 November 17th 04 01:38 AM


All times are GMT +1. The time now is 06:44 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"