Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default SUMPRODUCT Formula Not Calculating with 2 criteria

Each of these calculate correcting when by themselves.

=SUMPRODUCT(--(DataOrientMoYr=DATE(2009,7,1)))
=SUMPRODUCT(--(DataTime="First day of employment (Time 1)"))
=SUMPRODUCT(--(TEXT(DataOrientMoYr,"m/d/yyyy")="7/1/2009)


But, when I combine together, I get a #Value! error.
=SUMPRODUCT(--(DataTime="First day of employment (Time
1)"),--(TEXT(DataOrientMoYr,"m/d/yyyy")="7/1/2009"))

Does anyone have any suggestions, I am puzzled.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default SUMPRODUCT Formula Not Calculating with 2 criteria

Hi

Check if both named ranges are the same size, othervise you will get
this error.

Regards,
Per

On 23 Nov., 00:30, DogLover
wrote:
Each of these calculate correcting when by themselves.

=SUMPRODUCT(--(DataOrientMoYr=DATE(2009,7,1)))
=SUMPRODUCT(--(DataTime="First day of employment (Time 1)"))
=SUMPRODUCT(--(TEXT(DataOrientMoYr,"m/d/yyyy")="7/1/2009)

But, when I combine together, I get a #Value! error.
=SUMPRODUCT(--(DataTime="First day of employment (Time
1)"),--(TEXT(DataOrientMoYr,"m/d/yyyy")="7/1/2009"))

Does anyone have any suggestions, I am puzzled.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default SUMPRODUCT Formula Not Calculating with 2 criteria

I just discovered the problem was that I changed the DataOrientMoYr range to
a smaller size for testing. Now DataOrientMoYr and DataTime are the same
size and it works.

"DogLover" wrote:

Each of these calculate correcting when by themselves.

=SUMPRODUCT(--(DataOrientMoYr=DATE(2009,7,1)))
=SUMPRODUCT(--(DataTime="First day of employment (Time 1)"))
=SUMPRODUCT(--(TEXT(DataOrientMoYr,"m/d/yyyy")="7/1/2009)


But, when I combine together, I get a #Value! error.
=SUMPRODUCT(--(DataTime="First day of employment (Time
1)"),--(TEXT(DataOrientMoYr,"m/d/yyyy")="7/1/2009"))

Does anyone have any suggestions, I am puzzled.

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 with multiple criteria using indirect formula jbo Excel Worksheet Functions 4 December 2nd 08 03:25 PM
Sumproduct Formula to counts multiple criteria in two columns? EricB Excel Worksheet Functions 1 November 19th 08 10:24 AM
sumproduct formula (multiple criteria) Inter Excel Discussion (Misc queries) 11 August 9th 07 12:28 PM
Sumproduct - formula to return data OTHER than given criteria Twishlist Excel Worksheet Functions 4 July 24th 07 05:22 AM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM


All times are GMT +1. The time now is 09:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"