Excel Help

Closed
Jish - Feb 15, 2010 at 11:17 PM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Feb 15, 2010 at 11:57 PM
Hi,
I am looking for a macro that will cpoy and paste data if it mets certain contintions,
Say i have two sheets of data in which sheet1 contains 3 columns-
A1 B1 C1
C N L N Q Cer
0022220 123456789
0022220 987654321
and i have similar data in sheet 2.

Cell A1 B1
Loan Number Qcer User ID
987654321 U50DAK
123456789 U50MDK

i want to run a macro/formula that takes all the values in the sheet2!B to Sheet!1 column C1 only if the column B1 of the sheet 1 matches with Cell A1 of the sheet 2.

Please help me.

Thanks in advance,

Jishad
Related:

1 response

rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
Feb 15, 2010 at 11:57 PM
Try this

=if(iserror(VLOOKUP(B2,Sheet2!A:B,2,FALSE)), "", VLOOKUP(B2,Sheet2!A:B,2,FALSE))
0