Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 73
Default SUMPRODUCT with TEXT and dates

First, sorry for the long post and thank you for helping and looking.

I'm trying to use this formula:
SUMPRODUCT(--(LEFT('[Spares Quotes List V22
26Apr2007.xls]All'!$A$2:$A$5000,4)=$A26),(YEAR(DATEVALUE('[Spares Quotes List
V22 26Apr2007.xls]All'!$M$2:$M$5000)=1900)))

and it returns value, the comment says "a value used in the formula is of
the wrong data type". There ar etwo types of data $A$2:$A$5000 is text and
$M$2:$M$5000 is a date. I want to count how many times the year 1900 shows up
for a particular proposal number ($A$2:$A$5000). I use a value of 0 in the
date field when I don't need to concerned with the information but I need to
count it so the totals work out.

Can this be done?
Thank you in advance for the help.
Joe
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMPRODUCT with TEXT and dates

DATEVALUE will return an error if the cells contain true Excel dates.
DATEVALUE is for use on TEXT representations of dates. If the cells in
question contain 0s just test for 0:

SUMPRODUCT(--(LEFT('[Spares Quotes List V22
26Apr2007.xls]All'!$A$2:$A$5000,4)=$A26),--(ISNUMBER('[Spares Quotes List
V22 26Apr2007.xls]All'!$M$2:$M$5000)),--('[Spares Quotes List
V22 26Apr2007.xls]All'!$M$2:$M$5000=0))

Biff

"Joe Gieder" wrote in message
...
First, sorry for the long post and thank you for helping and looking.

I'm trying to use this formula:
SUMPRODUCT(--(LEFT('[Spares Quotes List V22
26Apr2007.xls]All'!$A$2:$A$5000,4)=$A26),(YEAR(DATEVALUE('[Spares Quotes
List
V22 26Apr2007.xls]All'!$M$2:$M$5000)=1900)))

and it returns value, the comment says "a value used in the formula is of
the wrong data type". There ar etwo types of data $A$2:$A$5000 is text and
$M$2:$M$5000 is a date. I want to count how many times the year 1900 shows
up
for a particular proposal number ($A$2:$A$5000). I use a value of 0 in the
date field when I don't need to concerned with the information but I need
to
count it so the totals work out.

Can this be done?
Thank you in advance for the help.
Joe



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 between dates Johnny M Excel Worksheet Functions 3 March 6th 07 07:10 PM
sumproduct with dates Bumblebee Excel Worksheet Functions 2 August 22nd 06 08:16 PM
Sumproduct using dates Scopar Excel Worksheet Functions 8 August 15th 06 06:06 PM
Receive #VALUE! when I mix text with dates using SUMPRODUCT Rick Excel Worksheet Functions 6 March 29th 06 10:15 PM
sumproduct between dates Dominique Feteau Excel Worksheet Functions 8 December 5th 04 09:56 PM


All times are GMT +1. The time now is 08:54 AM.

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"