#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RDC RDC is offline
external usenet poster
 
Posts: 3
Default date range

I want to calculate the number of times a ? is in one column (T) when the
date is less than 28/02/09 in column G. I have tried numerous formula, yet it
either counts all the ?,s without taking into account the date or gives me a
figure of 0.

The examples of what I have used is

=SUMPRODUCT(--('LTS Pipeline'!T$12:T$2000="?"),--('LTS
Pipeline'!G$12:G$2000<="28-Feb-09"))

Can anyone help!?!?

Many thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default date range

You need to convert the date into a serial date

from
=SUMPRODUCT(--('LTS Pipeline'!T$12:T$2000="?"),--('LTS
Pipeline'!G$12:G$2000<="28-Feb-09"))

to
=SUMPRODUCT(--('LTS Pipeline'!T$12:T$2000="?"),--('LTS
Pipeline'!G$12:G$2000<=DateValue("28-Feb-09")))


"RDC" wrote:

I want to calculate the number of times a ? is in one column (T) when the
date is less than 28/02/09 in column G. I have tried numerous formula, yet it
either counts all the ?,s without taking into account the date or gives me a
figure of 0.

The examples of what I have used is

=SUMPRODUCT(--('LTS Pipeline'!T$12:T$2000="?"),--('LTS
Pipeline'!G$12:G$2000<="28-Feb-09"))

Can anyone help!?!?

Many thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default date range

Try one of these:

=SUMPRODUCT(--('LTS Pipeline'!T$12:T$2000="?"),--('LTS
Pipeline'!G$12:G$2000<=DATE(2009,2,28)))

Better to use a cells to hold the criteria:

A1 = ?
B1 = 28/2/2009

=SUMPRODUCT(--('LTS Pipeline'!T$12:T$2000=A1),--('LTS
Pipeline'!G$12:G$2000<=B1))

Note that if cells in 'LTS Pipeline'!G$12:G$2000 are empty they will
evaluate to be less than 28/2/2009. If you need to account for that:

=SUMPRODUCT(--('LTS Pipeline'!T$12:T$2000=A1),--('LTS
Pipeline'!G$12:G$2000<""),--('LTS Pipeline'!G$12:G$2000<=B1))


--
Biff
Microsoft Excel MVP


"RDC" wrote in message
...
I want to calculate the number of times a ? is in one column (T) when the
date is less than 28/02/09 in column G. I have tried numerous formula, yet
it
either counts all the ?,s without taking into account the date or gives me
a
figure of 0.

The examples of what I have used is

=SUMPRODUCT(--('LTS Pipeline'!T$12:T$2000="?"),--('LTS
Pipeline'!G$12:G$2000<="28-Feb-09"))

Can anyone help!?!?

Many 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
Sum If range of dates date range, sum totals Stilmovin Excel Worksheet Functions 7 December 16th 08 05:49 PM
Create a formula in a date range to locate a specific date - ecel util Excel Discussion (Misc queries) 0 February 19th 07 03:03 PM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Worksheet Functions 2 April 21st 06 02:50 AM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Discussion (Misc queries) 1 April 20th 06 10:03 PM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM


All times are GMT +1. The time now is 12:15 AM.

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"