+ Reply to Thread
Results 1 to 4 of 4

Calculations involving other sheets using INDIRECT function

  1. #1
    Registered User
    Join Date
    02-17-2008
    Posts
    21

    Calculations involving other sheets using INDIRECT function

    Hello. I have a workbook where the master sheet holds summaries of investment portfolios. Support worksheets are a yearly summary of closing values by day, updated daily.

    In the master sheet, I have columns that calculate one week and one month returns for each security. The one week return formula (for security GLD) is

    =GLD!$D$6/GLD$D$10 - 1

    I would like to create a formula that references the name of the security's sheet from column E, so that the same formula can be propagated down the master sheet without having to manually edit the formula each time.

    the following returns :#REF!

    =INDIRECT("'" & E7 & "'!$D$6" & "/" & "'" & E7 & "'!$D$10 - 1")

    Any suggestions?

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Is it this?

    =INDIRECT(E7& "'!"&"$D$6" & "/" &E7&" '!"$D$10 - 1") if not have a look here

    http://xcell05.free.fr/morefunc/engl...direct.ext.htm
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    02-17-2008
    Posts
    21
    Got a tip to use INDIRECT twice in the formula.

    This now works:

    =(INDIRECT("'"&E7&"'!$D$6")/(INDIRECT("'"&E7&"'!$D$10"))-1)

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Go to hear you where able to sort it out - thanks for the feedback

+ 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