+ Reply to Thread
Results 1 to 9 of 9

dynamic cell reference within a text string

Hybrid View

Guest dynamic cell reference within... 09-06-2005, 11:05 AM
Guest Re: dynamic cell reference... 09-06-2005, 02:05 AM
Guest Re: dynamic cell reference... 09-06-2005, 11:05 AM
Guest Re: dynamic cell reference... 09-06-2005, 11:05 AM
Guest Re: dynamic cell reference... 09-06-2005, 11:05 AM
Guest Re: dynamic cell reference... 09-06-2005, 11:05 AM
Guest Re: dynamic cell reference... 09-06-2005, 02:05 AM
Guest Re: dynamic cell reference... 09-06-2005, 02:05 AM
Guest Re: dynamic cell reference... 09-06-2005, 02:05 AM
  1. #1
    gvm
    Guest

    dynamic cell reference within a text string

    The documentation of my model includes a text string typed into a cell to the
    effect "alter the conversion factor, ie cell D23, to etc etc". My problem is
    that as the model develops, the cell containing the conversion factor
    changes, ie the reference to D23 becomes wrong. Is there a way of referring
    to D23 in the aforementioned text string so that the cell reference changes
    in sync with changes to the cell containing conversion factor?


  2. #2
    Aladin Akyurek
    Guest

    Re: dynamic cell reference within a text string

    ="alter the conversion factor, ie cell "&D23&", to etc etc"

    gvm wrote:
    > The documentation of my model includes a text string typed into a cell to the
    > effect "alter the conversion factor, ie cell D23, to etc etc". My problem is
    > that as the model develops, the cell containing the conversion factor
    > changes, ie the reference to D23 becomes wrong. Is there a way of referring
    > to D23 in the aforementioned text string so that the cell reference changes
    > in sync with changes to the cell containing conversion factor?
    >


  3. #3
    Aladin Akyurek
    Guest

    Re: dynamic cell reference within a text string

    ="alter the conversion factor, ie cell "&D23&", to etc etc"

    gvm wrote:
    > The documentation of my model includes a text string typed into a cell to the
    > effect "alter the conversion factor, ie cell D23, to etc etc". My problem is
    > that as the model develops, the cell containing the conversion factor
    > changes, ie the reference to D23 becomes wrong. Is there a way of referring
    > to D23 in the aforementioned text string so that the cell reference changes
    > in sync with changes to the cell containing conversion factor?
    >


  4. #4
    gvm
    Guest

    Re: dynamic cell reference within a text string

    Thanks Aladin,
    but unless I typed it in incorrectly, the effect of your suggestion was to
    insert the value contained in D23 which is not what I want. I want the cell
    reference itself (D23) inserted, and for this reference to change if the cell
    location is changed.

    is this possible?
    regards,
    Greg

  5. #5
    Dave Peterson
    Guest

    Re: dynamic cell reference within a text string

    Aladin showed you a way to return the value that is in D23.

    You could use:

    ="alter the conversion factor, ie cell " & cell("address",D23) & ", to etc etc"

    One thing you may want to do--just to make it easier for you when you come back
    to it in a few months--is to give that cell a nice name.

    Select D23 (or whereever it is)
    insert|Name|Define
    Names in Workbook
    ConvFact

    ="alter the conversion factor, ie cell " & cell("address",convfact) & ", to..."

    =======
    If you want to see D23 instead of $D$23, use this

    = "xxx" & SUBSTITUTE(CELL("address",convfact),"$","") & "yyyy"



    gvm wrote:
    >
    > Thanks Aladin,
    > but unless I typed it in incorrectly, the effect of your suggestion was to
    > insert the value contained in D23 which is not what I want. I want the cell
    > reference itself (D23) inserted, and for this reference to change if the cell
    > location is changed.
    >
    > is this possible?
    > regards,
    > Greg


    --

    Dave Peterson

  6. #6
    gvm
    Guest

    Re: dynamic cell reference within a text string

    That is exactly what I needed and more, thank you Dave



  7. #7
    gvm
    Guest

    Re: dynamic cell reference within a text string

    That is exactly what I needed and more, thank you Dave



  8. #8
    Dave Peterson
    Guest

    Re: dynamic cell reference within a text string

    Aladin showed you a way to return the value that is in D23.

    You could use:

    ="alter the conversion factor, ie cell " & cell("address",D23) & ", to etc etc"

    One thing you may want to do--just to make it easier for you when you come back
    to it in a few months--is to give that cell a nice name.

    Select D23 (or whereever it is)
    insert|Name|Define
    Names in Workbook
    ConvFact

    ="alter the conversion factor, ie cell " & cell("address",convfact) & ", to..."

    =======
    If you want to see D23 instead of $D$23, use this

    = "xxx" & SUBSTITUTE(CELL("address",convfact),"$","") & "yyyy"



    gvm wrote:
    >
    > Thanks Aladin,
    > but unless I typed it in incorrectly, the effect of your suggestion was to
    > insert the value contained in D23 which is not what I want. I want the cell
    > reference itself (D23) inserted, and for this reference to change if the cell
    > location is changed.
    >
    > is this possible?
    > regards,
    > Greg


    --

    Dave Peterson

  9. #9
    gvm
    Guest

    Re: dynamic cell reference within a text string

    Thanks Aladin,
    but unless I typed it in incorrectly, the effect of your suggestion was to
    insert the value contained in D23 which is not what I want. I want the cell
    reference itself (D23) inserted, and for this reference to change if the cell
    location is changed.

    is this possible?
    regards,
    Greg

+ 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