Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2008

Tip: Looking for answers? Try searching our database.

Text in SUMPRODUCT

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
J. Trucking - 11 Mar 2008 20:28 GMT
Hello,

I can't figure out why the following keeps happening. I have a list of
data with the date, type of machine, chargable hours, and non-
chargable hours.  Why is it that I can do this:

=SUMPRODUCT(('2007-2008 Breakdown'!$C$2:$C
$2255="Crusher")*(MONTH('2007-2008 Breakdown'!$A$2:$A
$2255)=11)*('2007-2008 Breakdown'!$E$2:$E$2255))

With the word "Crusher" in this formula, it returns the right number.
If I write the word "Crusher" in the cell beside this one and
reference it as the cell value:

=SUMPRODUCT(('2007-2008 Breakdown'!$C$2:$C
$2255="A4")*(MONTH('2007-2008 Breakdown'!$A$2:$A$2255)=11)*('2007-2008
Breakdown'!$E$2:$E$2255))

It returns zero.  Is there any way to use the cells instead of typing
each word.  Thanks in advance.

John
Pete_UK - 11 Mar 2008 20:36 GMT
Yes, you can - you just don't need the quotes around the cell
reference. Try it like this:

=SUMPRODUCT(('2007-2008 Breakdown'!$C$2:$C$2255=A4)*(MONTH('2007-2008
Breakdown'!$A$2:$A$2255)=11)*('2007-2008 Breakdown'!$E$2:$E$2255))

Hope this helps.

Pete

> Hello,
>
[quoted text clipped - 18 lines]
>
> John
Mike H - 11 Mar 2008 20:40 GMT
Hi,

Putting your cell reference A4 in quotes make it look for the value A4 and
not the value IN A4. Try this

=SUMPRODUCT(('2007-2008 Breakdown'!$C$2:$C
> $2255=A4)*(MONTH('2007-2008 Breakdown'!$A$2:$A$2255)=11)*('2007-2008
> Breakdown'!$E$2:$E$2255))

> Hello,
>
[quoted text clipped - 18 lines]
>
> John
Tyro - 11 Mar 2008 23:17 GMT
Your modified formula, changing "Crusher" to "A4" is doing just that. It is
comparing the values to "A4".  "A4" is a text literal. If you want to
compare to the content of cell A4, simply use A4.

Tyro

> Hello,
>
[quoted text clipped - 18 lines]
>
> John
Pete_UK - 12 Mar 2008 01:03 GMT
Tyro,

do you not check if a post has been responded to? This one had two
responses, both about 3 hours before yours, and both making the same point
that you do.

Pete

> Your modified formula, changing "Crusher" to "A4" is doing just that. It
> is comparing the values to "A4".  "A4" is a text literal. If you want to
[quoted text clipped - 24 lines]
>>
>> John
Tyro - 12 Mar 2008 01:18 GMT
Got news for you. I responded only once.

Tyro

> Tyro,
>
[quoted text clipped - 32 lines]
>>>
>>> John
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.