Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
mark_vi_
 
Posts: n/a
Default summing up daily data in a monthly compilation


I have daily data all on different worksheets (31 in total) and I would
like to add up all of the data in these worksheets in a monthly
compilation

I have so far been using the =sum('jan. 1'!B6, 'jan. 2'!B6 ... etc.)
which although is effective is very time consuming

is there an easier way to sum up all of the b6 cells without entering
them individually?

Thanks


--
mark_vi_
------------------------------------------------------------------------
mark_vi_'s Profile: http://www.excelforum.com/member.php...o&userid=24507
View this thread: http://www.excelforum.com/showthread...hreadid=381020

  #2   Report Post  
anilsolipuram
 
Posts: n/a
Default


You have to use userdefined function to make it simple.



Function sum_sh_range(r As Range)

Dim s As Variant
s = 0
Dim w As Worksheet
For Each w In Worksheets
w.Select
s = s + w.Range(r.Address).Value
Next

sum_sh_range = s
End Function

You have to paste the above code in vba module.

you can call the function as formula from any cell by using
=sum_sh_range(b6)


--
anilsolipuram
------------------------------------------------------------------------
anilsolipuram's Profile: http://www.excelforum.com/member.php...o&userid=16271
View this thread: http://www.excelforum.com/showthread...hreadid=381020

  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

See one more reply at your post in .excel.

mark_vi_ wrote:

I have daily data all on different worksheets (31 in total) and I would
like to add up all of the data in these worksheets in a monthly
compilation

I have so far been using the =sum('jan. 1'!B6, 'jan. 2'!B6 ... etc.)
which although is effective is very time consuming

is there an easier way to sum up all of the b6 cells without entering
them individually?

Thanks

--
mark_vi_
------------------------------------------------------------------------
mark_vi_'s Profile: http://www.excelforum.com/member.php...o&userid=24507
View this thread: http://www.excelforum.com/showthread...hreadid=381020


--

Dave Peterson
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
Why is the order of my data table opposite from graph? mozermodo Charts and Charting in Excel 6 April 25th 23 03:43 AM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
Summing up data with an array formula Kofi Excel Worksheet Functions 3 May 10th 05 09:50 PM
Copying conditional formatting...HELP PLEASE!!!! trixiebme Excel Worksheet Functions 3 March 24th 05 01:53 PM
Help making a chart that doesn't graph cells without data? Filtration Guy Excel Discussion (Misc queries) 0 March 22nd 05 09:21 PM


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