Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Macro/Forumula to SUM values from Sheet that does not always exist

I have a macro that creates Sheet9 as needed. On Sheet1 I need to SUM values
from Sheet9 when it exists.

Currently I use a basic formula but when the sheet gets automatically deleted
and recreated, using a macro, the formula errors and does not "fix" itself when
Sheet9 gets recreated.

I prefer to use a macro where I can specify a Sheet/Cell to place the SUM, when
Sheet9 exists... but if you have a formula that will stop if from erroring that
would work too.

thx for the help!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 587
Default Macro/Forumula to SUM values from Sheet that does not alwaysexist

hi Livin,

if you don't matter with #REF! error

=SUM(INDIRECT("Sheet9!A:A"))

else

=IF(ISERROR(SUM(INDIRECT("Sheet9!A:A"))),"",SUM(IN DIRECT("Sheet9!A:A")))

--
isabelle




Le 2012-05-04 19:36, Livin a écrit :
I have a macro that creates Sheet9 as needed. On Sheet1 I need to SUM values
from Sheet9 when it exists.

Currently I use a basic formula but when the sheet gets automatically deleted
and recreated, using a macro, the formula errors and does not "fix" itself when
Sheet9 gets recreated.

I prefer to use a macro where I can specify a Sheet/Cell to place the SUM, when
Sheet9 exists... but if you have a formula that will stop if from erroring that
would work too.

thx for the help!

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
How to check the Sheet name exist before running Macro code tlee Excel Programming 4 January 7th 10 04:27 PM
Return a value if two other values exist pidoling Excel Discussion (Misc queries) 1 September 4th 09 05:59 PM
Want a trace a same values exist in two different sheet Mukesh Excel Worksheet Functions 2 April 23rd 09 12:56 PM
Retreive part of the value from each cell - Macro and/or forumula [email protected] Excel Programming 3 October 28th 08 11:08 PM
STOP MACRO IF CELL "A1" IS EMPTY OR SHEET DOESN´T EXIST cbm Excel Programming 2 January 8th 07 10:00 AM


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

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

About Us

"It's about Microsoft Excel"