Forum Discussion
How do I make 2 columns match/line up with one another with matching data?
That could help too. I am looking for any way to make it easier or show. Twifoo
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.
- Supermanfan75May 29, 2019Copper Contributor
I have tried the formula and it does not go pass 10 rows. I have copied and moved column A down to highlight all the cells and did the same thing in column B and still comes up as 0 in Column C. I see in your download/sample file it displayed the difference but if change the numbers (copy/paste) out, nothing occurs. The first 10 rows I know match but going farther does nothing. I must be not doing something right. Even if I change all the A's to the ending row number and the B number row, still nothing occurs any different. Twifoo
- TwifooMay 29, 2019Silver Contributor
The formula returns the correct results only until Row 10 because the ranges are static. Such ranges in the attached version of the file are now dynamic, such that the formula in C2, copied down rows, has been modified to:
=IFERROR(INDEX(ListA,
AGGREGATE(15,6,
1/((COUNTIF(ListB,ListA)=0)*(COUNTIF(C$1:C1,ListA)=0))*(ROW(ListA)-1),1)),"")- Supermanfan75Jun 01, 2019Copper Contributor
I must be not doing something right or missing something. I took your second file and it just shows 0 each time. I have copy paste, highlighted the rows and it is not picking up differences. Maybe it is easier to show the worksheet I have I am trying to work with. I do want to tell you, Thank you for all your help and time with this!!! Twifoo