Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I have 3 sheets named 'sheet1', 'sheet2' and 'mapping' sheet.

'Sheet1' consist the actual data (Can say raw data and column numbers/header name can be different)

'Sheet2' Consist the master sheet columns (Sheet1 data header should be as per the sheet2)

'mapping' consist the mapping between sheet1 and sheet2
| AB| AF| AL|   | C1| C2| C3|   |sheet1 column_name |  Sheet2 column_name|
|-----------|   |-----------|   |     AB            |    C1              |
| 1 | f | y |   |   |   |   |   |     AL            |    C2              | 
|---------- |   |---------- |   |     AF            |    C3              | 
| 2 | g | Q |   |   |   |   |   -----------------------------------------
|---------- |   |---------- |   
| 6 | i | e |   |   |   |   |   
-------------   -------------   
       "Sheet 1"     "Sheet 2"                  "Mapping"

I am looking for code which can update sheet1 columns as per the mapping sheet. Like if mapping sheet says "AB" = "C1" then sheet1 column should be updated as "C1"

I have tried it using matchfunction but didn't get success.any other idea?

Thanks in advance.
Posted
Updated 28-May-14 21:38pm
v3

1 solution

If you're talking about XML mapping, have a look here: Creating an XML Mapping Schema in Excel 2010[^], Importing XML Data into a Mapped List in Excel 2010[^].
If not, let me know and i'll try to improve my answer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900