View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default Comparing two lists and extracting data from one to another

maybe

=if(isna(vlookup(A2,StateRange,2,1),"",vlookup(A2, StateRange,2,1))

"Clement" wrote:

I need to be able to compare two lists and then move data from one to the
other if records are matched.
For example, I need to fill in Ben's State in My List but only if there is a
match in the Reference List.

My List:
Column A Column B
Name State
Ben

Reference List:
Column A Column B
Name State
Ben FL

I used the MATCH and VLOOKUP functions but has not quite got the job done
Please help!
--
Clement E