Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
BarrySandell
 
Posts: n/a
Default How can I calculate weekly totals of daily data in Excel

I have an Excel spreadsheet of daily totals where some days have no values
and some days have several values. I want to consolidate this into weekly
totals. Any ideas?
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=AVERAGE(IF((A1:A30=J1)*(A1:A30<=K1),B1:B30))

entered with ctrl + shift & enter where K1 is the first date of the week and
K1 the last

--
Regards,

Peo Sjoblom

(No private emails please)


"BarrySandell" wrote in message
...
I have an Excel spreadsheet of daily totals where some days have no values
and some days have several values. I want to consolidate this into weekly
totals. Any ideas?


  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Thu, 6 Oct 2005 16:01:03 -0700, BarrySandell
wrote:

I have an Excel spreadsheet of daily totals where some days have no values
and some days have several values. I want to consolidate this into weekly
totals. Any ideas?


How about a pivot table.

Drag the dates to the row area.
Drag the Values to the data area.

Right click on dates and select
Group and Show Detail/Group
Select a starting date that reflects the start of week 1 and then group by Days
with Number of Days set to 7


--ron
  #4   Report Post  
BarrySandell
 
Posts: n/a
Default

Thanks for your responses. I thought of a simple solution about 5 minutes
after posting my question. Typical!

Use the WEEKNUM function to convert each date into the number of the week in
which it appears, then use a pivot table to sum the values for each week. To
convert the weeknum back to a date (eg for plotting on a chart), add the week
number * 7 to the Excel index number for 1st Jan, then format the result as
d/mm/yy. Works every time!

"BarrySandell" wrote:

I have an Excel spreadsheet of daily totals where some days have no values
and some days have several values. I want to consolidate this into weekly
totals. Any ideas?

  #5   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Just a heads up if you send the file(s) to someone else, WEEKNUM is part of
the Analysis ToolPak and many users in a corporate environment might not
have it installed (they'll get a name error)
--
Regards,

Peo Sjoblom

(No private emails please)


"BarrySandell" wrote in message
...
Thanks for your responses. I thought of a simple solution about 5 minutes
after posting my question. Typical!

Use the WEEKNUM function to convert each date into the number of the week
in
which it appears, then use a pivot table to sum the values for each week.
To
convert the weeknum back to a date (eg for plotting on a chart), add the
week
number * 7 to the Excel index number for 1st Jan, then format the result
as
d/mm/yy. Works every time!

"BarrySandell" wrote:

I have an Excel spreadsheet of daily totals where some days have no
values
and some days have several values. I want to consolidate this into weekly
totals. Any ideas?


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
Exclude data from summary totals when hidden XVOTE Excel Worksheet Functions 1 April 13th 06 03:37 PM
Daily data to weekly data conversion in Excel? dlanc Excel Worksheet Functions 1 August 9th 05 02:12 AM
Calculate difference from assending data Centurion Excel Discussion (Misc queries) 1 June 13th 05 05:49 PM
How can we use Excel to calculate interest with daily compounding Duke Carey Excel Discussion (Misc queries) 0 June 1st 05 12:08 AM
Weekly data allocated to months Henry Bolton Excel Worksheet Functions 2 December 13th 04 02:15 PM


All times are GMT +1. The time now is 10:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"