Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 447
Default Need to add to a SUMPRODUCT formula

I have the following formula that I need to add a step too:
=SUMPRODUCT(--('Enrollment Log'!$F$3:$F$547<""),--(MONTH('Enrollment
Log'!$J$3:$J$547)=6),--(YEAR('Enrollment Log'!$J$3:$J$547)=2007))

I need it to look at column F to be not blank OR column C to =EU then add if
the month and year match 6/2007.

If there is a more simple way to approach this other than adding to the
above formula, that would be even better.

Thanks - Karen
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Need to add to a SUMPRODUCT formula

=SUMPRODUCT(--(('Enrollment Log'!$F$3:$F$547<"")+('Enrollment
Log'!$C$3:$C$547="EU")),
--(MONTH('Enrollment Log'!$J$3:$J$547)=6),
--(YEAR('Enrollment Log'!$J$3:$J$547)=2007))


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Karen" wrote in message
...
I have the following formula that I need to add a step too:
=SUMPRODUCT(--('Enrollment Log'!$F$3:$F$547<""),--(MONTH('Enrollment
Log'!$J$3:$J$547)=6),--(YEAR('Enrollment Log'!$J$3:$J$547)=2007))

I need it to look at column F to be not blank OR column C to =EU then add
if
the month and year match 6/2007.

If there is a more simple way to approach this other than adding to the
above formula, that would be even better.

Thanks - Karen



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Need to add to a SUMPRODUCT formula

Try
=SUMPRODUCT(('Enrollment Log'!$F$3:$F$547<")+('Enrollment
Log'!$CF$3:$C$547="EU"),--(MONTH('Enrollment
Log'!$J$3:$J$547)=6),--(YEAR('Enrollment Log'!$J$3:$J$547)=2007))

We don not need the -- in first term since the + operator will convert
Boolean to numeric.

You can often use + for OR, or * for AND in formulas
Example: (TRUE, TRUE, FALSE)+(FALSE,TRUE,FALSE) becomes (1,1,0)
While (TRUE, TRUE, FALSE)*(FALSE,TRUE,FALSE) becomes (0,1,0)
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Karen" wrote in message
...
I have the following formula that I need to add a step too:
=SUMPRODUCT(--('Enrollment Log'!$F$3:$F$547<""),--(MONTH('Enrollment
Log'!$J$3:$J$547)=6),--(YEAR('Enrollment Log'!$J$3:$J$547)=2007))

I need it to look at column F to be not blank OR column C to =EU then add
if
the month and year match 6/2007.

If there is a more simple way to approach this other than adding to the
above formula, that would be even better.

Thanks - Karen



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 Formula Help Please Joe Gieder Excel Worksheet Functions 12 April 4th 07 01:49 AM
OR in a SUMPRODUCT formula Kierano Excel Worksheet Functions 9 October 19th 06 10:24 AM
sumproduct formula Todd Excel Worksheet Functions 2 March 10th 06 01:39 AM
SumProduct Formula carl Excel Worksheet Functions 2 January 31st 06 08:14 PM
Help On SUMPRODUCT Formula Joe Gieder Excel Worksheet Functions 2 January 27th 05 05:56 PM


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