Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default sum if x=val and y between 2 dates

I need to sum a range (column) of cells dependant on 3 criteria. I have spent
ages searching on here, but have become more and more confused!!

Sum all Column Q if cells in Column M=B1
and if cells in Column C =V2 and <V3

where V2 and V3 are start and end dates and B1 is a text string and columns
Q,M and C are on a different worksheet to B1, V2, V3 and the actual sumif
formula.

I have tried
=SUM(IF('Conferences
2007'!$M:$M=Totals!$B$1,IF($C:$C=Totals!V2,IF($C: $C<Totals!V3,$Q:$Q,))))

But just get '0'

Any ideas - thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default sum if x=val and y between 2 dates

=SUMPRODUCT(--(M1:M100=B1),--(C1:C100=V2),--(C1:C100<V3),Q1:Q100)
fix the ranges to suit your need but do not try to use full columns (as in
M:M ) as SUMPRODUCT cannot cope with that
For details on SUMPRODUCT see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"jenniebentham" wrote in message
...
I need to sum a range (column) of cells dependant on 3 criteria. I have
spent
ages searching on here, but have become more and more confused!!

Sum all Column Q if cells in Column M=B1
and if cells in Column C =V2 and <V3

where V2 and V3 are start and end dates and B1 is a text string and
columns
Q,M and C are on a different worksheet to B1, V2, V3 and the actual sumif
formula.

I have tried
=SUM(IF('Conferences
2007'!$M:$M=Totals!$B$1,IF($C:$C=Totals!V2,IF($C: $C<Totals!V3,$Q:$Q,))))

But just get '0'

Any ideas - thanks!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 527
Default sum if x=val and y between 2 dates

Jennie try

=SUMPRODUCT(--('Conferences 2007'!M1:M65536=Totals!V2),('Conferences
2007'!M1:M65536<=Totals!V2))*(Totals!Q1:Q65536))

I am not sure that I have the sheets right

Peter


"jenniebentham" wrote:

I need to sum a range (column) of cells dependant on 3 criteria. I have spent
ages searching on here, but have become more and more confused!!

Sum all Column Q if cells in Column M=B1
and if cells in Column C =V2 and <V3

where V2 and V3 are start and end dates and B1 is a text string and columns
Q,M and C are on a different worksheet to B1, V2, V3 and the actual sumif
formula.

I have tried
=SUM(IF('Conferences
2007'!$M:$M=Totals!$B$1,IF($C:$C=Totals!V2,IF($C: $C<Totals!V3,$Q:$Q,))))

But just get '0'

Any ideas - thanks!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default sum if x=val and y between 2 dates

Thanks so much guys, I'm not back at work til Tuesday, so I shall have a go
then.

"Bernard Liengme" wrote:

=SUMPRODUCT(--(M1:M100=B1),--(C1:C100=V2),--(C1:C100<V3),Q1:Q100)
fix the ranges to suit your need but do not try to use full columns (as in
M:M ) as SUMPRODUCT cannot cope with that
For details on SUMPRODUCT see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"jenniebentham" wrote in message
...
I need to sum a range (column) of cells dependant on 3 criteria. I have
spent
ages searching on here, but have become more and more confused!!

Sum all Column Q if cells in Column M=B1
and if cells in Column C =V2 and <V3

where V2 and V3 are start and end dates and B1 is a text string and
columns
Q,M and C are on a different worksheet to B1, V2, V3 and the actual sumif
formula.

I have tried
=SUM(IF('Conferences
2007'!$M:$M=Totals!$B$1,IF($C:$C=Totals!V2,IF($C: $C<Totals!V3,$Q:$Q,))))

But just get '0'

Any ideas - thanks!




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default sum if x=val and y between 2 dates

Thank you, thank you, thank you!


"Bernard Liengme" wrote:

=SUMPRODUCT(--(M1:M100=B1),--(C1:C100=V2),--(C1:C100<V3),Q1:Q100)
fix the ranges to suit your need but do not try to use full columns (as in
M:M ) as SUMPRODUCT cannot cope with that
For details on SUMPRODUCT see
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"jenniebentham" wrote in message
...
I need to sum a range (column) of cells dependant on 3 criteria. I have
spent
ages searching on here, but have become more and more confused!!

Sum all Column Q if cells in Column M=B1
and if cells in Column C =V2 and <V3

where V2 and V3 are start and end dates and B1 is a text string and
columns
Q,M and C are on a different worksheet to B1, V2, V3 and the actual sumif
formula.

I have tried
=SUM(IF('Conferences
2007'!$M:$M=Totals!$B$1,IF($C:$C=Totals!V2,IF($C: $C<Totals!V3,$Q:$Q,))))

But just get '0'

Any ideas - thanks!




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
Identifying unique dates in a range of cells containing dates... cdavidson Excel Discussion (Misc queries) 4 October 13th 06 03:30 PM
Identifying unique dates within a range of cells containing dates cdavidson Excel Discussion (Misc queries) 0 October 12th 06 08:19 PM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM
Charting data against dates where dates are not at fixed intervals PK Charts and Charting in Excel 4 June 16th 05 05:08 AM


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