Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Checking for the existence of a worksheet

I'm hoping I'm not posting this again...I got an error last time.

Is there a way, within a cell's formula, to check for the existence of a
worksheet? For example, in the worksheet titled "Record Sheet", in cell A50,
I want to return the value of cell A1 from the worksheet titled "Round 1"
providing that worksheet actually exists. If the "Round 1" worksheet doesn't
exist, I want to return " " to cell A50 in the Record Sheet worksheet. It
seems that I would start with an If statement but I'm not sure what function
checks for the existence of a worksheet (or if there is one). thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Checking for the existence of a worksheet

=IF(ISERROR('Round 1'!A1),"",'Round 1'!A1)

If the sheet does not exist, the iserror should catch it and force the blank.
--
Gary''s Student - gsnu200909


"Allen" wrote:

I'm hoping I'm not posting this again...I got an error last time.

Is there a way, within a cell's formula, to check for the existence of a
worksheet? For example, in the worksheet titled "Record Sheet", in cell A50,
I want to return the value of cell A1 from the worksheet titled "Round 1"
providing that worksheet actually exists. If the "Round 1" worksheet doesn't
exist, I want to return " " to cell A50 in the Record Sheet worksheet. It
seems that I would start with an If statement but I'm not sure what function
checks for the existence of a worksheet (or if there is one). 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
Checking Dependence Before Deleting Worksheet excel wonk Excel Worksheet Functions 2 June 2nd 07 05:33 PM
Spell checking a protected worksheet Trevor Excel Discussion (Misc queries) 0 February 14th 07 07:25 AM
Checking for exsitence of values in a different worksheet Dirk_Bob Excel Discussion (Misc queries) 2 September 28th 06 10:45 PM
Checking for the existence of a characted in a string Peter Rooney Excel Discussion (Misc queries) 2 June 21st 06 10:16 AM
How do I check for existence of a worksheet? LizzieHW Excel Worksheet Functions 1 July 19th 05 06:22 PM


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