Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Adding formulas across Worksheets

I have entered a formula for adding accross worksheets ie =sum('Jan:Dec'!B2)

I use this as I have a workbook that contains eorksheets for each month and
another sheet for the annual totals. I want to add the values in the monthly
sheets to get the annual totals.

It was working until I changed the names of the worksheets and added an
extra worksheet for Jan (previously had only Feb to Dec). I tryed to delete
the formulas and reenter to include Jan but now it comes up #REF!Error .
does anyone know how i can fix this.

thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Adding formulas across Worksheets

Double check that "Jan" is the actual name - no spaces either side.

What many users do is to have a blank sheet called Start before the first
working sheet; and a blank one called End after the last.
Now use =SUM('Start:End'!B3)
Now sheets may added or deleted between the two sentinels.
best wishes
----
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Belle" wrote in message
...
I have entered a formula for adding accross worksheets ie
=sum('Jan:Dec'!B2)

I use this as I have a workbook that contains eorksheets for each month
and
another sheet for the annual totals. I want to add the values in the
monthly
sheets to get the annual totals.

It was working until I changed the names of the worksheets and added an
extra worksheet for Jan (previously had only Feb to Dec). I tryed to
delete
the formulas and reenter to include Jan but now it comes up #REF!Error .
does anyone know how i can fix this.

thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Adding formulas across Worksheets

Assumes summary is sheet1 and sheet2:sheet13 are your months and they
already exist.
sub placeformula()
x = Sheet2.Name
y = Sheet13.Name

'or below if sheets not yet created
'y=Sheets((Sheets.count)).Name

Range("g3").Formula = "=Sum(" & x & ":" & y & "!b2)"
end sub



--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Belle" wrote in message
...
I have entered a formula for adding accross worksheets ie
=sum('Jan:Dec'!B2)

I use this as I have a workbook that contains eorksheets for each month
and
another sheet for the annual totals. I want to add the values in the
monthly
sheets to get the annual totals.

It was working until I changed the names of the worksheets and added an
extra worksheet for Jan (previously had only Feb to Dec). I tryed to
delete
the formulas and reenter to include Jan but now it comes up #REF!Error .
does anyone know how i can fix this.

thanks


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
Adding formulas Steved Excel Worksheet Functions 4 April 11th 07 06:10 PM
adding worksheets sorab Excel Discussion (Misc queries) 1 September 5th 06 02:41 PM
Adding rows in between formulas Mary Excel Worksheet Functions 0 June 21st 06 05:50 PM
Adding rows in several worksheets along with formulas Ed Excel Discussion (Misc queries) 0 May 25th 06 03:28 PM
adding worksheets together Gary Excel Discussion (Misc queries) 1 June 27th 05 08:26 PM


All times are GMT +1. The time now is 03:14 AM.

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"