Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jan Jan is offline
external usenet poster
 
Posts: 159
Default sumproduct with dates for aging

Hi,
Using Excel 2007. When I enter the following formula, I get the correct
answer.
=SUMPRODUCT(--((TODAY()-Eagan!$F$4:$F$200120)),--((TODAY()-Eagan!$F$4:$F$200<900)),--(Eagan!$I$4:$I$2000),--Eagan!$I$4:$I$200)

But, if I enter this formula as shown below, I get the incorrect answer.
=SUMPRODUCT(--((TODAY()-Eagan!$F$4:$F$200=121)),--(Eagan!$I$4:$I$2000),--Eagan!$I$4:$I$200).

Since I am at the end column for the aging, I no longer need to have an end
point (or this portion of the formula --((TODAY()-Eagan!$F$4:$F$200<900)).

I can't figure out what is wrong.

Can someone advise?

TIA
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jan Jan is offline
external usenet poster
 
Posts: 159
Default sumproduct with dates for aging

OOPS...I using Excel 2003

"Jan" wrote:

Hi,
Using Excel 2007. When I enter the following formula, I get the correct
answer.
=SUMPRODUCT(--((TODAY()-Eagan!$F$4:$F$200120)),--((TODAY()-Eagan!$F$4:$F$200<900)),--(Eagan!$I$4:$I$2000),--Eagan!$I$4:$I$200)

But, if I enter this formula as shown below, I get the incorrect answer.
=SUMPRODUCT(--((TODAY()-Eagan!$F$4:$F$200=121)),--(Eagan!$I$4:$I$2000),--Eagan!$I$4:$I$200).

Since I am at the end column for the aging, I no longer need to have an end
point (or this portion of the formula --((TODAY()-Eagan!$F$4:$F$200<900)).

I can't figure out what is wrong.

Can someone advise?

TIA

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default sumproduct with dates for aging

Tools Formula Auditing Evaluate Formula. That shows you Excel's method
of logic for dealing with every function.

In the first scenario, you are testing for three conditions and then summing
the values in the range Eagan!$I$4:$I$200. In the second you are testing for
two conditions, and then summing the values in range Eagan!$I$4:$I$200.

Now, if you put =TODAY() in Cell F1 and put this:
=F1-SUMPRODUCT(--(Eagan!$F$4:$F$200<900))
in Cell F2

Excel counts from row 4 to row 200, whish is 197 rows, and compares the
values in these rows to see if they are less than 900. I have 121 and 122 in
there, and so all 197 rows are less than 900. If you format F1 and F2 as
General, you will see that F1 is 39902 (means 39902 days have passed since
January 1, 1900, see below for more info.) and from that you subtract 197,
and the result is 39705. Make sense?

See this link for more info.
http://www.meadinkent.co.uk/xlsumproduct.htm

Also, see this:
http://www.cpearson.com/excel/datetime.htm

HTH,
Ryan--

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Jan" wrote:

Hi,
Using Excel 2007. When I enter the following formula, I get the correct
answer.
=SUMPRODUCT(--((TODAY()-Eagan!$F$4:$F$200120)),--((TODAY()-Eagan!$F$4:$F$200<900)),--(Eagan!$I$4:$I$2000),--Eagan!$I$4:$I$200)

But, if I enter this formula as shown below, I get the incorrect answer.
=SUMPRODUCT(--((TODAY()-Eagan!$F$4:$F$200=121)),--(Eagan!$I$4:$I$2000),--Eagan!$I$4:$I$200).

Since I am at the end column for the aging, I no longer need to have an end
point (or this portion of the formula --((TODAY()-Eagan!$F$4:$F$200<900)).

I can't figure out what is wrong.

Can someone advise?

TIA

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
Aging formula with unknown dates Serendipity Excel Worksheet Functions 5 August 20th 08 03:56 AM
aging days between dates Karel Excel Discussion (Misc queries) 1 July 22nd 07 11:13 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


All times are GMT +1. The time now is 11:09 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"