Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Nde Nde is offline
external usenet poster
 
Posts: 16
Default SUMPRODUCT not working.

Hi
I have the follwing grid
A B C D E
F G
Facture PO Date Montant HT GST/TPS PST/TVQ Total
1 12345 Dec-07 100.00$ 6.00$ 7.95$ 113.95$
3 12346 Dec-07 1,500.00$ 90.00$ 119.25$ 1,709.25$

PO is consider as a string
Date is consider as date (mmm-yy)
Total is currency 2 decimal $ sign

PO & Date are from a validation list

These return 0 I was expected 113.95:

SUMPRODUCT((B5:B6="12345"),(C5:C6="2007/12/11"),G5:G6)
SUMPRODUCT(--(B5:B6="12345"),--(C5:C6="2007/12/11"),--G5:G6)
SUMPRODUCT((B5:B6="12345"),(C5:C6="2007/12/11"),--G5:G6)

Any ideas on how to fix this ?

Thanks,
Nde
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default SUMPRODUCT not working.

Try this:

SUMPRODUCT((B5:B6="12345")*(C5:C6=--"2007/12/11")*G5:G6)


"Nde" wrote:

Hi
I have the follwing grid
A B C D E
F G
Facture PO Date Montant HT GST/TPS PST/TVQ Total
1 12345 Dec-07 100.00$ 6.00$ 7.95$ 113.95$
3 12346 Dec-07 1,500.00$ 90.00$ 119.25$ 1,709.25$

PO is consider as a string
Date is consider as date (mmm-yy)
Total is currency 2 decimal $ sign

PO & Date are from a validation list

These return 0 I was expected 113.95:

SUMPRODUCT((B5:B6="12345"),(C5:C6="2007/12/11"),G5:G6)
SUMPRODUCT(--(B5:B6="12345"),--(C5:C6="2007/12/11"),--G5:G6)
SUMPRODUCT((B5:B6="12345"),(C5:C6="2007/12/11"),--G5:G6)

Any ideas on how to fix this ?

Thanks,
Nde

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default SUMPRODUCT not working.

One way:

=SUMPRODUCT(--(B5:B6="12345"),--(YEAR(C5:C6)=2007),
--(MONTH(C5:C6)=12), G5:G6)

In article ,
Nde wrote:

Hi
I have the follwing grid
A B C D E
F G
Facture PO Date Montant HT GST/TPS PST/TVQ Total
1 12345 Dec-07 100.00$ 6.00$ 7.95$ 113.95$
3 12346 Dec-07 1,500.00$ 90.00$ 119.25$ 1,709.25$

PO is consider as a string
Date is consider as date (mmm-yy)
Total is currency 2 decimal $ sign

PO & Date are from a validation list

These return 0 I was expected 113.95:

SUMPRODUCT((B5:B6="12345"),(C5:C6="2007/12/11"),G5:G6)
SUMPRODUCT(--(B5:B6="12345"),--(C5:C6="2007/12/11"),--G5:G6)
SUMPRODUCT((B5:B6="12345"),(C5:C6="2007/12/11"),--G5:G6)

Any ideas on how to fix this ?

Thanks,
Nde

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 Not Working dj479794 Excel Discussion (Misc queries) 2 March 12th 07 12:54 PM
SUMPRODUCT not working tankerman Excel Discussion (Misc queries) 4 January 31st 07 08:07 PM
Sumproduct not working macamarr Excel Worksheet Functions 5 December 28th 06 02:36 PM
Sumproduct Not Working Carl Excel Worksheet Functions 5 August 15th 06 07:09 PM
=SUMPRODUCT not working JR Excel Worksheet Functions 3 February 8th 06 05:10 PM


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