lookup multi values
Hi!
If there will be only a single instance of 060831 and Joe?
Assuming the report dates are really formatted TEXT entries (leading 0's):
=SUMPRODUCT(--(A2:A5="060831"),--(B2:B5="Joe"),C2:C5)
If there might be multiple instances of 060831 and Joe which one do you
want?
Entered as an array using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):
=INDEX(C2:C5,MATCH(1,(A2:A5="060831")*(B2:B5="Joe" ),0))
Will match the FIRST instance.
Biff
"robtlewis957" wrote in message
...
I need to lookup data within a list and select a value in the appropriate
row
based on the values of two inputs(report date and user name, for example),
not just one. The list data is such that I cannot make any modifications
to
it (like concatenating the two fields together.
ReportDate User Value
060824 Mary $5
060824 Joe $4
060831 Mary $6
060831 Joe $3
I need to be able to retrieve the value $3 by inputting 060831 and Joe.
Note the list has many rows and about a dozen columns.
|