+ Reply to Thread
Results 1 to 3 of 3

Macro to amend formulas

  1. #1
    Registered User
    Join Date
    11-27-2008
    Location
    ottawa, ontario
    Posts
    1

    Macro to amend formulas

    Hello out there

    Would anyone be able show me how to run a macro that would go into a cell, add the ROUND function to it, and move down to the next cell so that I could run the macro again on a different formula?

    Example: my formula currently looks like this:

    =IF(ISNA(VLOOKUP("0707750900",Data!$A$2:$I$65001,2,FALSE)/1000)=TRUE,0,VLOOKUP("0707750900",Data!$A$2:$I$65001,2,FALSE)/1000)

    I want it to look like this:
    =ROUND(IF(ISNA(VLOOKUP("0707750900",Data!$A$2:$I$65001,2,FALSE)/1000)=TRUE,0,VLOOKUP("0707750900",Data!$A$2:$I$65001,2,FALSE)/1000),1)

    I will need to do this amendment hundreds of times. I tried to record a macro, run through the keystrokes, then stop recording. When I go to add the ROUND function to the next cell, it copies the exact formula from before.

    Any help is appreciated.

    Thanks
    Wayne

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    This will add the formula to Column A

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284
    Please Login or Register  to view this content.

+ 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