ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   SUMPRODUCT returning no answer (https://www.excelbanter.com/excel-worksheet-functions/169181-sumproduct-returning-no-answer.html)

AJPendragon

SUMPRODUCT returning no answer
 
I have a SUMPRODUCT formula that I know is OK but returns the answer 00:00:00

=SUMPRODUCT(--(Sheet2!B4:B573=A6),(Sheet2!C4:C573))

Sheet 2 is full of cells with times (HH:MM:SS) which have been pasted in
from another excel worksheet.

However, if I go into each cell in sheet 2 and return, the formula then
works €“ its as though the cell value is hidden.

Hope you can help?

Max

SUMPRODUCT returning no answer
 
Think the values in Sheet2 could be text numbers

Try it like this, with an implicit coercion:
=SUMPRODUCT((Sheet2!B4:B573=A6)*(Sheet2!C4:C573))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"AJPendragon" wrote:
I have a SUMPRODUCT formula that I know is OK but returns the answer 00:00:00

=SUMPRODUCT(--(Sheet2!B4:B573=A6),(Sheet2!C4:C573))

Sheet 2 is full of cells with times (HH:MM:SS) which have been pasted in
from another excel worksheet.

However, if I go into each cell in sheet 2 and return, the formula then
works €“ its as though the cell value is hidden.

Hope you can help?


Bernie Deitrick

SUMPRODUCT returning no answer
 
Try this to coerce the text values to numbers:

=SUMPRODUCT((((Sheet2!B4:B573)*1)=A6)*((Sheet2!C4: C573)*1))

Bernie


"AJPendragon" wrote in message
...
I have a SUMPRODUCT formula that I know is OK but returns the answer
00:00:00

=SUMPRODUCT(--(Sheet2!B4:B573=A6),(Sheet2!C4:C573))

Sheet 2 is full of cells with times (HH:MM:SS) which have been pasted in
from another excel worksheet.

However, if I go into each cell in sheet 2 and return, the formula then
works - it's as though the cell value is hidden.

Hope you can help?





All times are GMT +1. The time now is 12:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com