Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mark
 
Posts: n/a
Default Sum using two criteria

Hello,

Is it possible to sum up all contracts won in a given
month? This is the information I enter into excel.
Kit#, Submit Date, Award Date, # of Kits, Price Quoted,
Won / Lost. The date format is 4-Mar-97. I only want to
sum the awards that have Won in the Won / Lost Colomn.
Here is the formula I used.{=SUM((C13:C165="Mar")*
(L13:L196="Won")*(J13:J165))}. Thanks in advance for
your help.

Mark
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

If you really have the date in column C:

=SUM((MONTH(C13:C165)=3)*(L13:L165="Won")*(J13:J16 5))
(array entered, still)

And those ranges have to be the same size (I changed L13:L196 to L13:L165).

This formula is equivalent, but it's not array entered:

=SUMPRODUCT(--(MONTH(C13:C165)=3),--(L13:L165="Won"),(J13:J165))

The double minuses convert trues/falses to +1/0's.

And =sumproduct() likes to work with numbers--not logical values.

Mark wrote:

Hello,

Is it possible to sum up all contracts won in a given
month? This is the information I enter into excel.
Kit#, Submit Date, Award Date, # of Kits, Price Quoted,
Won / Lost. The date format is 4-Mar-97. I only want to
sum the awards that have Won in the Won / Lost Colomn.
Here is the formula I used.{=SUM((C13:C165="Mar")*
(L13:L196="Won")*(J13:J165))}. Thanks in advance for
your help.

Mark


--

Dave Peterson
  #3   Report Post  
 
Posts: n/a
Default

I used the array you suggested and I get this error:
#VALUE! Any ideas as to why I get this? I appreciate
your help


-----Original Message-----
If you really have the date in column C:

=SUM((MONTH(C13:C165)=3)*(L13:L165="Won")*(J13:J1 65))
(array entered, still)

And those ranges have to be the same size (I changed

L13:L196 to L13:L165).

This formula is equivalent, but it's not array entered:

=SUMPRODUCT(--(MONTH(C13:C165)=3),--(L13:L165="Won"),

(J13:J165))

The double minuses convert trues/falses to +1/0's.

And =sumproduct() likes to work with numbers--not

logical values.

Mark wrote:

Hello,

Is it possible to sum up all contracts won in a given
month? This is the information I enter into excel.
Kit#, Submit Date, Award Date, # of Kits, Price Quoted,
Won / Lost. The date format is 4-Mar-97. I only want

to
sum the awards that have Won in the Won / Lost Colomn.
Here is the formula I used.{=SUM((C13:C165="Mar")*
(L13:L196="Won")*(J13:J165))}. Thanks in advance for
your help.

Mark


--

Dave Peterson
.

  #5   Report Post  
 
Posts: n/a
Default

I did use (ctrl-shift-enter) I didn't have any errors.


-----Original Message-----
Did you array enter it (ctrl-shift-enter)?

Did you have any errors in any of those ranges?

wrote:

I used the array you suggested and I get this error:
#VALUE! Any ideas as to why I get this? I appreciate
your help

-----Original Message-----
If you really have the date in column C:

=SUM((MONTH(C13:C165)=3)*(L13:L165="Won")*(J13:J1 65))
(array entered, still)

And those ranges have to be the same size (I changed

L13:L196 to L13:L165).

This formula is equivalent, but it's not array

entered:

=SUMPRODUCT(--(MONTH(C13:C165)=3),--(L13:L165="Won"),

(J13:J165))

The double minuses convert trues/falses to +1/0's.

And =sumproduct() likes to work with numbers--not

logical values.

Mark wrote:

Hello,

Is it possible to sum up all contracts won in a

given
month? This is the information I enter into excel.
Kit#, Submit Date, Award Date, # of Kits, Price

Quoted,
Won / Lost. The date format is 4-Mar-97. I only

want
to
sum the awards that have Won in the Won / Lost

Colomn.
Here is the formula I used.{=SUM((C13:C165="Mar")*
(L13:L196="Won")*(J13:J165))}. Thanks in advance

