+ Reply to Thread
Results 1 to 4 of 4

Formula that refers to a cell on a sheet that may or may not exist.

  1. #1
    Registered User
    Join Date
    05-06-2015
    Location
    England
    MS-Off Ver
    2014
    Posts
    71

    Formula that refers to a cell on a sheet that may or may not exist.

    Hi,

    I have a spreadsheet that has loads of completed forms on. I have a formula that references to these sheets, up to 420. But there may not always be so many sheets, as soon as I update the links, the formula is broken for good.

    I would like the formula to stay the same weather the sheet is refers to exists or not!

    Please help

    Please Login or Register  to view this content.
    Turns in to:

    Please Login or Register  to view this content.
    I need it to stay the same weather the sheet is there or not!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,725

    Re: Formula that refers to a cell on a sheet that may or may not exist.

    Try it like this:

    =IFERROR(CONCATENATE(iferror(INDIRECT("'SHEET (2)'!N25"),""),'SHEET (2)'!O25,'SHEET (2)'!P25,'SHEET (2)'!Q25,'SHEET (2)'!R25,'SHEET (2)'!S25,' (2)'!T25,'SHEET (2)'!U25,'SHEET (2)'!V25,'SHEET (2)'!W25,'SHEET (2)'!X25,)," ")

    I've only made the change (shown in red) to the first term, but you need to do it to all terms within the CONCATENATE function.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-06-2015
    Location
    England
    MS-Off Ver
    2014
    Posts
    71

    Re: Formula that refers to a cell on a sheet that may or may not exist.

    I just keep getting an error when I use that formula! any ideas?

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,725

    Re: Formula that refers to a cell on a sheet that may or may not exist.

    I don't see how you can get an error when you have IFERROR in there to trap it. Did you remember to put all the brackets and quotes in? Post your version of the formula (i.e. the one you are having trouble with).

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Vlookup Different workbook Cell refers to sheet
    By RandomPezzer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-12-2015, 05:42 PM
  2. [SOLVED] Check First IF Sheet Is Exist With The Name Of Cell K7 If exist Then run the code
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-18-2015, 10:08 AM
  3. [SOLVED] Add formula to cell that refers to first empty cell in another row.
    By Onweerwolf in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-28-2014, 05:51 PM
  4. Forumla which refers to a cell which refers to a sheet name
    By awiller2 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-03-2012, 09:57 PM
  5. [SOLVED] COUNTA calculation - Formula in cell refers to arange with additional numbers adjacent?
    By hennakao in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2012, 07:07 AM
  6. Replies: 2
    Last Post: 11-23-2005, 08:18 PM
  7. [SOLVED] Cell has a value of #N/A when the formula refers to nothing
    By Man Utd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-16-2005, 05:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1