Excel Updation

T

test

Greetings,

I am using Microsoft Office excel 2003.

I have a requirement where I have to compare two sheets within an
excel and needs to update columns of sheet1 with the respective row
value from sheet2.

Pseudocode is:

1) Compare columnA (of Sheet1) and ColumnA (of sheet2) of excel say
test.xls
2) If value matches anywhere, update ColumnB, ColumnC (of Sheet1) with
value from ColumnB, ColumnC (of Sheet2)

Can anyone please advise me here? Any help would be appreciated.

TIA
 
J

Jacob Skaria

Use this formula in Sheet1; and copy those to other cells in col B and C

Columb B1=INDEX(Sheet2!A$1:C$4,MATCH(A1,Sheet2!A$1:A$4,0),2)
Columb C1=INDEX(Sheet2!A$1:C$4,MATCH(A1,Sheet2!A$1:A$4,0),3)


If this post helps click Yes
 
T

test

Use this formula in Sheet1; and copy those to other cells in col B and C

Columb B1=INDEX(Sheet2!A$1:C$4,MATCH(A1,Sheet2!A$1:A$4,0),2)
Columb C1=INDEX(Sheet2!A$1:C$4,MATCH(A1,Sheet2!A$1:A$4,0),3)

If this post helps click Yes
--------------
Jacob Skaria











- Show quoted text -

Jacob,

It works. Thank alot. One quick clarification, cells which does not
have any matching value, I want to keep them as it is. In this case it
is getting filled with "N/A" value. How can I avoid this?

TIA
 
J

Jacob Skaria

Dear, please try

Columb
B1=IF(ISNA(MATCH(A1,Sheet2!A$1:A$4,0)),"",INDEX(Sheet2!A$1:C$4,MATCH(A1,Sheet2!A$1:A$4,0),2))

Columb
C1=IF(ISNA(MATCH(A1,Sheet2!A$1:A$4,0)),"",INDEX(Sheet2!A$1:C$4,MATCH(A1,Sheet2!A$1:A$4,0),3))


If this post helps click Yes
 
T

test

Dear, please try

Columb
B1=IF(ISNA(MATCH(A1,Sheet2!A$1:A$4,0)),"",INDEX(Sheet2!A$1:C$4,MATCH(A1,She­et2!A$1:A$4,0),2))

Columb
C1=IF(ISNA(MATCH(A1,Sheet2!A$1:A$4,0)),"",INDEX(Sheet2!A$1:C$4,MATCH(A1,She­et2!A$1:A$4,0),3))

If this post helps click Yes
--------------
Jacob Skaria






- Show quoted text -

Jacob, It worked. Thanks alot for your help.
 
T

test

Dear, please try

Columb
B1=IF(ISNA(MATCH(A1,Sheet2!A$1:A$4,0)),"",INDEX(Sheet2!A$1:C$4,MATCH(A1,She­et2!A$1:A$4,0),2))

Columb
C1=IF(ISNA(MATCH(A1,Sheet2!A$1:A$4,0)),"",INDEX(Sheet2!A$1:C$4,MATCH(A1,She­et2!A$1:A$4,0),3))

If this post helps click Yes
--------------
Jacob Skaria






- Show quoted text -

Jacob, It worked. Thanks alot for your help.
 

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

Top