+ Reply to Thread
Results 1 to 2 of 2

Insert formula as sheet name

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    Insert formula as sheet name

    Hi,

    I am trying to use a formula that can reference text in a different cell and use that text as a sheet name. For example, Cell A2 says Employee1. I also have a sheet called Employee1. In cell B2 I'd like the formula to say "=Employee1!$B$6", then in cell B3, the formula would be "=Employee2$B$6", cell A3 would just contain text "Employee2".

    So I'm wondering if I can use a formula to reference cells in column A as sheet names.

    I've heard of INDIRECT, but I am unclear how it works
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,377

    Re: Insert formula as sheet name

    Hi Manager's Assistant,

    You need this kind of formula:
    =INDIRECT(A2 &"!B6") or =INDIRECT(A2 &"!$B$6")
    see attached.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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] Insert row and copy formula in protected sheet
    By impresxy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2017, 02:57 AM
  2. Insert sheet rows by formula
    By rturrentine in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-10-2014, 09:20 PM
  3. Macro to insert a formula to another sheet
    By Drayloc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-06-2012, 12:48 PM
  4. Excel 2007 : Insert sheet name in a formula
    By SRazvan in forum Excel General
    Replies: 1
    Last Post: 11-09-2011, 10:07 AM
  5. Using VBA to Insert Formula in Copied Sheet
    By Rich Kniatt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2006, 03:33 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