Two similar Excel sheets comparison and data filling

angmocummer

New Member
Joined
Nov 17, 2013
Messages
6
Dear friends,

I have 2 system generated Excel files that have certain combinations and prices against those combinations.

The 2 Excel worksheets are based in the following format:

Column A - Unique system generated ID, these IDs are different in both the sheets.
Column B - Pricing Parameter
Column C - Pricing Parameter
Column D - Pricing Parameter
Column E - Pricing Parameter
Column F - Pricing Parameter
Column G - Pricing Parameter
Column H - Pricing information (numerical value)
Column I - Pricing information (numerical value)
Column J - Pricing information (numerical value)
Column K - Pricing information (numerical value)

Both Excel files are identical.

Column A has different values in both the files.
There are several records where columns B through G have identical information. However there are several records that are additional in the second Excel file.

Columns H through K have pricing information that are based on the combinations in columns B through G.

The aim is to copy the prices in H to K based on the combinations of B through G from one sheet to another.

Here is an example of the Excel File - BayFiles

The First Sheet has the "source combinations"
The Second sheet has the "destination combinations"
Formats of both sheets are identical.
Columns A has different IDs in both sheets.
Columns B through G have some identical records. however the second sheet with "Destination Combinations" has records that do not exist in the first sheet "Source Combinations"

If a combination exists in Columns B - G in the first sheet and also exists in the second sheet in Columns B - G, the values from in the first sheet that exist in Columns H - K need to be copied to the second sheet in Columns H - K.
If the combinations do not exist in columns B - G, then off course nothing can be done and those values in the second sheet need to be left blank.

How can I do this? Any fuzzy logic? Any macros? I am trying my best to figure out any way to do this intelligently, copy pasting is really slow. Filtering and copy pasting has its own sets of issues and is very error prone. And it seems that some intelligence can solve this because data is identical, however I lack that! I am an amateur in Excel but I am inclined to search, research, learn and share.

Any help to solve this conundrum will be really helpful.

Really looking forward to your answers.

Thanks for your time.

David.

PS: I am using Excel 2013!
 
Last edited:

Sanjeev1976

Board Regular
Joined
Dec 25, 2008
Messages
247
Hi David,

Welcome to the board.

You can download the updated file from the below link for your query.

BayFiles

Sanjeev
 

angmocummer

New Member
Joined
Nov 17, 2013
Messages
6
Hi David,

Welcome to the board.

You can download the updated file from the below link for your query.

BayFiles

Sanjeev
Sanjeev, thank you very much. That was above and beyond what I was expecting. Extremely thankful!

If you don't mind, would want to know/learn as to how to handle a scenario where:

Destination workbook has a combination in Row 2, but the Source workbook has the combination in Row 10, would the program look for the combination until it finds it? If it does not, then in that case it means that both files should have the same sequence. How to get around it?

Thanks again!
 

Sanjeev1976

Board Regular
Joined
Dec 25, 2008
Messages
247
Sanjeev, thank you very much. That was above and beyond what I was expecting. Extremely thankful!

If you don't mind, would want to know/learn as to how to handle a scenario where:

Destination workbook has a combination in Row 2, but the Source workbook has the combination in Row 10, would the program look for the combination until it finds it? If it does not, then in that case it means that both files should have the same sequence. How to get around it?

Thanks again!
Hi David,

The reply to your above query is already in the file sent to you. The program will automatically look for the combination in the Source workbook provided you give the right command.

Regards,

Sanjeev
 

Forum statistics

Threads
1,081,728
Messages
5,360,923
Members
400,602
Latest member
newaqua

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top