+ Reply to Thread
Results 1 to 7 of 7

Using cell values to reference sheets

Hybrid View

  1. #1
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    Try:

    =A1&"@"&B1

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    In order to reference a different sheet, you cannot just use an "&" operator because excel will refer to the cell as text. You must use the indirect function.

    For example, if you want to extract data from Sheet A@C, cell A1, try this:

    =INDIRECT("'"&A1&"@"&B1&"'!"&"A1")

  3. #3
    Registered User
    Join Date
    03-15-2007
    Posts
    53
    Using the function =INDIRECT("'"&C4&"@"&B4&A4&"'!F2") was good but when I copy and paste even though the next row formula is =INDIRECT("'"&C3&"@"&B3&A3&"'!F2") it still shows the number from the original function down the entire page. But if I delete one og the copies and manually type in the function, it now changes to the correct number from the correct sheet. I am sure I am doing something wrong but cant figure it out. If you could help me once more it would be greatly appreciated.

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    It's probably because the "F2" is included in the quotation marks of the formula, making it static. All of the other cell references will change.

    Current formula:
    =INDIRECT("'"&C3&"@"&B3&A3&"'!F2")

    Change to:
    =INDIRECT("'"&C3&"@"&B3&A3&"'!"&F2)

    Should work, and F2 will change going down the column. Should result in:

    =INDIRECT("'"&C4&"@"&B4&A4&"'!"&F3)..etc..

  5. #5
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Unfortunately, the cell reference has to be in quotations, as the indirect function looks for the reference of the contents of the cell. The only way to accomodate the indirect function for your needs is to set it up using the row function.

    It is very difficult for me to setup this function for you without seeing a sample of your work, and how it is setup, but here is a try:

    =INDIRECT("'"&C4&"@"&B4&A4&"'!"&"F"&ROW())

  6. #6
    Registered User
    Join Date
    03-15-2007
    Posts
    53
    Thanks for all the help it was in my options settings...somehow got on manual instead of automatic. Once again ty guys.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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