PC Review


Reply
 
 
RDC
Guest
Posts: n/a
 
      6th Mar 2009
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 With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      6th Mar 2009
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

 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      6th Mar 2009
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" <(E-Mail Removed)> wrote in message
news:AB6BC7EE-0E50-4217-9A95-(E-Mail Removed)...
>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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Divide a a range of dates into intervals starting with the current date or the latest date in the range of dates Daryl Microsoft Access Queries 2 8th Jan 2010 05:27 PM
Date range and creating a formula to use in a second date range Bobbye R Microsoft Access Queries 0 31st May 2009 11:52 PM
How do Count a the number of times a date range appears within a date range!? leelondon Microsoft Excel Discussion 5 4th Oct 2006 12:12 PM
Link date to a table with Date Range (Eff Date and term date) =?Utf-8?B?S2V2aW4gUmVlZA==?= Microsoft Access 1 31st Aug 2006 04:23 PM
Query Date Range Criteria Doesn't Include Last Date in Range Karl Burrows Microsoft Access Queries 6 10th Jun 2005 07:24 AM


Features
 

Advertising
 

Newsgroups
 


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