#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default SUMIFS and dates

I have some data and wish to use the sumifs function to add up sums when a
criteria is true and the date is less than a month ago. I have tried using
date-30 to no avail. Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default SUMIFS and dates

Hi

Something like the following, with dates in A, Criteria in B and Values in
C.
I put 01 Jan 2009 in I1 and 01 Feb in J1

=SUMIFS(C2:C5,B2:B5,"A",A2:A5,"="&I1,A2:A5,"<"&J1 )

--
Regards
Roger Govier

"JLR-Mart" wrote in message
...
I have some data and wish to use the sumifs function to add up sums when a
criteria is true and the date is less than a month ago. I have tried using
date-30 to no avail. Any suggestions?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default SUMIFS and dates

I've used:

=SUMIFS(Current!F3:F1048576,Current!D3:D1048576,"P etrol",Current!A3:A1048576,"="&Current!H2)

Where the content of Current!H2 = today()-30 (which equals 16/03/09)

BUT that doesn't result in a valid result.

Any ideas?

"Roger Govier" wrote:

Hi

Something like the following, with dates in A, Criteria in B and Values in
C.
I put 01 Jan 2009 in I1 and 01 Feb in J1

=SUMIFS(C2:C5,B2:B5,"A",A2:A5,"="&I1,A2:A5,"<"&J1 )

--
Regards
Roger Govier

"JLR-Mart" wrote in message
...
I have some data and wish to use the sumifs function to add up sums when a
criteria is true and the date is less than a month ago. I have tried using
date-30 to no avail. Any suggestions?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default SUMIFS and dates

There's nothing wrong with your syntax, so it must be your data.

"doesn't result in a valid result" doesn't give us much to go on. What
result did you get, and what did you expect?

Regards,
Fred.

"JLR-Mart" wrote in message
...
I've used:

=SUMIFS(Current!F3:F1048576,Current!D3:D1048576,"P etrol",Current!A3:A1048576,"="&Current!H2)

Where the content of Current!H2 = today()-30 (which equals 16/03/09)

BUT that doesn't result in a valid result.

Any ideas?

"Roger Govier" wrote:

Hi

Something like the following, with dates in A, Criteria in B and Values
in
C.
I put 01 Jan 2009 in I1 and 01 Feb in J1

=SUMIFS(C2:C5,B2:B5,"A",A2:A5,"="&I1,A2:A5,"<"&J1 )

--
Regards
Roger Govier

"JLR-Mart" wrote in message
...
I have some data and wish to use the sumifs function to add up sums
when a
criteria is true and the date is less than a month ago. I have tried
using
date-30 to no avail. Any suggestions?




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
SUMIFS formula using dates and text as criteria Trish Excel Discussion (Misc queries) 4 May 21st 23 07:46 PM
Using Sumifs tomferrin Excel Worksheet Functions 3 April 7th 09 06:40 PM
Sumifs David Excel Discussion (Misc queries) 9 January 27th 09 05:20 AM
sumifs, sumif with dates Richard Manor Excel Worksheet Functions 6 November 13th 08 12:19 AM
SUMIFS with dates Chinni Krishna Reddy[_2_] Excel Worksheet Functions 2 April 16th 07 10:02 PM


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