Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
nfbelo
 
Posts: n/a
Default SUMPRODUCT + DATE = 0

Hi,
I'm having this problem:
A B C
05-May-05 2300 -
06-May-05 1500 -
07-May-05 2000 -
08-May-05 4100 -
09-May-05 3200 13100
10-May-05 2300 -
....
I need to SUM periods like from 5 to 9 May in a column C, so I'm using this
formula:

SUMPRODUCT((A1:A100=DATE(2005;5;5));(A1:A100<=DAT E (2005;5;9));B1:B100)

The problem is: SUMPRODUCT = 0
am I doing something wrong?
Note that column A formats: DATE 14-Mar-98

Can you help me?? Thanks

  #2   Report Post  
 
Posts: n/a
Default

Hi
Few ideas:
You have used a semicolon instead of a comma in your formula. Make sure that
your regional settings are right for using a comma.
Make sure that your 'date' is a proper Excel date.
Make sure your 'numbers' are proper numbers.
You could try something simpler to check out your logic:
=SUMPRODUCT((A1:A100=DATE(2005;5;5));B1:B100)
should return 2300
--
Andy.


"nfbelo" wrote in message
...
Hi,
I'm having this problem:
A B C
05-May-05 2300 -
06-May-05 1500 -
07-May-05 2000 -
08-May-05 4100 -
09-May-05 3200 13100
10-May-05 2300 -
...
I need to SUM periods like from 5 to 9 May in a column C, so I'm using
this
formula:

SUMPRODUCT((A1:A100=DATE(2005;5;5));(A1:A100<=DAT E (2005;5;9));B1:B100)

The problem is: SUMPRODUCT = 0
am I doing something wrong?
Note that column A formats: DATE 14-Mar-98

Can you help me?? Thanks



  #3   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

=SUMPRODUCT(--(A1:A100=DATE(2005;5;5));--(A1:A100<=DATE
(2005;5;9));B1:B100)

nfbelo wrote:
Hi,
I'm having this problem:
A B C
05-May-05 2300 -
06-May-05 1500 -
07-May-05 2000 -
08-May-05 4100 -
09-May-05 3200 13100
10-May-05 2300 -
...
I need to SUM periods like from 5 to 9 May in a column C, so I'm using this
formula:

SUMPRODUCT((A1:A100=DATE(2005;5;5));(A1:A100<=DAT E (2005;5;9));B1:B100)

The problem is: SUMPRODUCT = 0
am I doing something wrong?
Note that column A formats: DATE 14-Mar-98

Can you help me?? Thanks

  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

and most importantly, coerce the Booleans

SUMPRODUCT(--(A1:A100=DATE(2005;5;5));--(A1:A100<=DATE
(2005;5;9));B1:B100)


--
HTH

Bob Phillips

<Andy B wrote in message ...
Hi
Few ideas:
You have used a semicolon instead of a comma in your formula. Make sure

that
your regional settings are right for using a comma.
Make sure that your 'date' is a proper Excel date.
Make sure your 'numbers' are proper numbers.
You could try something simpler to check out your logic:
=SUMPRODUCT((A1:A100=DATE(2005;5;5));B1:B100)
should return 2300
--
Andy.


"nfbelo" wrote in message
...
Hi,
I'm having this problem:
A B C
05-May-05 2300 -
06-May-05 1500 -
07-May-05 2000 -
08-May-05 4100 -
09-May-05 3200 13100
10-May-05 2300 -
...
I need to SUM periods like from 5 to 9 May in a column C, so I'm using
this
formula:

SUMPRODUCT((A1:A100=DATE(2005;5;5));(A1:A100<=DAT E

(2005;5;9));B1:B100)

The problem is: SUMPRODUCT = 0
am I doing something wrong?
Note that column A formats: DATE 14-Mar-98

Can you help me?? Thanks





  #5   Report Post  
 
Posts: n/a
Default

You can't beat a bit of Boolean Coercion!!

--
Andy.


"Bob Phillips" wrote in message
...
and most importantly, coerce the Booleans

SUMPRODUCT(--(A1:A100=DATE(2005;5;5));--(A1:A100<=DATE
(2005;5;9));B1:B100)


--
HTH

Bob Phillips

<Andy B wrote in message ...
Hi
Few ideas:
You have used a semicolon instead of a comma in your formula. Make sure

that
your regional settings are right for using a comma.
Make sure that your 'date' is a proper Excel date.
Make sure your 'numbers' are proper numbers.
You could try something simpler to check out your logic:
=SUMPRODUCT((A1:A100=DATE(2005;5;5));B1:B100)
should return 2300
--
Andy.


"nfbelo" wrote in message
...
Hi,
I'm having this problem:
A B C
05-May-05 2300 -
06-May-05 1500 -
07-May-05 2000 -
08-May-05 4100 -
09-May-05 3200 13100
10-May-05 2300 -
...
I need to SUM periods like from 5 to 9 May in a column C, so I'm using
this
formula:

SUMPRODUCT((A1:A100=DATE(2005;5;5));(A1:A100<=DAT E

(2005;5;9));B1:B100)

The problem is: SUMPRODUCT = 0
am I doing something wrong?
Note that column A formats: DATE 14-Mar-98

Can you help me?? Thanks









  #6   Report Post  
Bob Phillips
 
Posts: n/a
Default

You can if you get a big enough stick :-)

<Andy B wrote in message ...
You can't beat a bit of Boolean Coercion!!

--
Andy.


"Bob Phillips" wrote in message
...
and most importantly, coerce the Booleans

SUMPRODUCT(--(A1:A100=DATE(2005;5;5));--(A1:A100<=DATE
(2005;5;9));B1:B100)


--
HTH

Bob Phillips

<Andy B wrote in message

...
Hi
Few ideas:
You have used a semicolon instead of a comma in your formula. Make sure

that
your regional settings are right for using a comma.
Make sure that your 'date' is a proper Excel date.
Make sure your 'numbers' are proper numbers.
You could try something simpler to check out your logic:
=SUMPRODUCT((A1:A100=DATE(2005;5;5));B1:B100)
should return 2300
--
Andy.


"nfbelo" wrote in message
...
Hi,
I'm having this problem:
A B C
05-May-05 2300 -
06-May-05 1500 -
07-May-05 2000 -
08-May-05 4100 -
09-May-05 3200 13100
10-May-05 2300 -
...
I need to SUM periods like from 5 to 9 May in a column C, so I'm

using
this
formula:

SUMPRODUCT((A1:A100=DATE(2005;5;5));(A1:A100<=DAT E

(2005;5;9));B1:B100)

The problem is: SUMPRODUCT = 0
am I doing something wrong?
Note that column A formats: DATE 14-Mar-98

Can you help me?? 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
extract date from the most current date Cali00 Excel Discussion (Misc queries) 1 April 13th 05 02:05 PM
Date Math Problem Dkline Excel Worksheet Functions 4 March 4th 05 04:11 PM
date and time ladimples247 New Users to Excel 2 February 16th 05 08:52 PM
SUMPRODUCT with date range question Rob V Excel Discussion (Misc queries) 1 January 31st 05 03:55 PM
Addition to Turn cell red if today is greater or equal to date in cell Rich New Users to Excel 2 December 9th 04 02:06 AM


All times are GMT +1. The time now is 05:03 PM.

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"