Closed Thread
Results 1 to 6 of 6

How do I move only value producing formula to another column ??

  1. #1
    colwyn
    Guest

    How do I move only value producing formula to another column ??

    s/s is very large and the need is to transfer formulas from one column to another.

    Column L contains formulas in cells L7:L45 (attachment) - (L7:L326415 in working s/s).
    Some of these formulas result in a value being given.
    I need to transfer formulas only from those cells having values to cells three columns to the left on the same row.

    I do have code which I was using for another application. This puts a formula in the correct places but it is the wrong formula and I don't know how to amend it so that it carries out the required action.

    Anyone have code which can do this??
    Small attachment enclosed for better understanding of what is involved.

    Or could anyone change the line ".formula = ......" in the following code to make it work??

    Please Login or Register  to view this content.

    Big thanks.
    Colwyn.
    Last edited by colwyn; 12-31-2008 at 06:57 AM.

  2. #2
    colwyn
    Guest
    Please - any of you guys got any thoughts on this one ???
    Big thanks.
    Colwyn.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Copying a formula from col L to col I changes the results in col L; e.g., copying L7 to I7 causes L11 to change from "" to 1, which would cause L11 to be copied to I11, which causes L15 to change, ...
    Entia non sunt multiplicanda sine necessitate

  4. #4
    colwyn
    Guest
    shg thanks, that's why I need code to do it.

    I have code to fill in the appropriate cells but this was designed for another formula and I dont know how to modify it. The line of code in question is:

    Please Login or Register  to view this content.
    I want to modify this so as to give me the following formula in code:

    =IF(AND(A3=I3,A3>0),VLOOKUP(J4,sheet2!L$2:M$11,2,FALSE),"")


    If anyone can address this problem and provide the conversion the effort would be well appreciated.
    Big thanks.
    Colwyn.
    Last edited by colwyn; 12-24-2008 at 01:23 PM.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Colwyn, the code isn't the problem; it's understanding what you want to happen.

    Here's a guess:
    Please Login or Register  to view this content.

  6. #6
    colwyn
    Guest
    shg - genius!!!

    That's it! That's exactly what I needed. Many thanks for your time and effort.
    Brilliant!!
    Big thanks.
    Colwyn.

Closed 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