+ Reply to Thread
Results 1 to 4 of 4

Using concatenate to acquire value from a cell

  1. #1
    Registered User
    Join Date
    07-15-2014
    Location
    Ireland
    MS-Off Ver
    2019
    Posts
    47

    Using concatenate to acquire value from a cell

    Hi all,

    I have a master overview sheet which shows the important inputs that went into a model. A number of simulations were done with some input values changing from simulation to simulation.

    Each simulation has a worksheet which outlines the overall results and the inputs that are within the simulation.

    What I would like to know, is that are there are a number of inputs that are going to be changed over a number of simulations. In the attached example, there are details for run3 inputted in the run3 worksheet but not Overview sheet.

    I could copy the column c, input it into column d, use the find and replace function and replace run2 with run3 within the column.

    Cell C2 is returning the Energy use in Run 2 and has an equation of ='Run2'!$A$3. Is there a method of changing the number after the run to the number in row 1, so the formula automatically updated if the run number on the top row changes.

    I tried to use the concatenate function but I am getting an error and it doesn't work.

    I hope I have explained myself well.

    Regards,
    Stephen
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,719

    Re: Using concatenate to acquire value from a cell

    If you build a cell reference from a string, you have to use the INDIRECT function. This formula can be use across the row, and if the sheet does not exist yet it will show a #REF error.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    03-11-2020
    Location
    Philippines
    MS-Off Ver
    2016
    Posts
    4

    Re: Using concatenate to acquire value from a cell

    Try this place it in starting D2 in Overview. Hope it helps

    =INDIRECT("'Run"&D$1&"'!$A$3")
    =INDIRECT("'Run"&D$1&"'!$B$3")

    =INDIRECT("'Run"&D$1&"'!$B$8")
    =INDIRECT("'Run"&D$1&"'!$B$9")
    =INDIRECT("'Run"&D$1&"'!$B$10")
    =INDIRECT("'Run"&D$1&"'!$B$11")
    =INDIRECT("'Run"&D$1&"'!$B$12")
    =INDIRECT("'Run"&D$1&"'!$B$13")
    =INDIRECT("'Run"&D$1&"'!$B$18")
    =INDIRECT("'Run"&D$1&"'!$B$19")

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Using concatenate to acquire value from a cell

    If you add an initial column A on the Overview sheet and enter the row numbers in A5:A12, i.e. 8,9,10....18,19) then the indirect in C5 copied down is

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Replies: 2
    Last Post: 11-22-2016, 03:04 PM
  2. Replies: 1
    Last Post: 11-22-2016, 07:53 AM
  3. How to acquire the number of array with consecutive increasing slopes?
    By Onno Kramer in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-11-2016, 07:13 PM
  4. [SOLVED] how to acquire result of CELL formula then apply MID formula
    By dgiardina in forum Excel General
    Replies: 5
    Last Post: 01-26-2015, 03:20 PM
  5. [SOLVED] Force read only / acquire write permission
    By smpita in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-28-2014, 04:48 PM
  6. [SOLVED] How to acquire workbook name automatically
    By SidewinderAM9M in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-26-2013, 10:37 PM
  7. How do i download or acquire the data analysis plus tool for Excel
    By Lamont in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 09-10-2011, 12:44 AM

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