Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 504
Default How do I do a conditional CountIf function

Column A is dates
Column B is text


I know how to do countif functions to find a date range (where G1 and H1 are
dates)

=COUNTIF(A1:A8,"= "&G1)-COUNTIF(A1:A8,"="&H1)

How do I also look in column B for a certain text value (example: 'No') and
if the row is in the date range but has a 'No' in column B, then it is NOT
counted?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default How do I do a conditional CountIf function

SumProduct is going to probably work for you. Check out this link.

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

That page is maintined by Bob Phillips who regularily posts here. Buy him a
beer if you find that page helpful.
--
HTH...

Jim Thomlinson


"Kevin" wrote:

Column A is dates
Column B is text


I know how to do countif functions to find a date range (where G1 and H1 are
dates)

=COUNTIF(A1:A8,"= "&G1)-COUNTIF(A1:A8,"="&H1)

How do I also look in column B for a certain text value (example: 'No') and
if the row is in the date range but has a 'No' in column B, then it is NOT
counted?

Thanks!

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
Conditional Countif function? Miketsw Excel Worksheet Functions 3 October 15th 08 02:49 PM
function question (sumif countif conditional) Norbert Excel Worksheet Functions 0 February 25th 08 09:37 PM
conditional COUNTIF Richard Excel Discussion (Misc queries) 7 May 3rd 07 12:06 AM
Conditional COUNTIF Function Blair Excel Worksheet Functions 3 June 13th 06 05:57 PM
Embed a countif function in subtotal function? Stuck at work Excel Worksheet Functions 1 February 14th 06 03:19 AM


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

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

About Us

"It's about Microsoft Excel"