+ Reply to Thread
Results 1 to 4 of 4

Using Concatenate to Create Formulas

  1. #1
    Registered User
    Join Date
    10-22-2011
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    5

    Using Concatenate to Create Formulas

    Hi,

    I am trying to use the "CONCATENATE" Excel function to create formulas.

    In cell A2, I have the value:
    "file1"
    In cell B2, I have the formula:
    "=CONCATENATE("='C:\Users\njensen\Desktop\[B393 ",$A3,".xlsm]Recap & Subcontracts'!$K$43")"

    The result of that formula would then naturally be:
    "='C:\Users\njensen\Desktop\[B393 file1.xlsm]Recap & Subcontracts'!$K$43"

    Granted, the "CONCATENATE" formula will just combine the strings, but if I copy the "CONCATENATE" cell and paste its contents as values into cell B7, it looks like a real formula but still does not evaluate anything.

    The only way that I have found to actually make that formula evaluate anything is to physically click in the formula bar of cell B7 and then hit "ENTER".

    This is great if I only have 1 or 2 cells that I need to do this with, but I have 100's. Is there some formatting trick that I can use so that all of the cells actually turn into formulas and evaluate instead of just look like formulas?

    Thanks in advance and please see attached excel sheet for reference,
    -Nate
    Attached Files Attached Files

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

    Re: Using Concatenate to Create Formulas

    Once you have pasted as values the CONCATENATE formulae, you could highlight them all and do Find & Replace (CTRL-H), and replace = with =.

    Hope this helps.

    Pete

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,969

    Re: Using Concatenate to Create Formulas

    Or you could add =indirect() to the formula.

    Note however, that if you are referencing another workbook/file, indirect will ONLY work on an open file, unless you have the add-in morefunc installed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    10-22-2011
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Using Concatenate to Create Formulas

    Thanks Pete,
    That works, I had hoped there was a faster way, but that will work.

    Thanks FDibbins,
    I tried using the indirect.ext function, but I couldn't get it to work for some reason (see my post here: http://www.excelforum.com/excel-form...ot-others.html)

    Thanks again,
    -Nate

+ 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