Checking the lower row of vlookup()

  • Thread starter Thread starter ETLahrs
  • Start date Start date
E

ETLahrs

I am trying to see if there is a way to check a lower row after vlookup has
found the string in the first column. Example:

Year Event Length
1995 A 10
1995 B 56
1995 C 15

How would I search on another sheet to see if year "1995" had event "C", and
if so, display the length. This is a long spreadsheet with many items in the
first column and the second column isn't always in the number of entries.

Thanks For Any Info.
Edward
 
One way is to create a helper column that's =A2&B2, then Vlookup '1995C'.

Another way is to use Sumproduct, as in:

=sumproduct(--(a2:a4=1995),--(b2:b4="C"),c2:c4)

Both of these will work as long as the combination of A and B is unique.

Regards,
Fred.
 

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

Back
Top