Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 133
Default Counting based on values in two separate columns

Count the number of times in multiple rows that column a = sold and column b
= 1

Logically Count If A:A="sold" and b:b=1
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Counting based on values in two separate columns

=SUMPRODUCT(--(A1:A1000="Sold"),--(B1:B1000=1))

Note with SUMPRODUCT you cannot use whole columns (i.e. A:A)

"Wayne" wrote:

Count the number of times in multiple rows that column a = sold and column b
= 1

Logically Count If A:A="sold" and b:b=1

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Counting based on values in two separate columns

=SUMPRODUCT(--(A1:A100="sold"),--(B1:B100=1))

You can't use entire columns - A:A, B:B.

Better to use cells to hold the criteria:

C1 = sold
D1 = 1

=SUMPRODUCT(--(A1:A100=C1),--(B1:B100=D1))

Biff

"Wayne" wrote in message
...
Count the number of times in multiple rows that column a = sold and column
b
= 1

Logically Count If A:A="sold" and b:b=1



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Counting based on values in two separate columns

Try this:

=SUMPRODUCT((A1:A100="sold")*(B1:B100=1))

That formula counts the instances where a Col_A value equals "sold" and the
corresponding Col_B value is 1. Note: that formula is NOT case sensitive.

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Wayne" wrote:

Count the number of times in multiple rows that column a = sold and column b
= 1

Logically Count If A:A="sold" and b:b=1

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 based upon 2 conditions that are text based walkerdayle Excel Discussion (Misc queries) 7 August 22nd 06 01:29 AM
comparing two columns of data to find common values patman Excel Discussion (Misc queries) 2 July 25th 06 03:05 PM
Copy columns values into separate columns Mike_can Excel Discussion (Misc queries) 7 May 27th 06 12:32 AM
Counting based on values in two columns? Brother of Andrew Excel Worksheet Functions 4 November 18th 05 11:11 PM
Test IF Two Numeric Values Match (from two separate Dynamic Ranges) Sam via OfficeKB.com Excel Worksheet Functions 3 August 14th 05 12:20 AM


All times are GMT +1. The time now is 06:45 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"