Compare

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

I got 4 columns as below in which Name:Age has a relation. In the Name2
column, I got a subset of Name1 column, I need the Age2 column to be filled
by looking up the Name1:Age1 relation.

Name1 | Age1 | Name2 | Age2
 
Hi Joe

Check out help on VLOOKUP()

In cell D1
=VLOOKUP(C1,A:B,2,0)

This returns an error if the entry in C1 is not in ColA. You can handle that
using
ISNA() IF() combination as below.

=IF(ISNA(VLOOKUP(C1,A:B,2,0)),"",VLOOKUP(C1,A:B,2,0))
 

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

Similar Threads

sorting data 2
Naming cells 2
group 3
Filtering diverse values 1
CountIf value 3
Sorting the first text in a row 4
select max value from row of data and column containing max value 1
Variable cell referencing 1

Back
Top