#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default SUMPRODUCT

Using this formula
=sumproduct(--(sheet1!A2:A3000="APPLE")*(sheet1!A2:A3000="DECEMB ER")
that will give me how many APPLES in DECEMBER
I replaced them for "1" and "1999" in order to give me:
how many "1" ocurred in "1999" and it gives me zero.
I'm guessing it works different with text( "APPLE","DECEMBER")
than with numbers ("1","1999").
How can I put it?
Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 248
Default SUMPRODUCT


You should not put quotes around numbers...It should be like
=SUMPRODUCT(--(Sheet1!A2:A3000=1)*(Sheet1!B2:B3000=1999))

Also both conditions refer to the same column? Is that what you want?

It is better and more flexilbe to put the number in a cell, say D1, and
refer to the cell like this
=sumproduct(--(sheet1!A2:A3000=D1))
-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"Tigerxl" wrote:

Using this formula
=sumproduct(--(sheet1!A2:A3000="APPLE")*(sheet1!A2:A3000="DECEMB ER")
that will give me how many APPLES in DECEMBER
I replaced them for "1" and "1999" in order to give me:
how many "1" ocurred in "1999" and it gives me zero.
I'm guessing it works different with text( "APPLE","DECEMBER")
than with numbers ("1","1999").
How can I put it?
Thank you.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default SUMPRODUCT

Thank you much.

"Sheeloo" wrote:


You should not put quotes around numbers...It should be like
=SUMPRODUCT(--(Sheet1!A2:A3000=1)*(Sheet1!B2:B3000=1999))

Also both conditions refer to the same column? Is that what you want?

It is better and more flexilbe to put the number in a cell, say D1, and
refer to the cell like this
=sumproduct(--(sheet1!A2:A3000=D1))
-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"Tigerxl" wrote:

Using this formula
=sumproduct(--(sheet1!A2:A3000="APPLE")*(sheet1!A2:A3000="DECEMB ER")
that will give me how many APPLES in DECEMBER
I replaced them for "1" and "1999" in order to give me:
how many "1" ocurred in "1999" and it gives me zero.
I'm guessing it works different with text( "APPLE","DECEMBER")
than with numbers ("1","1999").
How can I put it?
Thank you.

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
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
Sumproduct Dave Excel Discussion (Misc queries) 2 February 17th 08 07:58 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
Sumproduct Curtis Excel Worksheet Functions 1 March 5th 07 11:42 PM
Need Help With SUMPRODUCT Ken Zenachon Excel Discussion (Misc queries) 7 January 25th 06 05:52 PM


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