Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,069
Default Sum with multiple conditions

I'm trying to write a sumproduct formula with mulitple conditions:
C6=4/25/08
C44=Project121

I'm using:

=SUMPRODUCT(--(Sheet1!K$2:K$50001<=--C$6),--(Sheet1!E$2:E$50001=C44),Sheet1!T$2:T$50001)

I want to sum the values in column T with the specific data in C44 athat has
a date less than 4/25/08. The data in column C changes, so C43 could be
Project151. Also I want the date to alway be the current date, that is why
I'm refrencing it to a specific cell, using =today(). I keep getting a #ref!
error.

The previous formula I was using was working but it didn't factor in the date.

=SUMIF(Sheet1!$E$2:$E$50001,C44,Sheet1!T$2:T$50001 )

Can anyone help? Using Excel2003



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sum with multiple conditions

=SUMPRODUCT(--(Sheet1!K$2:K$50001<=--C$6),--(Sheet1!E$2:E$50001=C44),Sheet1!T$2:T$50001)

If C6 is a true Excel date then you don't need the double unary: --C$6. If
C6 is a TEXT string that looks like a date then the double unary will coerce
the string to a true Excel date. Other than that, there's nothing wrong with
the formula. If Sheet1 doesn't exist then you'll get a #REF! error. Or, do
you have #REF! errors already in any of the ranges?


--
Biff
Microsoft Excel MVP


"John" wrote in message
...
I'm trying to write a sumproduct formula with mulitple conditions:
C6=4/25/08
C44=Project121

I'm using:

=SUMPRODUCT(--(Sheet1!K$2:K$50001<=--C$6),--(Sheet1!E$2:E$50001=C44),Sheet1!T$2:T$50001)

I want to sum the values in column T with the specific data in C44 athat
has
a date less than 4/25/08. The data in column C changes, so C43 could be
Project151. Also I want the date to alway be the current date, that is
why
I'm refrencing it to a specific cell, using =today(). I keep getting a
#ref!
error.

The previous formula I was using was working but it didn't factor in the
date.

=SUMIF(Sheet1!$E$2:$E$50001,C44,Sheet1!T$2:T$50001 )

Can anyone help? Using Excel2003





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
Setting multiple conditions to return a figure from multiple cells Sapper Excel Discussion (Misc queries) 4 April 26th 09 10:33 PM
SUMPRODUCT or INDEX/MATCH for multiple conditions and multiple rec TravisB Excel Discussion (Misc queries) 21 March 16th 07 09:49 PM
How do I add multiple values that match multiple conditions? Joel Excel Discussion (Misc queries) 5 April 10th 06 01:32 PM
Combining Text from multiple cells under multiple conditions KNS Excel Worksheet Functions 2 June 15th 05 11:00 PM
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM


All times are GMT +1. The time now is 02:18 PM.

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"