whitefrodude
New Member
- Joined
- Mar 4, 2014
- Messages
- 2
I have 2 sheets with receipt numbers on them. What I want to do is run a macro that will search the first sheet to see if any of the numbers on the second sheet match and then will take the cells that match and copy them below the one they matched. For example In the data below, if a receipt number on Sheet two matches a receipt number on sheet 1 then it would copy the line on sheet 2 to sheet 1 so that I would have all receipts together as seen below .
Sheet 1
Receipt Number Amount
12345 $5.00
87653 $7.00
95740 $10.00
92738 $5.00
287380 $6.00
Sheet 2
Receipt Number Amount
68706 $2.00
45687 $5.00
12345 $4.00
287380 $3.00
59778 $3.00
New Sheet 1
Receipt Number
12345 $5.00
12345 $4.00
87653 $7.00
95740 $10.00
92738 $5.00
287380 $6.00
287380 $3.00
Sheet 1
Receipt Number Amount
12345 $5.00
87653 $7.00
95740 $10.00
92738 $5.00
287380 $6.00
Sheet 2
Receipt Number Amount
68706 $2.00
45687 $5.00
12345 $4.00
287380 $3.00
59778 $3.00
New Sheet 1
Receipt Number
12345 $5.00
12345 $4.00
87653 $7.00
95740 $10.00
92738 $5.00
287380 $6.00
287380 $3.00