Finding matching cells between two workborks and updating cell con

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have two workbooks, I would like to replace information in the first
workbook with information from the second book by searching for a reference
and then replacing information.
Workbooks contain following info -
Operation number - EA100, Operation time 0.30.
I want to find the operation number and then replace the operation time with
the latest time from the second work book.

Thanks in advance
 
Assume source Ops Nos & Ops Times are
runnning in A2 and B2 down in Sheet1 in Book1.xls

With Book1.xls open simultaneously,
In Book2.xls, in Sheet1,
Assuming Ops Nos running in A2 down
place in B2:
=INDEX([Book1]Sheet1!$B:$B,MATCH(A3,[Book1]Sheet1!$A:$A,0))
Copy down

Perhaps better with an error trap to return blanks: "" instead of ugly
#N/As, you could use instead in B2:
=IF(ISNA(MATCH(A3,[Book1]Sheet1!$A:$A,0)),"",INDEX([Book1]Sheet1!$B:$B,MATCH(A3,[Book1]Sheet1!$A:$A,0)))
 
Sorry, correction for consistency with formulas suggested earlier which were
for B3 instead of B2:
In Book2.xls, in Sheet1,
Assuming Ops Nos running in A2 down
place in B2:

A2, B2 in the lines above should read as A3, B3

---
 

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