+ Reply to Thread
Results 1 to 6 of 6

Convert formula to macro

  1. #1
    Forum Contributor
    Join Date
    04-30-2011
    Location
    wirral,england
    MS-Off Ver
    Excel 2010
    Posts
    144

    Convert formula to macro

    Hello All
    On the attached worksheet the formula in col as calcs the difference in each value from the max in col aa.
    The worksheets are 70 to 80k long & take a long time to calc..Is it possible to construct a macro to aid faster calculation.There are no empty rows in the data,these are for illustration only.
    Many thanks for help given.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    13,764

    Re: Convert formula to macro

    See if this solution is faster.

    Make a pivot table of your data (to find the max).

    After that use VLookup to find the max in the pivot table and abstract the value.


    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    04-30-2011
    Location
    wirral,england
    MS-Off Ver
    Excel 2010
    Posts
    144

    Re: Convert formula to macro

    Quote Originally Posted by oeldere View Post
    See if this solution is faster.

    Make a pivot table of your data (to find the max).

    After that use VLookup to find the max in the pivot table and abstract the value.


    See the attached file.
    Sorry but for various reason i cant use a pivot table.Thanks for the input.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    13,764

    Re: Convert formula to macro

    Please Login or Register  to view this content.
    I am always interested what that reason will be.

    Will you explain it to me?

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,379

    Re: Convert formula to macro

    Hi BigBand,

    Try this:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  6. #6
    Forum Guru
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    7,752

    Re: Convert formula to macro

    Try this Macro

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Please Avoid Joining My List Of Blocked Users by:

    Saying Please and Thank you.

    Making requests not demands.

    Checking back on your post. I will not edit any post after 4 days.

    Marking threads as closed once your issue is resolved. How? The tools at the top

    Any reputation (*) points appreciated. None of us gets paid here.

    If you found someone's input useful, please take a second to click the * at the bottom left to let them know

+ 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. convert formula to macro.
    By superchew in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-05-2013, 08:31 PM
  2. Convert formula to a Macro
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-17-2012, 08:04 AM
  3. convert macro into formula
    By busybeemg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2010, 02:45 PM
  4. Convert CSE formula to a macro
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-22-2009, 10:16 PM
  5. [SOLVED] need macro: convert formula to value
    By moshe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-06-2005, 12:06 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