Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
blake7
 
Posts: n/a
Default can countif function look at 2 separate columns for criteria

I want to use the countif function in excel to look at one criteria in one
column and another criteria in another before summing up, can this be done ?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default can countif function look at 2 separate columns for criteria

No but you can use SUMPRODUCT,

assume you want to count values in A1: A10 that are greater than 5 and has
the colour red in B1: B10

=SUMPRODUCT(--(A1:A105),--(B1:B10="red"))

--

Regards,

Peo Sjoblom

Northwest Excel Solutions

www.nwexcelsolutions.com

(remove ^^ from email address)

Portland, Oregon




"blake7" wrote in message
...
I want to use the countif function in excel to look at one criteria in one
column and another criteria in another before summing up, can this be done
?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Daniel CHEN
 
Posts: n/a
Default can countif function look at 2 separate columns for criteria

try to use the following array function:
(array function end with Ctrl+Shift+Enter)

=COUNT(IF((($A$2:$A$8)="A")*(($B$2:$B$8)="A"),$C$2 :$C$8))

--
Best regards,
---
Yongjun CHEN
XLDataSoft - Data Analysis Expert, Excel/VBA Specialist
- - - - www.XLDataSoft.com - - - -
Free Excel-Based Data Processing Tool is Available for Download

"blake7" wrote in message
...
I want to use the countif function in excel to look at one criteria in one
column and another criteria in another before summing up, can this be done
?



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
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
Embed a countif function in subtotal function? Stuck at work Excel Worksheet Functions 1 February 14th 06 03:19 AM
CountIf Function Help Needed Mark Excel Worksheet Functions 4 January 30th 06 03:37 AM
Separate address column to Five columns harpscardiff Excel Worksheet Functions 1 September 16th 05 10:14 PM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM


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