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 / June 2007

Tip: Looking for answers? Try searching our database.

SUMPRODUCT #VALUE! error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Slowe - 19 Jun 2007 14:13 GMT
Hello. this formula

=SUMPRODUCT((MONTH('G Codes'!D6:D300)=MONTH(E5))*('G Codes'!
C6:C300=C103)*('G Codes'!J6:J300))

sums the amounts in column J of 'G Codes' if
the month on the 'G Codes' worksheet matches the on in E5 and
the text in column C matches the text in C103

Now the strange thing is that for another worksheet the exact same
formula works out fine. For the 'G Codes' worksheet it produces the
#VALUE! error. The formulae are looking in the right place- there are
no extra columns in this worksheet. I've checked the date and number
columns for 'spaces' (ie text entries), and checked that the date
formats are correct.

I believe that there's a different way of writing the formula if
you're exclusively using numbers but I need my formula to compare
text.

Mainly I don't understand why this works fine for one worksheet and
not the other, and also that all the cells referring to the G Codes in
this worksheet show #VALUE! (although in another worksheet they are
referred to without any problems)...

Can anyone help?

Many thanks

Chris
xlbo - 19 Jun 2007 14:38 GMT
I would suggest that a piece of data in G Codes!D6:D300 cannot be converted
to a "Month" value

You say that you have checked Date FORMATS - have you checked to see whwther
you have "real" dates or textual representations of dates ?
Signature

Rgds, Geoff

"A crash reduces
Your expensive computer
To a simple stone"

> Hello. this formula
>
[quoted text clipped - 26 lines]
>
> Chris
Chris Slowe - 19 Jun 2007 17:00 GMT
> I would suggest that a piece of data in G Codes!D6:D300 cannot be converted
> to a "Month" value
[quoted text clipped - 38 lines]
>
> > Chris

You're spot on! I had gone through the dates, and even put a
validation check on them but somehow both I and the machine managed to
miss an extra digit in one of the dates that was breaking everything.
sorted now i think..

Thanks very much!

Chris
 
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.