A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Summing based on dates



 
 
Thread Tools Display Modes
  #1  
Old April 10th, 2010, 07:55 PM posted to microsoft.public.excel.worksheet.functions
Mike
external usenet poster
 
Posts: 1
Default Summing based on dates

I go running and have a mileage log. I have a list of non-continuous
dates in column A (i.e. I don't run every day), and mileage figures in
column B.

On a separate part of the worksheet I want to put a summary table that
shows a summary by week. So the first column will be "weekending" date
and the second column mileage for the last seven days. I can't work
out how to put an automatic formula in this second column. Sure, I
could do a manual formula that just sums up the 3 or 4 days in that
week that I ran, but there must be a better way?
  #2  
Old April 10th, 2010, 09:24 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Summing based on dates

Try this...

A1:A21 = dates
B1:B21 = mileage

E1:E? = week ending dates

Enter this formula in F1:

=SUMIF(A$1:A$21,""&E1-7,B$1:B$21)-SUMIF(A$1:A$21,""&E1,B$1:B$21)

Format as General or Number

Copy down as needed

--
Biff
Microsoft Excel MVP


"Mike" wrote in message
...
I go running and have a mileage log. I have a list of non-continuous
dates in column A (i.e. I don't run every day), and mileage figures in
column B.

On a separate part of the worksheet I want to put a summary table that
shows a summary by week. So the first column will be "weekending" date
and the second column mileage for the last seven days. I can't work
out how to put an automatic formula in this second column. Sure, I
could do a manual formula that just sums up the 3 or 4 days in that
week that I ran, but there must be a better way?



  #3  
Old April 10th, 2010, 10:30 PM posted to microsoft.public.excel.worksheet.functions
ajnmxx
external usenet poster
 
Posts: 4
Default Summing based on dates

Perfect! Thank you so much for your help, much appreciated.
  #4  
Old April 11th, 2010, 02:46 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Summing based on dates

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"ajnmxx" wrote in message
...
Perfect! Thank you so much for your help, much appreciated.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:15 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.