Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default SUMPRODUCT is giving incorrect number

I am using Windows XP and Excel 2000.

I have 2 worksheets 1) Data 2) betwen_2_dates

In the sheet between_2_dates the cell D2 has this date input 01/01/2007

In the sheet between_2_dates the cell G2 has this date input 31/12/2007

In the sheet between_2_dates the cell B2 has this formula
=SUMPRODUCT(--(Data!$A$1:$A$10000=D2),--(Data!$A$1:$A$10000<=G2))

In the sheet Data column A has the info. In column A cell A1 of sheet Data
there is the following text "MainDate". In sheet Data column A cells A2 to
A134 there are dates which all fall between 01/04/2007 and 30/06/2007.

However in sheet between_2_dates cell B2, the number that is displayed is
132. But the number should be 133.

Any idea what is causing the formula to display 1 less than it should do?

Many thanks for any help with this.

--
Richard
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default SUMPRODUCT is giving incorrect number

I suspect one of dates isn't! (Date format). I ran a simulation of your data
and got the answer of 133 when my dates were within your range in A2 to A134.

If I change a cell to TEXT but it looks like a date, then I get an answer of
132.

"Richard" wrote:

I am using Windows XP and Excel 2000.

I have 2 worksheets 1) Data 2) betwen_2_dates

In the sheet between_2_dates the cell D2 has this date input 01/01/2007

In the sheet between_2_dates the cell G2 has this date input 31/12/2007

In the sheet between_2_dates the cell B2 has this formula
=SUMPRODUCT(--(Data!$A$1:$A$10000=D2),--(Data!$A$1:$A$10000<=G2))

In the sheet Data column A has the info. In column A cell A1 of sheet Data
there is the following text "MainDate". In sheet Data column A cells A2 to
A134 there are dates which all fall between 01/04/2007 and 30/06/2007.

However in sheet between_2_dates cell B2, the number that is displayed is
132. But the number should be 133.

Any idea what is causing the formula to display 1 less than it should do?

Many thanks for any help with this.

--
Richard

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default SUMPRODUCT is giving incorrect number

Thank you Toppers

I had a look at the cell formats and they were ok. So I had a closer look
at the dates and 1 date was input as the year 2207. So that solves my
problem.
--
Richard


"Toppers" wrote:

I suspect one of dates isn't! (Date format). I ran a simulation of your data
and got the answer of 133 when my dates were within your range in A2 to A134.

If I change a cell to TEXT but it looks like a date, then I get an answer of
132.

"Richard" wrote:

I am using Windows XP and Excel 2000.

I have 2 worksheets 1) Data 2) betwen_2_dates

In the sheet between_2_dates the cell D2 has this date input 01/01/2007

In the sheet between_2_dates the cell G2 has this date input 31/12/2007

In the sheet between_2_dates the cell B2 has this formula
=SUMPRODUCT(--(Data!$A$1:$A$10000=D2),--(Data!$A$1:$A$10000<=G2))

In the sheet Data column A has the info. In column A cell A1 of sheet Data
there is the following text "MainDate". In sheet Data column A cells A2 to
A134 there are dates which all fall between 01/04/2007 and 30/06/2007.

However in sheet between_2_dates cell B2, the number that is displayed is
132. But the number should be 133.

Any idea what is causing the formula to display 1 less than it should do?

Many thanks for any help with this.

--
Richard

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 - Giving me trouble porter444 Excel Worksheet Functions 3 May 22nd 07 11:04 AM
SUMPRODUCT returning incorrect result sahafi Excel Worksheet Functions 7 September 22nd 06 11:36 PM
Sumproduct giving #NA Gary Excel Worksheet Functions 2 August 3rd 06 11:47 AM
Very large workbook now giving incorrect results :( [email protected] Excel Discussion (Misc queries) 0 July 17th 06 11:29 PM
Formula giving incorrect answer... Jambruins Excel Discussion (Misc queries) 3 February 25th 05 06:59 PM


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