View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Lars-Åke Aspelin[_4_] Lars-Åke Aspelin[_4_] is offline
external usenet poster
 
Posts: 83
Default Looking up values in a table

On Mon, 26 Apr 2010 11:55:01 -0700, Aris
wrote:

Hi,

How do you search for data from a table having 2 criterias?

Example:
Month Name Score
Jan John 3
Jan Mark 2
Jan Tom 4
Feb John 5
Feb Mark 3
Feb Tom 4
Mar John 5
Mar Mark 4
Mar Tom 3


Let's say i want to look for the score for john in Feb. What formula could I
use?

Thank you,


Try this formula:

=SUMPRODUCT(--(A:A="Feb"),--(B:B="John"),C:C)

Hope this helps / Lars-Åke