Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
importing a text file - problem with dates "Americanising" | Excel Discussion (Misc queries) | |||
Sum column values that contains text &/or dates | Excel Discussion (Misc queries) | |||
2 digit year in dates return 19xx not 20xx | Excel Discussion (Misc queries) | |||
text to dates? | Excel Worksheet Functions | |||
Count Intervals of Filtered TEXT values in Column and Return Count across a Row | Excel Worksheet Functions |