Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 75
Default count cells with multiple criteria and two rows

I have a spreadsheet with 4 different worksheets. I basically want to sum the
information from the 4 worksheets on a separate worksheet. From worksheet1, I
want to count the cells that contain the letter "D" from B2:B30, but only
count those that have a "D" if "CO007" is in E2:30......same criteria from
worksheet2, 3 and 4. I started with
=count(if(worksheet1!B2:B30,"*d")+(worksheet1!E2:E 30,"CO007") +
count(if(worksehet2!B2:B30,"*d") etc. but that didn't work. Please help.
  #3   Report Post  
Posted to microsoft.public.excel.misc
KC KC is offline
external usenet poster
 
Posts: 94
Default count cells with multiple criteria and two rows

=SUMPRODUCT(--(ISERROR(SEARCH("*D*",Sheet2!B2:B30))=FALSE),--(Sheet2!E2:E30="CO007"))

-kc
*Click YES if this helps

"Erin" wrote:

I have a spreadsheet with 4 different worksheets. I basically want to sum the
information from the 4 worksheets on a separate worksheet. From worksheet1, I
want to count the cells that contain the letter "D" from B2:B30, but only
count those that have a "D" if "CO007" is in E2:30......same criteria from
worksheet2, 3 and 4. I started with
=count(if(worksheet1!B2:B30,"*d")+(worksheet1!E2:E 30,"CO007") +
count(if(worksehet2!B2:B30,"*d") etc. but that didn't work. Please 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
Count multiple cells against multiple criteria in an Excel spreads EricB Excel Worksheet Functions 7 June 3rd 08 09:09 PM
count cells using multiple criteria kjguillermo Excel Worksheet Functions 1 December 8th 06 04:35 AM
Count nonblank cells with multiple criteria Daniel Excel Worksheet Functions 5 November 17th 05 09:59 PM
count cells using multiple criteria Alex68 Excel Discussion (Misc queries) 4 May 24th 05 05:26 PM
Count rows based on multiple criteria Murph Excel Worksheet Functions 1 October 28th 04 07:13 AM


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