Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Art Art is offline
external usenet poster
 
Posts: 587
Default Add values in "P" that fall between dates "03/01/00 and 03/31/00"

A B E
2 01/11/2009 214 $140,000
3 01/25/2009 309 $40,000
4 03/03/2009 309 $200,000
5 03/15/2009 214 $10,000
6 03/21/2009 309 $300,000
7 03/25/2009 309 $120,000
8 04/15/2009 309 $150,000

Hello,

I am hoping someone is able to help me with this issue. I am attempting to
sum the values in a column, "E" when the date in column, "A" falls between
03/01/2009 and 03/31/2009, and the number in column "B" is equal to "309".
Using the data above the formula should only add rows, 4, 6, & 7 for a total
of
$620,000. I have had a time of it trying to figure out how to create a to do
this. Can anyone please assit?
--
Art
Los Angeles, California
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 293
Default Add values in "P" that fall between dates "03/01/00 and 03/31/00"

Hi Art,

Try:
=SUMPRODUCT((A2:A8=DATEVALUE("01/03/2009"))*(A2:A8<DATEVALUE("31/03/2009"))*(B2:B8=309),E2:E8)

--
Cheers
macropod
[MVP - Microsoft Word]


"Art" wrote in message ...
A B E
2 01/11/2009 214 $140,000
3 01/25/2009 309 $40,000
4 03/03/2009 309 $200,000
5 03/15/2009 214 $10,000
6 03/21/2009 309 $300,000
7 03/25/2009 309 $120,000
8 04/15/2009 309 $150,000

Hello,

I am hoping someone is able to help me with this issue. I am attempting to
sum the values in a column, "E" when the date in column, "A" falls between
03/01/2009 and 03/31/2009, and the number in column "B" is equal to "309".
Using the data above the formula should only add rows, 4, 6, & 7 for a total
of
$620,000. I have had a time of it trying to figure out how to create a to do
this. Can anyone please assit?
--
Art
Los Angeles, California

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 293
Default Add values in "P" that fall between dates "03/01/00 and 03/31/00"

Oops - with your regional settings, that should be:
=SUMPRODUCT((A2:A8=DATEVALUE("03/01/2009"))*(A2:A8<DATEVALUE("03/31/2009"))*(B2:B8=309),E2:E8)

--
Cheers
macropod
[MVP - Microsoft Word]


"Art" wrote in message ...
A B E
2 01/11/2009 214 $140,000
3 01/25/2009 309 $40,000
4 03/03/2009 309 $200,000
5 03/15/2009 214 $10,000
6 03/21/2009 309 $300,000
7 03/25/2009 309 $120,000
8 04/15/2009 309 $150,000

Hello,

I am hoping someone is able to help me with this issue. I am attempting to
sum the values in a column, "E" when the date in column, "A" falls between
03/01/2009 and 03/31/2009, and the number in column "B" is equal to "309".
Using the data above the formula should only add rows, 4, 6, & 7 for a total
of
$620,000. I have had a time of it trying to figure out how to create a to do
this. Can anyone please assit?
--
Art
Los Angeles, California

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 222
Default Add values in "P" that fall between dates "03/01/00 and 03/31/00"

Give this a try:

=SUMPRODUCT(--(DATE(YEAR($A$2:$A$8),
MONTH($A$2:$A$8),1)=DATE(2009,3,1)),
--($B$2:$B$8=309),E2:E8)

--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"Art" wrote:

A B E
2 01/11/2009 214 $140,000
3 01/25/2009 309 $40,000
4 03/03/2009 309 $200,000
5 03/15/2009 214 $10,000
6 03/21/2009 309 $300,000
7 03/25/2009 309 $120,000
8 04/15/2009 309 $150,000

Hello,

I am hoping someone is able to help me with this issue. I am attempting to
sum the values in a column, "E" when the date in column, "A" falls between
03/01/2009 and 03/31/2009, and the number in column "B" is equal to "309".
Using the data above the formula should only add rows, 4, 6, & 7 for a total
of
$620,000. I have had a time of it trying to figure out how to create a to do
this. Can anyone please assit?
--
Art
Los Angeles, California

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Add values in "P" that fall between dates "03/01/00 and 03/31/00"

Try one of these...

Use cells to hold your criteria:

G2 = start date
H2 = end date
I2 = 309

