#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default SumProduct Question

The numbers I want to total are in Column M

=SUMPRODUCT((Data!D$1:D$2550=Lists!A13)*(Data!D$1 :D$2550<Lists!B13)*(Data!J$1:J$2550="Saint Paul")*(Data!M$1:M$25500))

What I am trying to say is-

Look at the data in column D of the "Lists" worksheet. When the value of
the data (this happens to be a date) is = the first day of a given year, and
< the 1st day of the next year, and the city which is recorded in Column J is
"Saint Paul", please total the numbers in column M.

This doesn't seem to be working quite right though.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default SumProduct Question

Why do you have 0 for the M column? You are asking the formula if column m
is 0, and it will give a response of 1 or 0 (true or false).

=SUMPRODUCT(--(Data!D$1:D$2550=Lists!A13),--(Data!D$1:D$2550<Lists!B13),--(Data!J$1:J$2550="Saint Paul"),(Data!M$1:M$2550))

Hope this helps.
--
John C


"Gina" wrote:

The numbers I want to total are in Column M

=SUMPRODUCT((Data!D$1:D$2550=Lists!A13)*(Data!D$1 :D$2550<Lists!B13)*(Data!J$1:J$2550="Saint Paul")*(Data!M$1:M$25500))

What I am trying to say is-

Look at the data in column D of the "Lists" worksheet. When the value of
the data (this happens to be a date) is = the first day of a given year, and
< the 1st day of the next year, and the city which is recorded in Column J is
"Saint Paul", please total the numbers in column M.

This doesn't seem to be working quite right though.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default SumProduct Question

I put it that way because I wanted it to count values of 1 and higher.

"John C" wrote:

Why do you have 0 for the M column? You are asking the formula if column m
is 0, and it will give a response of 1 or 0 (true or false).

=SUMPRODUCT(--(Data!D$1:D$2550=Lists!A13),--(Data!D$1:D$2550<Lists!B13),--(Data!J$1:J$2550="Saint Paul"),(Data!M$1:M$2550))

Hope this helps.
--
John C


"Gina" wrote:

The numbers I want to total are in Column M

=SUMPRODUCT((Data!D$1:D$2550=Lists!A13)*(Data!D$1 :D$2550<Lists!B13)*(Data!J$1:J$2550="Saint Paul")*(Data!M$1:M$25500))

What I am trying to say is-

Look at the data in column D of the "Lists" worksheet. When the value of
the data (this happens to be a date) is = the first day of a given year, and
< the 1st day of the next year, and the city which is recorded in Column J is
"Saint Paul", please total the numbers in column M.

This doesn't seem to be working quite right though.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default SumProduct Question

I've just tested out the format you provided, and it works where mine didn't.
Thank you very much. I wasn't sure how to do that last part, and you nailed
it.
Gina

"John C" wrote:

Why do you have 0 for the M column? You are asking the formula if column m
is 0, and it will give a response of 1 or 0 (true or false).

=SUMPRODUCT(--(Data!D$1:D$2550=Lists!A13),--(Data!D$1:D$2550<Lists!B13),--(Data!J$1:J$2550="Saint Paul"),(Data!M$1:M$2550))

Hope this helps.
--
John C


"Gina" wrote:

The numbers I want to total are in Column M

=SUMPRODUCT((Data!D$1:D$2550=Lists!A13)*(Data!D$1 :D$2550<Lists!B13)*(Data!J$1:J$2550="Saint Paul")*(Data!M$1:M$25500))

What I am trying to say is-

Look at the data in column D of the "Lists" worksheet. When the value of
the data (this happens to be a date) is = the first day of a given year, and
< the 1st day of the next year, and the city which is recorded in Column J is
"Saint Paul", please total the numbers in column M.

This doesn't seem to be working quite right though.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default SumProduct Question

Well, then try this, and it will sum values only of 1 or higher:
=SUMPRODUCT(--(Data!D$1:D$2550=Lists!A13),--(Data!D$1:D$2550<Lists!B13),--(Data!J$1:J$2550="Saint Paul"),--(Data!M$1:M$2550=1),(Data!M$1:M$2550))

If you leave formula as I left it, it will sum values less than 1, including
any negative numbers.

--
John C


"Gina" wrote:

I put it that way because I wanted it to count values of 1 and higher.

"John C" wrote:

Why do you have 0 for the M column? You are asking the formula if column m
is 0, and it will give a response of 1 or 0 (true or false).

=SUMPRODUCT(--(Data!D$1:D$2550=Lists!A13),--(Data!D$1:D$2550<Lists!B13),--(Data!J$1:J$2550="Saint Paul"),(Data!M$1:M$2550))

Hope this helps.
--
John C


"Gina" wrote:

The numbers I want to total are in Column M

=SUMPRODUCT((Data!D$1:D$2550=Lists!A13)*(Data!D$1 :D$2550<Lists!B13)*(Data!J$1:J$2550="Saint Paul")*(Data!M$1:M$25500))

What I am trying to say is-

Look at the data in column D of the "Lists" worksheet. When the value of
the data (this happens to be a date) is = the first day of a given year, and
< the 1st day of the next year, and the city which is recorded in Column J is
"Saint Paul", please total the numbers in column M.

This doesn't seem to be working quite right though.

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
SumProduct Question Gina[_2_] Excel Worksheet Functions 4 July 21st 08 04:32 PM
A SUMPRODUCT question Bernard Liengme Excel Discussion (Misc queries) 3 October 17th 06 06:36 PM
Sumproduct Question Barb Reinhardt Excel Worksheet Functions 2 May 15th 06 09:25 PM
SUMPRODUCT question Lee Harris Excel Worksheet Functions 4 October 28th 05 04:06 AM
SUMPRODUCT Question John Moore Excel Discussion (Misc queries) 2 October 18th 05 12:31 PM


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