So I have a dilemma and I have made it work before but for some reason I can't remember how I did it or where I saved the file that i did it in before.
I would like to align two columns of data side by side. one column has less rows than the other so I need a macro that will move the one columns data to align with its corresponding math in the other. Example below.
The number next to each part number needs to go with that part number as well seeing how thats the number i am comparing anyway. We did a physical inventory and this is me comparing the 2 columns of data. I'm basically looking for any discrepancies between there data and our data. The physical discrepancies are few and I can check those no problem by searching. If someone can show me a better way to compare these two lines of data I am all ears but if not aligning them is the next best thing. FYI, column 1 has over 5000 part numbers (our customer who for some reason doesn't seem to know which warehouse has what parts), column E has only about 1700.
A B C D E
[TABLE="width: 525"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]There #s
[/TD]
[TD] Qty
[/TD]
[TD] [/TD]
[TD]Our #s[/TD]
[TD="align: right"] Qty
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]02WNSB0400-TH[/TD]
[TD]0[/TD]
[TD]
[/TD]
[TD]03WHNSB0730-TH[/TD]
[TD="align: right"]7
[/TD]
[/TR]
[TR]
[TD]02WNSB0680-TH[/TD]
[TD]23[/TD]
[TD] [/TD]
[TD]03WHNSB0740-TH[/TD]
[TD="align: right"]7
[/TD]
[/TR]
[TR]
[TD]02WNSB1030-TH[/TD]
[TD]40[/TD]
[TD] [/TD]
[TD]03WHNSB0750-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]02WNSB1050-TH[/TD]
[TD]35[/TD]
[TD] [/TD]
[TD]03WHNSB0760-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]02WNSB1060-TH[/TD]
[TD]0[/TD]
[TD] [/TD]
[TD]03WHNSB0770-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]02WNSB1080-TH[/TD]
[TD]50[/TD]
[TD] [/TD]
[TD]03WHNSB0780-TH[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]02WNSB1150-TH[/TD]
[TD]0[/TD]
[TD] [/TD]
[TD]03WHNSB0790-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]02WNSB1180-TH[/TD]
[TD]65[/TD]
[TD] [/TD]
[TD]03WHNSB0800-TH[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD]02WNSB1230-TH[/TD]
[TD]60[/TD]
[TD] [/TD]
[TD]03WHNSB0810-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]02WNSB1250-TH[/TD]
[TD]56[/TD]
[TD] [/TD]
[TD]03WHNSB0820-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03FWHNSB0800-TH[/TD]
[TD]0[/TD]
[TD] [/TD]
[TD]03WHNSB0830-TH[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]03FWHNSB1080-TH[/TD]
[TD]0[/TD]
[TD] [/TD]
[TD]03WHNSB0840-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03WHNSB0300-TH[/TD]
[TD]10[/TD]
[TD] [/TD]
[TD]03WHNSB0600-TH[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]03WHNSB0310-TH[/TD]
[TD]6[/TD]
[TD] [/TD]
[TD]03WHNSB0610-TH[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]03WHNSB0320-TH[/TD]
[TD]6[/TD]
[TD] [/TD]
[TD]03WHNSB0620-TH[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]03WHNSB0330-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0630-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03WHNSB0340-SD[/TD]
[TD]0[/TD]
[TD] [/TD]
[TD]03WHNSB0650-TH[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]03WHNSB0340-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0660-TH[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]03WHNSB0350-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0670-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03WHNSB0360-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0680-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03WHNSB0370-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0690-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03WHNSB0380-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0700-TH[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]03WHNSB0390-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0710-TH[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]03WHNSB0400-TH[/TD]
[TD]13[/TD]
[TD] [/TD]
[TD]03WHNSB0720-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03WHNSB0405-TH[/TD]
[TD]0[/TD]
[TD] [/TD]
[TD]03WHNSB0480-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03WHNSB0410-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0490-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03WHNSB0420-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0500-TH[/TD]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD]03WHNSB0430-TH[/TD]
[TD]6[/TD]
[TD] [/TD]
[TD]03WHNSB0510-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03WHNSB0440-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0520-TH[/TD]
[TD="align: right"]
5
[/TD]
[/TR]
</tbody>[/TABLE]
Thanks for your help guys and gals
I would like to align two columns of data side by side. one column has less rows than the other so I need a macro that will move the one columns data to align with its corresponding math in the other. Example below.
The number next to each part number needs to go with that part number as well seeing how thats the number i am comparing anyway. We did a physical inventory and this is me comparing the 2 columns of data. I'm basically looking for any discrepancies between there data and our data. The physical discrepancies are few and I can check those no problem by searching. If someone can show me a better way to compare these two lines of data I am all ears but if not aligning them is the next best thing. FYI, column 1 has over 5000 part numbers (our customer who for some reason doesn't seem to know which warehouse has what parts), column E has only about 1700.
A B C D E
[TABLE="width: 525"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]There #s
[/TD]
[TD] Qty
[/TD]
[TD] [/TD]
[TD]Our #s[/TD]
[TD="align: right"] Qty
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]02WNSB0400-TH[/TD]
[TD]0[/TD]
[TD]
[/TD]
[TD]03WHNSB0730-TH[/TD]
[TD="align: right"]7
[/TD]
[/TR]
[TR]
[TD]02WNSB0680-TH[/TD]
[TD]23[/TD]
[TD] [/TD]
[TD]03WHNSB0740-TH[/TD]
[TD="align: right"]7
[/TD]
[/TR]
[TR]
[TD]02WNSB1030-TH[/TD]
[TD]40[/TD]
[TD] [/TD]
[TD]03WHNSB0750-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]02WNSB1050-TH[/TD]
[TD]35[/TD]
[TD] [/TD]
[TD]03WHNSB0760-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]02WNSB1060-TH[/TD]
[TD]0[/TD]
[TD] [/TD]
[TD]03WHNSB0770-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]02WNSB1080-TH[/TD]
[TD]50[/TD]
[TD] [/TD]
[TD]03WHNSB0780-TH[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]02WNSB1150-TH[/TD]
[TD]0[/TD]
[TD] [/TD]
[TD]03WHNSB0790-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]02WNSB1180-TH[/TD]
[TD]65[/TD]
[TD] [/TD]
[TD]03WHNSB0800-TH[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD]02WNSB1230-TH[/TD]
[TD]60[/TD]
[TD] [/TD]
[TD]03WHNSB0810-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]02WNSB1250-TH[/TD]
[TD]56[/TD]
[TD] [/TD]
[TD]03WHNSB0820-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03FWHNSB0800-TH[/TD]
[TD]0[/TD]
[TD] [/TD]
[TD]03WHNSB0830-TH[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]03FWHNSB1080-TH[/TD]
[TD]0[/TD]
[TD] [/TD]
[TD]03WHNSB0840-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03WHNSB0300-TH[/TD]
[TD]10[/TD]
[TD] [/TD]
[TD]03WHNSB0600-TH[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]03WHNSB0310-TH[/TD]
[TD]6[/TD]
[TD] [/TD]
[TD]03WHNSB0610-TH[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]03WHNSB0320-TH[/TD]
[TD]6[/TD]
[TD] [/TD]
[TD]03WHNSB0620-TH[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]03WHNSB0330-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0630-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03WHNSB0340-SD[/TD]
[TD]0[/TD]
[TD] [/TD]
[TD]03WHNSB0650-TH[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]03WHNSB0340-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0660-TH[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]03WHNSB0350-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0670-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03WHNSB0360-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0680-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03WHNSB0370-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0690-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03WHNSB0380-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0700-TH[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]03WHNSB0390-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0710-TH[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]03WHNSB0400-TH[/TD]
[TD]13[/TD]
[TD] [/TD]
[TD]03WHNSB0720-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03WHNSB0405-TH[/TD]
[TD]0[/TD]
[TD] [/TD]
[TD]03WHNSB0480-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03WHNSB0410-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0490-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03WHNSB0420-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0500-TH[/TD]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD]03WHNSB0430-TH[/TD]
[TD]6[/TD]
[TD] [/TD]
[TD]03WHNSB0510-TH[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]03WHNSB0440-TH[/TD]
[TD]7[/TD]
[TD] [/TD]
[TD]03WHNSB0520-TH[/TD]
[TD="align: right"]
5
[/TD]
[/TR]
</tbody>[/TABLE]
Thanks for your help guys and gals