Excel Help

Closed
Jish - 15 Feb 2010 à 23:17
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 15 Feb 2010 à 23:57
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 28 January 2010 Status Contributor Last seen 5 May 2022 766
15 Feb 2010 à 23:57
Try this

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