for
your help.

Mark

--

Dave Peterson
.


--

Dave Peterson
.



  #6   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Are your dates true Excel dates or are they text strings?

Biff

-----Original Message-----
I did use (ctrl-shift-enter) I didn't have any errors.


-----Original Message-----
Did you array enter it (ctrl-shift-enter)?

Did you have any errors in any of those ranges?

wrote:

I used the array you suggested and I get this error:
#VALUE! Any ideas as to why I get this? I appreciate
your help

-----Original Message-----
If you really have the date in column C:

=SUM((MONTH(C13:C165)=3)*(L13:L165="Won")*(J13:J1 65))
(array entered, still)

And those ranges have to be the same size (I changed
L13:L196 to L13:L165).

This formula is equivalent, but it's not array

entered:

=SUMPRODUCT(--(MONTH(C13:C165)=3),--(L13:L165="Won"),
(J13:J165))

The double minuses convert trues/falses to +1/0's.

And =sumproduct() likes to work with numbers--not
logical values.

Mark wrote:

Hello,

Is it possible to sum up all contracts won in a

given
month? This is the information I enter into excel.
Kit#, Submit Date, Award Date, # of Kits, Price

Quoted,
Won / Lost. The date format is 4-Mar-97. I only

want
to
sum the awards that have Won in the Won / Lost

Colomn.
Here is the formula I used.{=SUM((C13:C165="Mar")*
(L13:L196="Won")*(J13:J165))}. Thanks in advance

for
your help.

Mark

--

Dave Peterson
.


--

Dave Peterson
.

.

  #7   Report Post  
Dave Peterson
 
Posts: n/a
Default

And to piggyback on Biff's question.

If they really are text strings '4-Mar-97, try selecting that column and doing:

Data|Text to columns
Fixed width (don't add any lines and remove any that excel guessed at)
choose dmy as the field format
and plop it right back where you got it.

This should convert those text strings to real dates.

If there is a reason you can't change the strings to actual dates:

=SUMPRODUCT(--(ISNUMBER(SEARCH("mar",C13:C165))),--(L13:L165="Won"),(J13:J165))

Biff wrote:

Hi!

Are your dates true Excel dates or are they text strings?

Biff

-----Original Message-----
I did use (ctrl-shift-enter) I didn't have any errors.


-----Original Message-----
Did you array enter it (ctrl-shift-enter)?

Did you have any errors in any of those ranges?

wrote:

I used the array you suggested and I get this error:
#VALUE! Any ideas as to why I get this? I appreciate
your help

-----Original Message-----
If you really have the date in column C:

=SUM((MONTH(C13:C165)=3)*(L13:L165="Won")*(J13:J1 65))
(array entered, still)

And those ranges have to be the same size (I changed
L13:L196 to L13:L165).

This formula is equivalent, but it's not array

entered:

=SUMPRODUCT(--(MONTH(C13:C165)=3),--(L13:L165="Won"),
(J13:J165))

The double minuses convert trues/falses to +1/0's.

And =sumproduct() likes to work with numbers--not
logical values.

Mark wrote:

Hello,

Is it possible to sum up all contracts won in a

given
month? This is the information I enter into excel.
Kit#, Submit Date, Award Date, # of Kits, Price

Quoted,
Won / Lost. The date format is 4-Mar-97. I only

want
to
sum the awards that have Won in the Won / Lost

Colomn.
Here is the formula I used.{=SUM((C13:C165="Mar")*
(L13:L196="Won")*(J13:J165))}. Thanks in advance

for
your help.

Mark

--

Dave Peterson
.


--

Dave Peterson
.

.


--

Dave Peterson
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
sumif Spunky Excel Discussion (Misc queries) 9 December 3rd 04 06:07 PM
Counting rows based on criteria in multiple cells Margaret Excel Discussion (Misc queries) 11 December 2nd 04 11:04 PM
boolean find criteria in Excel davista00 Excel Discussion (Misc queries) 1 December 1st 04 03:45 PM


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