Comparing Arrays

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to compare two arrays and output message if they are exactly
the same, and output a different message if there is a difference in the
array. I would like to be able to do this in one cell. I am able to compare
all the cells individually, but would rather compare the arrays as a whole.

For example:

Tab 1
Column A Column B Column C
----------- ----------- -----------
George 15 10/6/04

Tab 2
Column A Column B Column C
----------- ----------- -----------
George 15 10/6/04


Is there a formula that I can use to say examine these two arrays and say
"Correct" because they are exactly the same?



Tab 1
Column A Column B Column C
----------- ----------- -----------
George 15 10/6/04

Tab 2
Column A Column B Column C
----------- ----------- -----------
George 46 10/6/04


In this example, Column B on Tab 2 does not match Column B on Tab 1. This
would result in the two formulas not being equal. How can a formula in one
cell show that?

Any help would be greatly appreciated. Thanks.
 
=IF(tab1!A1&tab1!B1&tab1!C1=tab2!A1&tab2!B1&tab2!C1,"","in")&"correct"

HTH
Jason
Atlanta, GA
 
If the functions in the freely downloadable file at
http:/home.pacbell.net/beban are available to your workbook, then either
of the following will return True or False:

=RowsEqual(Sheet4!A1:C1,Sheet5!A1:C1)

=ColumnsEqual(Sheet4!A1:C1,Sheet5!A1:C1)

Alan Beban
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top