Thread: 3 Questions
View Single Post
  #16   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld Ron Rosenfeld is offline
external usenet poster
 
Posts: 5,651
Default 3 Questions

On Sun, 11 Nov 2007 16:31:11 -0600, "Django Cat" < wrote:

The previous 7 days - I'd quite like to look at alternative ways of doing this...
DC



=SUMIF(Date,"="&A10-7,Money)-
SUMIF(Date,""&A10,Money)

will return transactions during the last 7 days prior to (and including) the
Date in A10.

If you need the current week, and Day 1 of the week is Sunday, then:

=SUMIF(Date,""&A10-WEEKDAY(A10),Money)-
SUMIF(Date,""&A10,Money)
--ron