Welcome to Windows Help!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

=SUMPRODUCT question

 
   Windows Help (Home) -> Microsoft Excel RSS
Next:  Counting Soecific dates in a range  
Author Message
pickytweety

External


Since: Feb 3, 2009
Posts: 1



(Msg. 1) Posted: Thu Sep 10, 2009 12:01 pm
Post subject: =SUMPRODUCT question
Archived from groups: microsoft>public>excel (more info?)

=SUMPRODUCT((Name=$A$3)*(Test=$C10)*(Timing=D$6)*(Score))

What if "Score" above is a letter of the alphabet, not a number? I'm not
really wanting a sum, so much as a multiple criteria lookup. I used the
above formulas in a file for a teacher to create reports, but she's now
expanding that file and wants to include not just a child's score (80%) but
their reading level (aa1, b1, etc.). The score formula returns N/A's so we
switched to vlookups, but that required multiple ranges that are kind of a
hassle. It would be nice if the SUMPRODUCT above could just handle letters.
Any ideas?

 >> Stay informed about: =SUMPRODUCT question 
Back to top
Login to vote
Dave Peterson

External


Since: Oct 17, 2008
Posts: 38



(Msg. 2) Posted: Thu Sep 10, 2009 2:39 pm
Post subject: Re: =SUMPRODUCT question
Archived from groups: per prev. post (more info?)

Maybe...

=index(score,match(1,(Name=$A$3)*(Test=$C10)*(Timing=D$6),0))
This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

I'm guessing that Score, Name, Test, timing are all single column ranges with
the same number of cells. And they are less than an entire column (if you're
using xl2007, the entire column is ok).

Saved from a previous post:

If you want exact matches for just two columns (and return a value from a
third), you could use:

=index(othersheet!$c$1:$c$100,
match(1,(a2=othersheet!$a$1:$a$100)
*(b2=othersheet!$b$1:$b$100),0))

(all in one cell)

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can only use the whole column in xl2007.

This returns the value in othersheet column C when column A and B (of
othersheet) match A2 and B2 of the sheet with the formula.

And you can add more conditions by just adding more stuff to that product
portion of the formula:

=index(othersheet!$d$1:$d$100,
match(1,(a2=othersheet!$a$1:$a$100)
*(b2=othersheet!$b$1:$b$100)
*(c2=othersheet!$c$1:$c$100),0))

============
If there is only one match and you're bringing back a number (or 0 if there is
no match for all the criteria), you can use:

=sumproduct(--(othersheet!a1:a10=a1),
--(othersheet!b1:b10=b1),
(othersheet!c1:c10))

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail here:
[URL="http://www.xldynamic.com/source/xld.SUMPRODUCT.html"]http://www.xldynamic.com/source/xld.SUMPRODUCT.html[/URL]

And J.E. McGimpsey has some notes at:
[URL="http://mcgimpsey.com/excel/formulae/doubleneg.html"]http://mcgimpsey.com/excel/formulae/doubleneg.html[/URL]


pickytweety wrote:
>
> =SUMPRODUCT((Name=$A$3)*(Test=$C10)*(Timing=D$6)*(Score))
>
> What if "Score" above is a letter of the alphabet, not a number? I'm not
> really wanting a sum, so much as a multiple criteria lookup. I used the
> above formulas in a file for a teacher to create reports, but she's now
> expanding that file and wants to include not just a child's score (80%) but
> their reading level (aa1, b1, etc.). The score formula returns N/A's so we
> switched to vlookups, but that required multiple ranges that are kind of a
> hassle. It would be nice if the SUMPRODUCT above could just handle letters.
> Any ideas?
> --
> Thanks,
> PTweety

 >> Stay informed about: =SUMPRODUCT question 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Sumproduct 3 Criteria - I'm trying to determine the results of three criteria. Three data points in three different columns. A b c 1/24/09 20h 250 1/24/09 20h -36 1/24/09 20h 450 If I do a sumproduct....

Factorization Question - Is it possible to calculate the following progmatically or with a formula? (x^2+7x-30) Thanks in advance

PivotTable question - I have a table that has these 3 fields I'm trying to use in a pivot table. 1. Industry name - e.g. retail, automotive, healthcare, etc. 2. Project name 3. Total Contract Value (TCV) I drop Industry name in the Drop Row Fields Here. I drop Project Name i...

Data Valadation Question - I'm looking into using data validation for my spreadsheet. Will data validation allow you to do the following. Let's say cell A1 must match cell D1. So if in cell A1 you put X, but in cell D1 you put Y, can you have an error message coming up saying..

file open question - I have an issue that has developed with Excel 07. When ever I would click on a *.xls file I would get a short hourglass but nothing would happen. If I opened Excel first then the files would open normally. I tried registering the file type and then....
   Windows Help (Home) -> Microsoft Excel All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]