Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]() 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
![]() |
|||
|
|||
![]() 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
![]() |
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Why is the order of my data table opposite from graph? | Charts and Charting in Excel | |||
Sort pages? | Excel Discussion (Misc queries) | |||
Summing up data with an array formula | Excel Worksheet Functions | |||
Copying conditional formatting...HELP PLEASE!!!! | Excel Worksheet Functions | |||
Help making a chart that doesn't graph cells without data? | Excel Discussion (Misc queries) |