Forum Discussion
How do I make 2 columns match/line up with one another with matching data?
I have two columns of data numbers I want to match/line with one another but want to see if they can be spaced if not matching between the columns? I have found conditional formatting to mark the two that are not matching the rows but it is taking lots of time to get thru like 5000. I am trying to see if I can get Column A and Column B to line up with one another while spacing in the row when they don't but moving the numbers to line up with one another when they match.
I.E
Column A Column B
123 123
456 456
789 1001
1001 1002
1002 1003
1003 1004
1004
I would like it to look like:
Column A ColumnB
123 123
456 456
789
1001 1001
1002 1002
1003 1003
If it is possible. Basically I am working with item numbers at my work, each day some items go out of stock or they add new items that I am wanting to match the item numbers quickly but point out ones that are gone or new.
I am not an expert in Excel, so if it involves expert steps/programming (if what I am wanting to do is possible), just list the steps or what I need to do.
I appreciate all your time and help!!!!!
6 Replies
- TwifooSilver ContributorWhy not list in Column C the items in Column A that are not found in Column B?
- Supermanfan75Copper Contributor
That could help too. I am looking for any way to make it easier or show. Twifoo
- TwifooSilver Contributor
You could use this formula in Column C, starting in C2, copied down rows:
=IFERROR(INDEX(A$2:A$10,
AGGREGATE(15,6,
1/((COUNTIF(B$2:B$10,A$2:A$10)=0)*(COUNTIF(C$1:C1,A$2:A$10)=0))*(ROW(A$2:A$10)-1),1)),"")See the sample in the attached file.