Re: Sumproduct Date clarification
- From: "Biff" <biffinpitt@xxxxxxxxxxx>
- Date: Fri, 14 Apr 2006 13:21:13 -0400
That's a good point, Bob.
I myself would not use that expression in a formula. I just don't like the
way it looks! I would use a cell to hold the date or use the Date function
in the formula.
I was just showing the OP how it could be done using the date string.
Biff
"Bob Phillips" <bob.phillips@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:O%23NDs46XGHA.1192@xxxxxxxxxxxxxxxxxxxxxxx
Mr Biff,
Love to see you coercing a date with the unary operator, but could I
suggest
that you use the form
=SUMPRODUCT(((register01532!$b$7:$b$401>=--"2006-01-01")
it removes all ambiguites with dates re mm/dd or dd/mm formats.
--
HTH
Bob Phillips
(remove nothere from email address if mailing direct)
"Biff" <biffinpitt@xxxxxxxxxxx> wrote in message
news:OWxVwA3XGHA.4184@xxxxxxxxxxxxxxxxxxxxxxx
Hi!not
Question is: Why did I have to use the Date function in one formula and
bythe other?
You didn't have to use the Date function. In the one formula you're
referencing a cell that holds the date.
In the below formula:
=sumproduct(((register01532!$b$7:$b$401>=1/1/06)...
You have what *YOU* think is a date but Excel sees 1 divided by 1 divided
6.a
Try it this way:
=sumproduct(((register01532!$b$7:$b$401>=--"1/1/2006")
Biff
"Walter Mayes" <wmayes@xxxxxxxxxxxx> wrote in message
news:d6037$443efc8e$943fe3e4$23864@xxxxxxxxxxxxxxx
In one of my spreadsheets I have a sumproduct formula that looks
down
I.E.column of dates and returns 7 day totals for certain items. Works
great.
The formula is, in part:
=sumproduct(((meter readings!a$4:$a$1064>p$4).........
Column A contains =b4. Both columns, A and B, are formatted as dates:
part:04/03/06 P4 is also formatted as a date I.E. 3-Apr-06
In another spreadsheet I was setting up a formula to get quarterly
totals. Same basic idea as the above formula. My formula is/was, in
and
=sumproduct(((register01532!$b$7:$b$401>=1/1/06)...
Column B formatted as dates. This would not work. Returned nothing but
0's.
By modifying the formula to .....>=date(2006,1,1)).... it worked.
Question is: Why did I have to use the Date function in one formula
not the other?
Walter Mayes
.
- Follow-Ups:
- Re: Sumproduct Date clarification
- From: Bob Phillips
- Re: Sumproduct Date clarification
- References:
- Sumproduct Date clarification
- From: Walter Mayes
- Re: Sumproduct Date clarification
- From: Biff
- Re: Sumproduct Date clarification
- From: Bob Phillips
- Sumproduct Date clarification
- Prev by Date: Re: Copying problem
- Next by Date: CountIF() in Worksheet B while referencing cells in Worksheet A
- Previous by thread: Re: Sumproduct Date clarification
- Next by thread: Re: Sumproduct Date clarification
- Index(es):
Relevant Pages
|