Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default formula using dates as condition

trying to use a formula to specify a spend based on date criteria to give a
sum of others cells

A B C
1/01/07 $40 sum of all transactions in
january
20/01/07 $35 sum of all transactions in
February
23/01/07 $40 sum of transactions in March
2/02/07 $35
5/02/07 $40
6/03/07 $35
21/03/07 $40

I haven't been able to sort out a formula as yet and I have a lot of
worksheets to do this for so any help with this would be great
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default formula using dates as condition

try this

col A - dates
Col B - Amounts

in C1 put this formula =SUMPRODUCT((MONTH(A1:A10)=1)*(B1:B10))

the rest is for the month of Jan.




On Nov 24, 11:45*am, macadoodle
wrote:
trying to use a formula to specify a spend based on date criteria to give a
sum of others cells

A * * * * * * * * * * * * *B * * * * * * * * * * * * *C
1/01/07 * * * * * * * $40 * * * * * * * * * * *sum of all transactions in
january
20/01/07 * * * * * * *$35 * * * * * * * * * * sum of all transactions in
February
23/01/07 * * * * * * *$40 * * * * * * * * * * sum of transactions in March
2/02/07 * * * * * * * * $35
5/02/07 * * * * * * * *$40
6/03/07 * * * * * * * *$35
21/03/07 * * * * * * *$40

I haven't been able to sort out a formula as yet and I have a lot of
worksheets to do this for so any help with this would be great


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default formula using dates as condition

Try this:

=SUMPRODUCT(--(TEXT(A1:A100,"mmm-yy")="Jan-07"),B1:B100)


"macadoodle" wrote:

trying to use a formula to specify a spend based on date criteria to give a
sum of others cells

A B C
1/01/07 $40 sum of all transactions in
january
20/01/07 $35 sum of all transactions in
February
23/01/07 $40 sum of transactions in March
2/02/07 $35
5/02/07 $40
6/03/07 $35
21/03/07 $40

I haven't been able to sort out a formula as yet and I have a lot of
worksheets to do this for so any help with this would be great

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
condition formula Kareinia Excel Worksheet Functions 5 March 8th 08 01:55 PM
Please Help Again-Condition Formula Kareinia Excel Worksheet Functions 5 March 6th 08 08:06 PM
comparing two dates and executing code on condition ashish128 Excel Discussion (Misc queries) 4 August 31st 06 10:45 AM
How do I use the "SUMIF" function using dates as a condition Brit. Excel Worksheet Functions 2 January 13th 06 01:32 PM
If formula and #N/A as a condition EstherJ Excel Discussion (Misc queries) 2 August 23rd 05 02:52 PM


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