#1   Report Post  
Posted to microsoft.public.excel.misc
TMT TMT is offline
external usenet poster
 
Posts: 13
Default SUMPRODUCT

Hello,

I've used this formular to find work piece that gets done per department.
=SUMPRODUCT(('Q2'!E13:E150="Done")*('Q2'!G13:G150= "14532"))

Department 14532 was not picked up even though other department's number was
correctly counted. But if I put a letter, say like C (14532C) and adds C to
my formular as in
=SUMPRODUCT(('Q2'!E13:E150="Done")*('Q2'!G13:G150= "14532C")) then it picks
up how many pieces were done for this department.

I suspect this is in my cell format but I could not figure out what went
wrong. Please help. Thanks.

Tmt
  #3   Report Post  
Posted to microsoft.public.excel.misc
TMT TMT is offline
external usenet poster
 
Posts: 13
Default SUMPRODUCT

Don,

Thanks for the suggestion. Dropping the " " for those problematic set of
data makes those items counted for.

But here's another problem. I also discovered that this same formula without
the " " would not read other set of data or miscounted some other set of data
(4 items done from Q2 data sheet only returned as 3 items done). How do I
unify all so that one formula works without keeping the " " and not for the
others?

Thanks.

Tmt

"Tmt" wrote:

Hello,

I've used this formular to find work piece that gets done per department.
=SUMPRODUCT(('Q2'!E13:E150="Done")*('Q2'!G13:G150= "14532"))

Department 14532 was not picked up even though other department's number was
correctly counted. But if I put a letter, say like C (14532C) and adds C to
my formular as in
=SUMPRODUCT(('Q2'!E13:E150="Done")*('Q2'!G13:G150= "14532C")) then it picks
up how many pieces were done for this department.

I suspect this is in my cell format but I could not figure out what went
wrong. Please help. Thanks.

Tmt

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

Perhaps some "numbers" are text and some are numbers. Change all to numbers.
Sub fixmynums()
Application.ScreenUpdating = False
'lr = Cells.SpecialCells(xlCellTypeLastCell).Row
On Error Resume Next
For Each c In Selection 'Range("a1:q" & lr)
If Trim(Len(c)) 0 And c.HasFormula = False Then
c.NumberFormat = "General"
c.Value = CDbl(c)
End If
Next

Application.ScreenUpdating = True
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Tmt" wrote in message
...
Don,

Thanks for the suggestion. Dropping the " " for those problematic set of
data makes those items counted for.

But here's another problem. I also discovered that this same formula
without
the " " would not read other set of data or miscounted some other set of
data
(4 items done from Q2 data sheet only returned as 3 items done). How do I
unify all so that one formula works without keeping the " " and not for
the
others?

Thanks.

Tmt

"Tmt" wrote:

Hello,

I've used this formular to find work piece that gets done per department.
=SUMPRODUCT(('Q2'!E13:E150="Done")*('Q2'!G13:G150= "14532"))

Department 14532 was not picked up even though other department's number
was
correctly counted. But if I put a letter, say like C (14532C) and adds C
to
my formular as in
=SUMPRODUCT(('Q2'!E13:E150="Done")*('Q2'!G13:G150= "14532C")) then it
picks
up how many pieces were done for this department.

I suspect this is in my cell format but I could not figure out what went
wrong. Please help. Thanks.

Tmt


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 with Condition OR Sumproduct with ADDRESS function - HE gholly Excel Discussion (Misc queries) 2 September 28th 09 05:07 PM
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
using -- with SUMPRODUCT Dave F Excel Discussion (Misc queries) 13 November 15th 06 05:50 PM
SUMPRODUCT BillyHank Excel Worksheet Functions 5 November 2nd 06 03:22 PM


All times are GMT +1. The time now is 06:10 AM.

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"