+ Reply to Thread
Results 1 to 6 of 6

Cell-Reference in a text-statement within an excel-worksheet

  1. #1
    Registered User
    Join Date
    11-22-2011
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2003
    Posts
    6

    Question Cell-Reference in a text-statement within an excel-worksheet

    Hi Folks,

    i have a excel-worksheet with different informations in different columns.
    Now i have a statement like this:

    CREATE FACT "<fact_name>" [DESCRIPTION "<description>"] IN FOLDER "<location_path>" [EXPSOURCETABLES "<sourcetable1>" ] FOR PROJECT "<project_name>";

    Its not a excel-formula, but i want to fill the variables in brackets <> with the values from different columns. So, for every row in my excel-worksheet i need this statement, filled with the related values from the corresponding row.
    I've tried it already , but without success:

    ="CREATE FACT "&(H103)&" ...;"

    -- i used H103 as example for column H and row 103 --

    What is wrong or how to change this statement ?

    Thanks in advance

    Frank

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Cell-Reference in a text-statement within an excel-worksheet

    The formula you've posted should work fine - what problem is it giving you?

  3. #3
    Registered User
    Join Date
    11-22-2011
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Cell-Reference in a text-statement within an excel-worksheet

    Hi Andrew,

    problem is, that the formula stays as posted, when i confirm the cell with return. The reference (here: H103) wont be replaced with the value out of the cell H103. Is it a question of cell-format ?

    What i want is:

    CREATE FACT "this_is_the_sample_fact" ...

    as result, when i entered the statement and confirm with return.

  4. #4
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Cell-Reference in a text-statement within an excel-worksheet

    Sounds as though your cells are formatted as Text. Format them as general and then re-enter the formula.
    Good luck.

  5. #5
    Registered User
    Join Date
    11-22-2011
    Location
    Berlin, Germany
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Cell-Reference in a text-statement within an excel-worksheet

    Thanks. My mistake. The cell-format was correct, but there was a blank in front of the =

  6. #6
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Cell-Reference in a text-statement within an excel-worksheet

    Please do not forget to mark the thread Solved.

+ 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