+ Reply to Thread
Results 1 to 7 of 7

About a cell containing Functions

  1. #1
    Registered User
    Join Date
    06-10-2008
    Posts
    10

    About a cell containing Functions

    Hello
    I have to face a problem, while I tried to copy a cell containing formula or functions, to an other cell, i.e

    let cell A2 contains a formula "=(C2*2)+(D2*3)"
    while C2=7.5 and
    D2=11.25
    Question is that how can I past A2 to other cell as
    "=(7.5*2)+(11.25*3)" ?
    when I paste it as values, it becomes 48.75
    when I paste it as formula, it becomes "=(C2*2)+(D2*3)"
    awaiting a best solution from you

    AD

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650
    Hi, To copy the formula exactly, I Double click the formula, to expose the Formula, then select the entire formula. (Selection turns Black), then with the cursor still on the cell, click return ( Formula returns to a value), Then paste the formula to a new cell.
    Regards Mick
    Last edited by MickG; 10-21-2008 at 06:03 AM.

  3. #3
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    I think you'd have to use select the formula in the formula bar and highlight each cell reference and hit F9 to convert to a value, then select the entire formula and do a Ctrl+C to copy then escape out of the cell (to return it to a formula) then click on the destination cell, hit F2 and paste (Ctrl+V). Which is kinda longwinded. You could use VBA instead.

    Richard
    Richard Schollar
    Microsoft MVP - Excel

  4. #4
    Registered User
    Join Date
    06-10-2008
    Posts
    10
    Quote Originally Posted by RichardSchollar View Post
    I think you'd have to use select the formula in the formula bar and highlight each cell reference and hit F9 to convert to a value .......
    Richard
    It is not problem for one cell, but for 1500 cells it becomes very lengthy procedure. I want solution of this problem, for more than one cells only.
    I hope you will give useful tips in this concerning.
    Regard,
    AD

  5. #5
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    I think I'm right in saying what you are asking for is actually failry complicated - what result would youy want where the formula included a range eg:

    =SUM(A1:A10)

    or

    =VLOOKUP(A1,B10:H100,3,0)

    ?

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434
    If the cells all contain formula as per you example then you could parse and evaluate the formula with some simple code.

    If your cells contain complex formula then the parsing will become much more difficult and even the processing of each cell may be quicker than coding a robust algorithm.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  7. #7
    Registered User
    Join Date
    06-10-2008
    Posts
    10
    Quote Originally Posted by Andy Pope View Post
    If the cells all contain formula as per you example then you could parse and evaluate the formula with some simple code.

    If your cells contain complex formula then the parsing will become much more difficult and even the processing of each cell may be quicker than coding a robust algorithm.

    Please Login or Register  to view this content.
    A good approach!

    Thanks
    AD
    Last edited by The AD; 10-23-2008 at 09:05 AM. Reason: Solved

+ 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. Macro to copy cell comments to a new cell?
    By MyBrainhURTS in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-04-2009, 11:20 AM
  2. Add First Cell Data to Last Nth Cell Where Nth Last_Cell_Value>0
    By DaedalusXF in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-08-2008, 07:48 PM
  3. Inserting a row does not increment reference in cell
    By diguerd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2008, 01:26 PM
  4. read cell content and use with Hyperlinks.Add Cell
    By apoc [t.i.m.] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-04-2007, 10:02 AM
  5. Dates being accepted in an accounting cell
    By andy clegg in forum Excel General
    Replies: 1
    Last Post: 11-14-2006, 09:56 PM

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