![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 27
|
I have two worksheets that have similar data. The new worksheet contains clients and fees collected while the original worksheet contains this information plus another twenty fields that I need.
My goal is to avoid the duplication of work. Both sheets contains clients that are the same, but the new sheet also contains new clients and perhaps has lost a few clients. Is there a way to: A.) Compare the data in A2:A500 (Worksheet one) with A2:A500 (Worksheet two)... B.) Where ever the information in the columns are the same, then take the information in C2 - V2: C500 - V500 (worksheet one) and fill in the same cells in worksheet two? I am guessing this will be an If...then statement, but am not quite sure how to set it up successfully. Can anyone help with this? Thank you, Jason |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Quote:
=IF(ISNA(VLOOKUP($A1,Sheet2!$A$2:$V$500,COLUMN(),0)),0,VLOOKUP($A1,Sheet2!$A$2:$V$500,COLUMN(),0)) This will return the value 0 if no match is found. If you want it to be blank, replace 0 with "". Regards,
__________________
Barrie Davidson "You're only given a little spark of madness. You mustn't lose it." - Robin Williams |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|