Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Comparing the values in two cells, then counting how many differ

Any ideas on how I might compare two columns based on a conditional formula,
then count the number of occurences?
Col 1 - 0
Col 2 - 6
Number of rows in worksheet: 4000+

I'd like to be able to conditionally account for any value in col 1 that is
0 and has a positive number in col 2 (I don't need to report the number in
col 2). I'd then like to have a count for the number of times this condition
occured.

Thanks for any help!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Comparing the values in two cells, then counting how many differ

Try this:

=SUMPRODUCT((A1:A4000=0)*(B1:B40000))

Hope this helps.

Pete

On Aug 29, 2:01*am, cgm02 wrote:
Any ideas on how I might compare two columns based on a conditional formula,
then count the number of occurences?
Col 1 - 0
Col 2 - 6
Number of rows in worksheet: *4000+

I'd like to be able to conditionally account for any value in col 1 that is
0 and has a positive number in col 2 (I don't need to report the number in
col 2). *I'd then like to have a count for the number of times this condition
occured.

Thanks for any help!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Comparing the values in two cells, then counting how many differ

Assuming there are no empty cells in column 1 and no text entries in column
2.

=SUMPRODUCT(--(A1:A4000=0),--(B1:B40000))

--
Biff
Microsoft Excel MVP


"cgm02" wrote in message
...
Any ideas on how I might compare two columns based on a conditional
formula,
then count the number of occurences?
Col 1 - 0
Col 2 - 6
Number of rows in worksheet: 4000+

I'd like to be able to conditionally account for any value in col 1 that
is
0 and has a positive number in col 2 (I don't need to report the number in
col 2). I'd then like to have a count for the number of times this
condition
occured.

Thanks for any help!



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
Counting days comparing 2 dates excluding empty cells Terry Rogers[_2_] Excel Worksheet Functions 4 August 11th 08 04:27 PM
Array formula to display 1 if concatentaed values differ.. bony_tony Excel Worksheet Functions 3 December 12th 07 04:24 PM
HOW DO I COMPARE TWO SHEETS AND IDENTIFY WHICH CELLS DIFFER STEVE THE PARTS GUY Excel Discussion (Misc queries) 1 March 2nd 06 07:13 PM
Counting values and comparing them to a single cell Tbentsen Excel Discussion (Misc queries) 3 August 4th 05 10:47 PM
Counting cells, similar values SteW Excel Worksheet Functions 7 May 12th 05 07:05 PM


All times are GMT +1. The time now is 02:58 AM.

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"