Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 519
Default Compare A&B columns with C&D columns

Hello from Steved

I have 4 Columns of information

Compare A&B columns with C&D columns

If C&D differ from A&B display "False"

What would be the Formula for the above please.

Thankyou.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Compare A&B columns with C&D columns

"Steved" wrote:
Compare A&B columns with C&D columns
If C&D differ from A&B display "False"
What would be the Formula for the above please.


Perhaps one of the following equivalent formulas.

The following array formula (commit with ctrl-shift-Enter instead of Enter):

=AND(A1:A4=C1:C4,B1:B4=D1:D4)

Alternatively, the following normal formula (commit with Enter as usual):

=SUMPRODUCT(AND(A1:A4=C1:C4)*AND(B1:B4=D1:D4))0


Note: These formulas display FALSE if the pair-wise columns differ. But
the formulas also display TRUE if the columns do not differ. You did not
specify the latter. If that is not acceptable, there is a simple fix. For
example:

=IF(SUMPRODUCT(AND(A1:A4=C1:C4)*AND(B1:B4=D1:D4)) 0, "")

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 519
Default Compare A&B columns with C&D columns

Hello JoeU2004

I've gone with the Below

=AND(A1:A4=C1:C4,B1:B4=D1:D4)

With the Above Can I have it Display "FALSE" in Red Text with a Yellow
Background please, or is there another formula that will allow this.

I Thankyou

Steved




"JoeU2004" wrote:

"Steved" wrote:
Compare A&B columns with C&D columns
If C&D differ from A&B display "False"
What would be the Formula for the above please.


Perhaps one of the following equivalent formulas.

The following array formula (commit with ctrl-shift-Enter instead of Enter):

=AND(A1:A4=C1:C4,B1:B4=D1:D4)

Alternatively, the following normal formula (commit with Enter as usual):

=SUMPRODUCT(AND(A1:A4=C1:C4)*AND(B1:B4=D1:D4))0


Note: These formulas display FALSE if the pair-wise columns differ. But
the formulas also display TRUE if the columns do not differ. You did not
specify the latter. If that is not acceptable, there is a simple fix. For
example:

=IF(SUMPRODUCT(AND(A1:A4=C1:C4)*AND(B1:B4=D1:D4)) 0, "")


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Compare A&B columns with C&D columns

"Steved" wrote:
With the Above Can I have it Display "FALSE" in Red Text
with a Yellow Background please


Geesh! Next, you'll be asking for the world! Just kidding....

In Excel 2003, click on Format Conditional Formatting, and select "Cell
Value Is", "equal to", FALSE. Then click on Format (in the Conditional
Formatting dialog box), and set Font Color (red) and Patterns (yellow).


----- original message -----

"Steved" wrote in message
...
Hello JoeU2004

I've gone with the Below

=AND(A1:A4=C1:C4,B1:B4=D1:D4)

With the Above Can I have it Display "FALSE" in Red Text with a Yellow
Background please, or is there another formula that will allow this.

I Thankyou

Steved




"JoeU2004" wrote:

"Steved" wrote:
Compare A&B columns with C&D columns
If C&D differ from A&B display "False"
What would be the Formula for the above please.


Perhaps one of the following equivalent formulas.

The following array formula (commit with ctrl-shift-Enter instead of
Enter):

=AND(A1:A4=C1:C4,B1:B4=D1:D4)

Alternatively, the following normal formula (commit with Enter as usual):

=SUMPRODUCT(AND(A1:A4=C1:C4)*AND(B1:B4=D1:D4))0


Note: These formulas display FALSE if the pair-wise columns differ. But
the formulas also display TRUE if the columns do not differ. You did not
specify the latter. If that is not acceptable, there is a simple fix.
For
example:

=IF(SUMPRODUCT(AND(A1:A4=C1:C4)*AND(B1:B4=D1:D4)) 0, "")



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 519
Default Compare A&B columns with C&D columns

Thankyou.

"JoeU2004" wrote:

"Steved" wrote:
With the Above Can I have it Display "FALSE" in Red Text
with a Yellow Background please


Geesh! Next, you'll be asking for the world! Just kidding....

In Excel 2003, click on Format Conditional Formatting, and select "Cell
Value Is", "equal to", FALSE. Then click on Format (in the Conditional
Formatting dialog box), and set Font Color (red) and Patterns (yellow).


----- original message -----

"Steved" wrote in message
...
Hello JoeU2004

I've gone with the Below

=AND(A1:A4=C1:C4,B1:B4=D1:D4)

With the Above Can I have it Display "FALSE" in Red Text with a Yellow
Background please, or is there another formula that will allow this.

I Thankyou

Steved




"JoeU2004" wrote:

"Steved" wrote:
Compare A&B columns with C&D columns
If C&D differ from A&B display "False"
What would be the Formula for the above please.

Perhaps one of the following equivalent formulas.

The following array formula (commit with ctrl-shift-Enter instead of
Enter):

=AND(A1:A4=C1:C4,B1:B4=D1:D4)

Alternatively, the following normal formula (commit with Enter as usual):

=SUMPRODUCT(AND(A1:A4=C1:C4)*AND(B1:B4=D1:D4))0


Note: These formulas display FALSE if the pair-wise columns differ. But
the formulas also display TRUE if the columns do not differ. You did not
specify the latter. If that is not acceptable, there is a simple fix.
For
example:

=IF(SUMPRODUCT(AND(A1:A4=C1:C4)*AND(B1:B4=D1:D4)) 0, "")




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
compare columns Bob Excel Worksheet Functions 1 April 7th 08 10:56 PM
Compare Two columns JavyD Excel Worksheet Functions 4 September 20th 06 06:20 AM
Compare 4 columns? Deb Excel Worksheet Functions 1 May 16th 06 09:14 AM
Compare two columns Kaizen10 Excel Discussion (Misc queries) 2 April 27th 06 05:47 PM
Compare columns PiedmontJohn Excel Discussion (Misc queries) 4 January 7th 05 12:08 AM


All times are GMT +1. The time now is 03:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"