+ Reply to Thread
Results 1 to 5 of 5

Dynamic formulas

  1. #1
    Registered User
    Join Date
    03-06-2007
    Posts
    9

    Dynamic formulas

    Hi to all.
    I want to know if there is any way to build dynamic formulas based on parameters...
    example: =B1 & "sheet1!$A$2"

    where cell B1 contains "C:\myxlsfiles\myfile.xls"

    I wish to change B1 to B2 or any other cell with path or files values.

    Thank you guys for your time.

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    =INDIRECT(B1&"sheet1!$A$@")

    Let me know if that works

  3. #3
    Registered User
    Join Date
    03-06-2007
    Posts
    9
    It doesnt work.
    =INDIRECT(B5&"APE!$B$5")

    or

    =INDIRECT("'"&B5&"APE'!$B$5")

  4. #4
    Registered User
    Join Date
    03-06-2007
    Posts
    9

    It works but...

    Sorry, my mistake...
    Works only is the source workbook is opened. Thank you BigBas, a lot!

  5. #5
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    No problem. I'm glad you were able to solve your problem!

+ 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