+ Reply to Thread
Results 1 to 5 of 5

add name sheet in formula

  1. #1
    Registered User
    Join Date
    09-20-2009
    Location
    Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    18

    Question add name sheet in formula

    Hello everyone,

    I've been looking in the forum to find an answer to the following, but can't seem to get it to work. Could you help me with this one?

    I would like to create an excel file with multiple sheets. The first sheet will be an overview sheet which shows information from the other sheets. The information on the other sheets is always the same for every sheet, so I would like to make a formula which stays the same, but uses another sheet name in it.

    For example:

    on the overview sheet I have a cell which contains the "formula" (more a reference)
    Please Login or Register  to view this content.
    . On the cell below this I would like the same information from sheet 2, so
    Please Login or Register  to view this content.
    . Of course this is just one of the cells I would like referenced. I thought I could type the sheetname once on the same line as where the references go and "add" this into a formula. I've started with Concatenate, but this doesn't result in a valid formula. I then tried Indirect, but can only get REF or VALUE errors. I don't seem to be able to wrap my head around this..

    I think this is a very easy issue for you guys (pls don't laugh at me ), so I hope someone can help me. In short, I need a way to add the contents of a cell (i.e. SheetnameOne which I would manually enter into a cell) into a formula so that I only have to type the name of the sheet once rather than do this for all formulas.

    Thank you so much in advance if you could help me with this one.

    Kind regards,
    DMR
    Last edited by DMR1712; 03-31-2014 at 11:39 AM. Reason: solved

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: add name sheet in formula

    Indirect shall do.
    If not enough - you can use nested inside Address
    Best Regards,

    Kaper

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

    Re: add name sheet in formula

    Suppose you listed your sheet names in column A, starting with A2 - the sheet names have to be exactly as they appear on the respective tabs, so be wary of trailing spaces. Then you can have this formula in B2:

    =INDIRECT("'" & A2 & "'!B1")

    and this can be copied down column B to get the data from cell B1 of the relevant tabs. Note the use of apostrophes - you need these in case there are any spaces or special characters in your sheet names. Notice also that as the B1 is inside quotes, it will not change as you copy this down (or across).

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    09-20-2009
    Location
    Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: add name sheet in formula

    Works like a charm! Thank you so much, I guess I didn't get the &'s and the quotes right..

    Thanks again.

    Best regards,
    DMR


    Quote Originally Posted by Pete_UK View Post
    Suppose you listed your sheet names in column A, starting with A2 - the sheet names have to be exactly as they appear on the respective tabs, so be wary of trailing spaces. Then you can have this formula in B2:

    =INDIRECT("'" & A2 & "'!B1")

    and this can be copied down column B to get the data from cell B1 of the relevant tabs. Note the use of apostrophes - you need these in case there are any spaces or special characters in your sheet names. Notice also that as the B1 is inside quotes, it will not change as you copy this down (or across).

    Hope this helps.

    Pete

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: add name sheet in formula

    Here's an easy way to create a list of the sheet names:

    List Sheet Sames Using A Formula
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. [SOLVED] Use cell reference on one sheet as a sheet name in a formula on another sheet
    By GavJ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-10-2013, 05:06 AM
  2. Replies: 1
    Last Post: 10-30-2012, 08:51 PM
  3. [SOLVED] Formula help for sheet to sheet countif / adding same page formula
    By Jon-Michael in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-14-2012, 11:23 AM
  4. Replies: 1
    Last Post: 07-30-2012, 02:35 PM
  5. Replies: 2
    Last Post: 01-12-2006, 10:35 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