Search for multiple criteria, and return yet another

J

JMG

Basic output from 3rd party database is .xls in a format similar to:

Name OtherData OtherData EventName PointsEarned
Jones xxxxx xxxxx baseball 2.0
Jones xxxxx xxxxx football 2.5
Jones xxxxx xxxxx soccer 3.0
Smith xxxxx xxxxx baseball 1.0
Smith xxxxx xxxxx football 1.1
Smith xxxxx xxxxx soccer 1.5
White...and so on

My Goal:
Lookup by Name and EventName, and return PointsEarned.

BASEBALL FOOTBALL SOCCER

Jones 2.0 2.5 3.0
Smith 1.0 1.1 1.5
White...

I also totally lack understanding of PivotTables, and out of pure
stubbornness, am trying to avoid using them. ...probably to my own demise.

Thanks in advance.
 
P

PCLIVE

=SUMPRODUCT(--(A1:A100="Jones"),--(D1:D100="baseball"),E1:E100)

or if Name is in AA1
and EventName is in AB1

=SUMPRODUCT(--(A1:A100=AA1),--(D1:D100=AB1),E1:E100)


HTH,
Paul
 
R

Ron Coderre

EASY....Pivot Table!....Here's how:

From the Excel Main Menu: <Data><Pivot Table>
Use: Excel..Click [Next]
Select your data..Click [Next]
Click the [Layout] button

ROW: Drag the Name field here
COLUMN: Drag the EventName field here
DATA: Drag the PointsEarned field here
If it doesn't list as Sum of PointsEarned...dbl-click it and select Sum
Click [OK]
Select where you want the Pivot Table.Click [Finish].

That will create a table showing with:
Names down the left side
EventNames across the top
Sum of PointsEarnedand at each intersection

To refresh the Pivot Table, just right click it and select Refresh Data

Pivot Table Links:
http://www.nickhodge.co.uk/gui/datamenu/pivottablereport.htm
http://www.contextures.com/tiptech.html


Is that something you can work with?
Post back if you have more questions.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
 
M

Mike H

Hi,

I've assumed your table is in coilumns A,B,C,D & E.

Make a table like this

Baseball Football Soccer
Jones 2 2.5 3
Smith 2 2.2 2.5
White 0 0 0

At the intersect of Jones/Baseball put this formula
=SUMPRODUCT(($A$2:$A$7=$I2)*($D$2:$D$7=J$1)*($E$2:$E$7))
Drag down and then across to get the numbers above
Note my table is in columns
I,J,K & L
Mike
 
J

JMG

=SUMPRODUCT(--(A1:A100="Jones"),--(D1:D100="baseball"),E1:E100)

Not sure I understand the '--' before the arguments. Can you clarify?
 
R

Ron Coderre

You'll notice I ignored your comment about avoiding pivot tables. <g>
This one is SO easy you almost HAVE TO use one!

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

Ron Coderre said:
EASY....Pivot Table!....Here's how:

From the Excel Main Menu: <Data><Pivot Table>
Use: Excel..Click [Next]
Select your data..Click [Next]
Click the [Layout] button

ROW: Drag the Name field here
COLUMN: Drag the EventName field here
DATA: Drag the PointsEarned field here
If it doesn't list as Sum of PointsEarned...dbl-click it and select Sum
Click [OK]
Select where you want the Pivot Table.Click [Finish].

That will create a table showing with:
Names down the left side
EventNames across the top
Sum of PointsEarnedand at each intersection

To refresh the Pivot Table, just right click it and select Refresh Data

Pivot Table Links:
http://www.nickhodge.co.uk/gui/datamenu/pivottablereport.htm
http://www.contextures.com/tiptech.html


Is that something you can work with?
Post back if you have more questions.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)


JMG said:
Basic output from 3rd party database is .xls in a format similar to:

Name OtherData OtherData EventName PointsEarned
Jones xxxxx xxxxx baseball 2.0
Jones xxxxx xxxxx football 2.5
Jones xxxxx xxxxx soccer 3.0
Smith xxxxx xxxxx baseball 1.0
Smith xxxxx xxxxx football 1.1
Smith xxxxx xxxxx soccer 1.5
White...and so on

My Goal:
Lookup by Name and EventName, and return PointsEarned.

BASEBALL FOOTBALL SOCCER

Jones 2.0 2.5 3.0
Smith 1.0 1.1 1.5
White...

I also totally lack understanding of PivotTables, and out of pure
stubbornness, am trying to avoid using them. ...probably to my own
demise.

Thanks in advance.
 

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

Top