Consulting

Results 1 to 6 of 6

Thread: how to replace part of r1c1 formula with cell value?

  1. #1

    how to replace part of r1c1 formula with cell value?

    Hello!

    I'm having a lot of trouble when trying to find and replace a certain part of a formula written in column B with the cell values in column A.

    In column B I have written the following code "=TWSVR|CMA!'0012XXXX;1'"
    In column A, I have several names.

    What I need to do is to is to find a way to put every A value into its B equivalent row within this formula.

    Can anymone help me?

    Thanks!

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Try

    =INDIRECT("TWSVR|CMA!'" & TEXT(A1,"0000") & "XXXX;1")
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Thanks for your reply, but it didn't work...

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Then we need clearer details on what you want, I just took a punt.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    Can I upload a sample sheet then?

    Quote Originally Posted by xld
    Then we need clearer details on what you want, I just took a punt.

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Yes you can, select the 'Go Advanced' button below the message box, and then there is a 'Manage Attachments' button to do this.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •