Comparison of Two Excel Files

StephenAdms

New Member
Joined
Jun 4, 2010
Messages
39
I would like assistance comparing data from D8:D5160 on Sheet2 to D8:D6245 on Sheet1. I'm trying to pull the unique identifier (serial number) from Sheet2's column and try to find it in Sheet1's column. The data in both column D's are not in the same order so it will have to go line by line on Sheet2 and look for each serial number on Sheet1.

If the serial number is present, I would like it to color the entire row grey in Sheet 1 and sort the greyed-out serial numbers to the non-grey from top to bottom respectively.

Thank you for your assistance! I have tried doing it several ways and have not been fruitful. I have also searched the forums but could not find a result.


-- removed inline image ---
 
Use conditional formatting with the following formula as an idea
Code:
=not(iserror(vlookup(Sheet1!D8,Sheet2!$D$8:$D$6245,1,false))

Thanks, this worked very well. Now, maybe you can help me with one more item. The cells that contain the color I need zero information on from Sheet 2, however, the ones that do not have a color I need information on.

This is my question:

1) Search Column D on Sheet1 for non-colored cell. Say D10 comes back as non-colored.
2) I then want to look up the order code in E10 and find it on Sheet2 in the E column.
3) If something comes back, I would like to take the value in Sheet2, column F and place it in Sheet1, column G.
4) If nothing comes back, just put #N/A.
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,214,918
Messages
6,122,241
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top