I have an excel file that reports on multiple departments and I would like a way to determine where certain relationships are. Below is an example. Ideally if the macro finds that the relationship exists between Row 2 and Row 3 by knowing that A2=B3 and B2=A3 it would then move Row 3’s $125.00 to D2 and delete Row 3 and go the next row where it would again find that A4=B5 and B4=A5 and then move Row 5’s $1,000.00 to D4. The code would have to be able to bypass Rows 6 and 7 (no relationship) and resume on Row 8.
Row 1 Column A Column B Column C Column D
Row 2 Team A Team B $500.00
Row 3 Team B Team A $125.00
Row 4 Team C Team D $750.00
Row 5 Team D Team C $1,000.00
Row 6 Team E Team F $1,001.00
Row 7 Team G Team H $1,002.00
Row 8 Team I Team J $1,003.00
Row 9 Team J Team I $1,004.00
Thanks!
Bookmarks