Macro to look in Colmn "U" find what is not a match in Col "C"

Thomas Steve Hill

New Member
Joined
Jul 9, 2008
Messages
36
Been looking for a Macro to search in Column U and look in column C to find what numbers do not match then cut the Cells found in that row under Column U through Column Z and then paste the data in the last blank row under Column U. Sometimes there it will always match and then there is one or more that will not match. Both columns will always be a number. What is happening I am comparing data from last weeks pull from a database then compare the data is a current pull to see what has changed, that part is work fine, the problem is when a new entry is added the current data will have one or more extra entries and the side by side comparison is out of line so my Lookup and IF statements all flag. I need to take those in Column U that is a new Unique ID number that was added cut those cells and then find last cell under Column U and paste the data there and loop till all new numbers are at the bottom. The spreadsheet is sorting first by a column that is one location xyz then by the unique ID in ascending order. So under xyz the other specific area is ABC and then those unique numbers or sorted ascending. So when a new unique number is added to xyz then the comparison of side by side is out of sequence to match up. Sorry for being so wordy. Hope the below helps to explain. Maybe it would be easier to cut and paste the Last Data pulled and cut and paste that date down 1 row to get the sequence back right, I cannot figure it out on my own.</SPAN>
Thank you for your help!!! :confused:

Last data pullCurrent data pullArea
4444XYZ
686686XYZ
689689XYZ
690690XYZ
693700XYZNew Entry and now out of sorts
694693ABC
725694ABC
741725ABC
742741ABC
743742ABC
743ABC

<COLGROUP><COL style="WIDTH: 48pt" span=4 width=64><TBODY>
</TBODY>

</SPAN>
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,214,994
Messages
6,122,633
Members
449,092
Latest member
bsb1122

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