L
leecs
Hi,
I had read many excellent samples & explanation from group. I try
to adopt some sample into my work but I fail to digest & use it. I
plan to get number of differences between 2 table (with multiple row &
column). A sample is my table:
(Table 1) (Table 2)
A B ...... F G
1 Anthony Coffee Anthony Coffee
2 Anthony Tea David Tea
3 David Tea Micheal Pepsi
4 Anthony Coffee Cloud
5 Anthony Pepsi
6 Micheal Coffee
7 Tea
8 Micheal Coffee
9 Cloud Tea
10 David Pepsi
I try to compare "column A VS partial column F" AND "column B VS
partial column G".
If I use
"=SUMPRODUCT(--((A1:A10=F1)+(A1:A10=F2)),--((B1:B10=G2)+(B1:B10=G3)))",
I able to get the answer which equal to 4.
But in actual, the criteria contain more than hundred of row, it is
not convenience for me to insert row by row. Then I try use the
formulas as
"=SUMPRODUCT(--(A1:A10=TRANSPOSE(F1:F2)),--(B1:B10=TRANSPOSE(G2:G3)))".
But the answer returned is only 2.
I knew that can be solved by VBA. But pls kindly teach me how to use
Excel function to solve it. Thank you very much.
I had read many excellent samples & explanation from group. I try
to adopt some sample into my work but I fail to digest & use it. I
plan to get number of differences between 2 table (with multiple row &
column). A sample is my table:
(Table 1) (Table 2)
A B ...... F G
1 Anthony Coffee Anthony Coffee
2 Anthony Tea David Tea
3 David Tea Micheal Pepsi
4 Anthony Coffee Cloud
5 Anthony Pepsi
6 Micheal Coffee
7 Tea
8 Micheal Coffee
9 Cloud Tea
10 David Pepsi
I try to compare "column A VS partial column F" AND "column B VS
partial column G".
If I use
"=SUMPRODUCT(--((A1:A10=F1)+(A1:A10=F2)),--((B1:B10=G2)+(B1:B10=G3)))",
I able to get the answer which equal to 4.
But in actual, the criteria contain more than hundred of row, it is
not convenience for me to insert row by row. Then I try use the
formulas as
"=SUMPRODUCT(--(A1:A10=TRANSPOSE(F1:F2)),--(B1:B10=TRANSPOSE(G2:G3)))".
But the answer returned is only 2.
I knew that can be solved by VBA. But pls kindly teach me how to use
Excel function to solve it. Thank you very much.