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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,195,619
Messages
6,010,736
Members
441,567
Latest member
Flitbee

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
Top