Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rick
 
Posts: n/a
Default Receive #VALUE! when I mix text with dates using SUMPRODUCT

Hello,

I'm trying to get a count of the number of times a specific year (2007 in
this case) is displayed under one column using this formula:

=SUMPRODUCT(--(YEAR(C6:C52)=2007))

Everything works fine until anything but a date is entered within column C,
which it then gives me the #VALUE! error. Is there any way that SUMPRODUCT
can bypass or ignore those cells which include text?

Thanks,
Rick
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Zack Barresse
 
Posts: n/a
Default Receive #VALUE! when I mix text with dates using SUMPRODUCT

Hi Rick,

Try something like this ...

=SUMPRODUCT(--(YEAR(C6:C52)=2007),--ISNUMBER(C6:C52))

HTH

--
Regards,
Zack Barresse, aka firefytr
To email, remove NOSPAM


"Rick" wrote in message
...
Hello,

I'm trying to get a count of the number of times a specific year (2007 in
this case) is displayed under one column using this formula:

=SUMPRODUCT(--(YEAR(C6:C52)=2007))

Everything works fine until anything but a date is entered within column
C,
which it then gives me the #VALUE! error. Is there any way that
SUMPRODUCT
can bypass or ignore those cells which include text?

Thanks,
Rick



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rick
 
Posts: n/a
Default Receive #VALUE! when I mix text with dates using SUMPRODUCT

Nope, still the same thing. I tried switching the ISNUMBER function to the
first array as well, and still no luck.

"Zack Barresse" wrote:

Hi Rick,

Try something like this ...

=SUMPRODUCT(--(YEAR(C6:C52)=2007),--ISNUMBER(C6:C52))

HTH

--
Regards,
Zack Barresse, aka firefytr
To email, remove NOSPAM


"Rick" wrote in message
...
Hello,

I'm trying to get a count of the number of times a specific year (2007 in
this case) is displayed under one column using this formula:

=SUMPRODUCT(--(YEAR(C6:C52)=2007))

Everything works fine until anything but a date is entered within column
C,
which it then gives me the #VALUE! error. Is there any way that
SUMPRODUCT
can bypass or ignore those cells which include text?

Thanks,
Rick




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Receive #VALUE! when I mix text with dates using SUMPRODUCT

Try this:

=SUMPRODUCT(--(TEXT(C6:C52,"yyyy")="2007"))

Biff

"Rick" wrote in message
...
Nope, still the same thing. I tried switching the ISNUMBER function to
the
first array as well, and still no luck.

"Zack Barresse" wrote:

Hi Rick,

Try something like this ...

=SUMPRODUCT(--(YEAR(C6:C52)=2007),--ISNUMBER(C6:C52))

HTH

--
Regards,
Zack Barresse, aka firefytr
To email, remove NOSPAM


"Rick" wrote in message
...
Hello,

I'm trying to get a count of the number of times a specific year (2007
in
this case) is displayed under one column using this formula:

=SUMPRODUCT(--(YEAR(C6:C52)=2007))

Everything works fine until anything but a date is entered within
column
C,
which it then gives me the #VALUE! error. Is there any way that
SUMPRODUCT
can bypass or ignore those cells which include text?

Thanks,
Rick






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rick
 
Posts: n/a
Default Receive #VALUE! when I mix text with dates using SUMPRODUCT

BEAUTIFUL! Thanks a lot!

-Rick

"Biff" wrote:

Try this:

=SUMPRODUCT(--(TEXT(C6:C52,"yyyy")="2007"))

Biff

"Rick" wrote in message
...
Nope, still the same thing. I tried switching the ISNUMBER function to
the
first array as well, and still no luck.

"Zack Barresse" wrote:

Hi Rick,

Try something like this ...

=SUMPRODUCT(--(YEAR(C6:C52)=2007),--ISNUMBER(C6:C52))

HTH

--
Regards,
Zack Barresse, aka firefytr
To email, remove NOSPAM


"Rick" wrote in message
...
Hello,

I'm trying to get a count of the number of times a specific year (2007
in
this case) is displayed under one column using this formula:

=SUMPRODUCT(--(YEAR(C6:C52)=2007))

Everything works fine until anything but a date is entered within
column
C,
which it then gives me the #VALUE! error. Is there any way that
SUMPRODUCT
can bypass or ignore those cells which include text?

Thanks,
Rick








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Receive #VALUE! when I mix text with dates using SUMPRODUCT

You're welcome!

Biff

"Rick" wrote in message
...
BEAUTIFUL! Thanks a lot!

-Rick

"Biff" wrote:

Try this:

=SUMPRODUCT(--(TEXT(C6:C52,"yyyy")="2007"))

Biff

"Rick" wrote in message
...
Nope, still the same thing. I tried switching the ISNUMBER function to
the
first array as well, and still no luck.

"Zack Barresse" wrote:

Hi Rick,

Try something like this ...

=SUMPRODUCT(--(YEAR(C6:C52)=2007),--ISNUMBER(C6:C52))

HTH

--
Regards,
Zack Barresse, aka firefytr
To email, remove NOSPAM


"Rick" wrote in message
...
Hello,

I'm trying to get a count of the number of times a specific year
(2007
in
this case) is displayed under one column using this formula:

=SUMPRODUCT(--(YEAR(C6:C52)=2007))

Everything works fine until anything but a date is entered within
column
C,
which it then gives me the #VALUE! error. Is there any way that
SUMPRODUCT
can bypass or ignore those cells which include text?

Thanks,
Rick








  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default Receive #VALUE! when I mix text with dates using SUMPRODUCT

Try...

=SUMPRODUCT(--ISNUMBER(1/(YEAR(C6:C52)=2007)))

Hope this helps!

In article ,
Rick wrote:

Hello,

I'm trying to get a count of the number of times a specific year (2007 in
this case) is displayed under one column using this formula:

=SUMPRODUCT(--(YEAR(C6:C52)=2007))

Everything works fine until anything but a date is entered within column C,
which it then gives me the #VALUE! error. Is there any way that SUMPRODUCT
can bypass or ignore those cells which include text?

Thanks,
Rick

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
importing a text file - problem with dates "Americanising" strippier Excel Discussion (Misc queries) 3 February 21st 06 05:42 PM
Sum column values that contains text &/or dates mikeburg Excel Discussion (Misc queries) 5 December 2nd 05 12:27 AM
2 digit year in dates return 19xx not 20xx moranbo Excel Discussion (Misc queries) 1 September 7th 05 01:44 AM
text to dates? AmyTaylor Excel Worksheet Functions 5 September 2nd 05 03:11 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


All times are GMT +1. The time now is 12:47 PM.

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"