=SUMPRODUCT(--(A2:A8=G2),--(A2:A8<=H2),--(B2:B8=I2),E2:E8)

If you're using Excel 2007:

=SUMIFS(E2:E8,A2:A8,"="&G2,A2:A8,"<="&H2,B2:B8,I2 )

--
Biff
Microsoft Excel MVP


"Art" wrote in message
...
A B E
2 01/11/2009 214 $140,000
3 01/25/2009 309 $40,000
4 03/03/2009 309 $200,000
5 03/15/2009 214 $10,000
6 03/21/2009 309 $300,000
7 03/25/2009 309 $120,000
8 04/15/2009 309 $150,000

Hello,

I am hoping someone is able to help me with this issue. I am attempting to
sum the values in a column, "E" when the date in column, "A" falls between
03/01/2009 and 03/31/2009, and the number in column "B" is equal to "309".
Using the data above the formula should only add rows, 4, 6, & 7 for a
total
of
$620,000. I have had a time of it trying to figure out how to create a to
do
this. Can anyone please assit?
--
Art
Los Angeles, California





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Art Art is offline
external usenet poster
 
Posts: 587
Default Add values in "P" that fall between dates "03/01/00 and 03/31/

Thank you very much. This is simple to follow and works like a charm. Thank
you to everyone who posted a response. I appreciate your assistance.
"DATEVALUE" was the key. Thank you.
--
Art
Los Angeles, California


"macropod" wrote:

Oops - with your regional settings, that should be:
=SUMPRODUCT((A2:A8=DATEVALUE("03/01/2009"))*(A2:A8<DATEVALUE("03/31/2009"))*(B2:B8=309),E2:E8)

--
Cheers
macropod
[MVP - Microsoft Word]


"Art" wrote in message ...
A B E
2 01/11/2009 214 $140,000
3 01/25/2009 309 $40,000
4 03/03/2009 309 $200,000
5 03/15/2009 214 $10,000
6 03/21/2009 309 $300,000
7 03/25/2009 309 $120,000
8 04/15/2009 309 $150,000

Hello,

I am hoping someone is able to help me with this issue. I am attempting to
sum the values in a column, "E" when the date in column, "A" falls between
03/01/2009 and 03/31/2009, and the number in column "B" is equal to "309".
Using the data above the formula should only add rows, 4, 6, & 7 for a total
of
$620,000. I have had a time of it trying to figure out how to create a to do
this. Can anyone please assit?
--
Art
Los Angeles, California


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 293
Default Add values in "P" that fall between dates "03/01/00 and 03/31/

Hi Art,

You're welcome.

In the case of the formula I submitted, you might want to change '<' to '<=' if the intention is to include the end date in the
range, or to change '=' to '' if the intention is to exclude the start date from the range. It all comes down to what you meant by
'between'.

--
Cheers
macropod
[MVP - Microsoft Word]


"Art" wrote in message ...
Thank you very much. This is simple to follow and works like a charm. Thank
you to everyone who posted a response. I appreciate your assistance.
"DATEVALUE" was the key. Thank you.
--
Art
Los Angeles, California


"macropod" wrote:

Oops - with your regional settings, that should be:
=SUMPRODUCT((A2:A8=DATEVALUE("03/01/2009"))*(A2:A8<DATEVALUE("03/31/2009"))*(B2:B8=309),E2:E8)

--
Cheers
macropod
[MVP - Microsoft Word]


"Art" wrote in message ...
A B E
2 01/11/2009 214 $140,000
3 01/25/2009 309 $40,000
4 03/03/2009 309 $200,000
5 03/15/2009 214 $10,000
6 03/21/2009 309 $300,000
7 03/25/2009 309 $120,000
8 04/15/2009 309 $150,000

Hello,

I am hoping someone is able to help me with this issue. I am attempting to
sum the values in a column, "E" when the date in column, "A" falls between
03/01/2009 and 03/31/2009, and the number in column "B" is equal to "309".
Using the data above the formula should only add rows, 4, 6, & 7 for a total
of
$620,000. I have had a time of it trying to figure out how to create a to do
this. Can anyone please assit?
--
Art
Los Angeles, California



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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Changing "returned" values from "0" to "blank" LATATC Excel Worksheet Functions 2 October 20th 05 04:41 PM


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