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 and Dates

First, Thank you for helping / looking.
I'm trying to count the number of cells that match two criteria and have
looked through many many responses and tried several of the suggestions but
no luck.
I have this formula:
SUMPRODUCT(--('[Spares Quotes List V22
26Apr2007.xls]All'!$A$2:$A$5000=$A26),--(YEAR(DATEVALUE('[Spares Quotes List
V22 26Apr2007.xls]All'!$M$2:$M$5000))=1900))

What it is $A$2:$A$5000=$A26 is text and $M$2:$M$5000))=1900 is a date.
1900 needs to be there because I place a 0 were I don't need to look at this
cell but I need to count it so the totals work out. Can I count using text
for one criteria and a date for the other?

Thanks in advance for your help.
Joe
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default SUMPRODUCT and Dates

On Jun 6, 6:30 pm, Joe Gieder
wrote:
First, Thank you for helping / looking.
I'm trying to count the number of cells that match two criteria and have
looked through many many responses and tried several of the suggestions but
no luck.
I have this formula:
SUMPRODUCT(--('[Spares Quotes List V22
26Apr2007.xls]All'!$A$2:$A$5000=$A26),--(YEAR(DATEVALUE('[Spares Quotes List
V22 26Apr2007.xls]All'!$M$2:$M$5000))=1900))

What it is $A$2:$A$5000=$A26 is text and $M$2:$M$5000))=1900 is a date.
1900 needs to be there because I place a 0 were I don't need to look at this
cell but I need to count it so the totals work out. Can I count using text
for one criteria and a date for the other?

Thanks in advance for your help.
Joe


Joe,

replace the YEAR(DATEVALUE(...))=1900 with M2:M5000=0?

DATEVALUE expects text and turns it into a date. Your text seems a bit
unorthodox, but I don't know what values you have in M2:M5000. If they
are dates then test for =0 is enough. If they are text, how do you
write it?

HTH
Kostis Vezerides

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 using dates Scopar Excel Worksheet Functions 8 August 15th 06 06:06 PM
sumproduct between two dates chased Excel Worksheet Functions 4 July 8th 05 05:24 PM
SUMPRODUCT ON DATES RagDyeR Excel Worksheet Functions 3 January 13th 05 04:21 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 06:46 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"