ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Looking up values in a table (https://www.excelbanter.com/new-users-excel/262477-looking-up-values-table.html)

Aris

Looking up values in a table
 
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,

Lars-Åke Aspelin[_4_]

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

edvwvw via OfficeKB.com

Looking up values in a table
 
I am not sure that this will work as you need to define the range for
SUMPRODUCT

Each element needs to be the same size

=SUMPRODUCT(--(A1:A10="Feb"),--(B1:B10="John"),C1:C10)

edvwvw

Lars-Ã…ke Aspelin wrote:
Hi,

[quoted text clipped - 16 lines]

Thank you,


Try this formula:

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

Hope this helps / Lars-Ã…ke


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/201004/1



All times are GMT +1. The time now is 06:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com