LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default IF, COUNTIF & AND STATEMENTS

Thanks, it worked. I was told you weren't able to wrap countif statements
within another statement. Will feed it back.

Cheers

"daddylonglegs" wrote:

I'm not sure which date you mean when you say "the date above it" but it
sunds like you can just wrap your existing COUNTIF in an IF function, i.e.

=IF(A1<=$B$1,your_original_formula,0)

where A1 is "the date above it" and B1 your reporting date

"Mackem" wrote:

Didn't look right when I posted it so hopefully this will be easier to
understand


"Mackem" wrote:

I have a COUNTIF formula which is searching for the number of activities
which occur between 2 dates. This formulae works but I need to add to it.

I have a reporting date (which is variable), I need the addition to only do
the existing COUNTIF if the date above it it equal to or less than the
reporting date and if not return a value of 0. This sounds simple and to be
honest probably is but just cant seem to get it to work. Example below: May
need to copy out the example and paste into excel.

reporting date 28/09/2007


29/06/2007 27/07/2007 31/08/2007 28/09/2007 26/10/2007
30/11/2007

con a 7 2 0 1 1
con b 0 0 6 27 13
con c 4 19 28 4 22
con d 29 104 39 121 77
con e 44 45 32 79 5
con f 3 1 1 0 0


the existing COUNTIF created the values aove.
=COUNTIF($K$3:$K$2170,""&V1)-COUNTIF($K$3:$K$2170,""&W1) where K3:K2170 is
the range to search , v1 is 29/06/2007 and w1 is 27/07/2007.

Any help would be greatly appreciated.

 
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 nested countif statements? Frank P Florida Excel Worksheet Functions 11 May 3rd 23 07:41 PM
INDEX / MATCH with SUMIF/COUNTIF/SUMPRODUCT Statements? Ronny Hamida Excel Worksheet Functions 10 July 29th 08 03:50 PM
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM


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